Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @inputs EGP:wirelink
- @trigger EGP
- # Settings
- BorderColor = vec( 0, 255, 80 )
- BorderSize = 3
- TextColor = vec( 255, 0, 80 )
- TextSize = 60
- TextFont = "Coolvetica"
- TextString =
- "Wiremod
- is
- awesome"
- # Clear the EGP screen
- EGP:egpClear()
- # Draw a box outline at EGP index 1
- EGP:egpBoxOutline( 1, vec2( 256 ), vec2( 512 ))
- # Change the color of the box outline
- EGP:egpColor( 1, BorderColor )
- # Change the thickness of the box outline
- EGP:egpSize( 1, BorderSize )
- # Draw a text object at egp index 2
- EGP:egpTextLayout( 2, TextString, vec2( 0 ), vec2( 512 ))
- # Center the text
- EGP:egpAlign( 2, 1, 1 )
- # Change the color of the text object
- EGP:egpColor( 2, TextColor )
- # Change the font face and size
- EGP:egpFont( 2, TextFont, TextSize )
Advertisement
Add Comment
Please, Sign In to add comment