Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define GUI__POINT X1 Y1 X2 Y2 COLOR
- [line]
- x1 = {X1}
- y1 = {Y1}
- x2 = {X2}
- y2 = {Y2}
- thickness = 1
- color = {COLOR}
- [/line]
- #enddef
- #define GUI__ALPHA_POINT X1 Y1 X2 Y2
- {GUI__POINT {X1} {Y1} {X2} {Y2} ("0, 0, 0, 0")}
- #enddef
- [state_enabled]
- [draw]
- [image]
- w = "(width)"
- h = "(height)"
- name = "buttons/button_normal/background.png{IPF}"
- [/image]
- [rectangle]
- x = 0
- y = 0
- w = "(width)"
- h = "(height)"
- #fill_color = "2, 29, 49, 255"
- border_thickness = 1
- border_color = {GUI__BORDER_COLOR}
- [/rectangle]
- [rectangle]
- x = 1
- y = 1
- w = "(width - 2)"
- h = "(height - 2)"
- border_thickness = 1
- border_color = "1, 10, 16, 255"
- [/rectangle]
- #
- # Darken borders along the left and bottom
- #
- [line]
- x1 = 0
- y1 = 0
- x2 = 0
- y2 = "(height - 1)"
- thickness = 1
- color = {GUI__BORDER_COLOR_DARK}
- [/line]
- [line]
- x1 = 0
- y1 = "(height - 1)"
- x2 = "(width - 1)"
- y2 = "(height - 1)"
- thickness = 1
- color = {GUI__BORDER_COLOR_DARK}
- [/line]
- #
- # Blue tint lines on the top and right
- #
- [line]
- x1 = 3
- y1 = 2
- x2 = "(width - 3)"
- y2 = 2
- thickness = 1
- color = "21, 79, 109, 255"
- [/line]
- [line]
- x1 = "(width - 3)"
- y1 = 2
- x2 = "(width - 3)"
- y2 = "(height - 4)"
- thickness = 1
- color = "21, 79, 109, 255"
- [/line]
- #
- # Round the corners
- #
- {GUI__ALPHA_POINT 0 0 0 0}
- {GUI__ALPHA_POINT 0 "(height - 1)" 0 "(height - 1)"}
- {GUI__ALPHA_POINT "(width - 1)" 0 "(width - 1)" 0}
- {GUI__ALPHA_POINT "(width - 1)" "(height - 1)" "(width - 1)" "(height - 1)"}
- {GUI__POINT 1 1 1 1 {GUI__BORDER_COLOR}}
- {GUI__POINT 1 "(height - 2)" 1 "(height - 2)" {GUI__BORDER_COLOR_DARK}}
- {GUI__POINT "(width - 2)" 1 "(width - 2)" 1 {GUI__BORDER_COLOR}}
- {GUI__POINT "(width - 2)" "(height - 2)" "(width - 2)" "(height - 2)" {GUI__BORDER_COLOR_DARK}}
- {GUI__CENTERED_TEXT ({FONT_SIZE}) () ({GUI__FONT_COLOR_ENABLED__TITLE})}
- [/draw]
- [/state_enabled]
Advertisement
Add Comment
Please, Sign In to add comment