Vultraz

Untitled

Apr 2nd, 2016
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.38 KB | None | 0 0
  1. #define GUI__POINT X1 Y1 X2 Y2 COLOR
  2. [line]
  3. x1 = {X1}
  4. y1 = {Y1}
  5. x2 = {X2}
  6. y2 = {Y2}
  7.  
  8. thickness = 1
  9. color = {COLOR}
  10. [/line]
  11. #enddef
  12.  
  13. #define GUI__ALPHA_POINT X1 Y1 X2 Y2
  14. {GUI__POINT {X1} {Y1} {X2} {Y2} ("0, 0, 0, 0")}
  15. #enddef
  16.  
  17. [state_enabled]
  18.  
  19. [draw]
  20.  
  21. [image]
  22. w = "(width)"
  23. h = "(height)"
  24. name = "buttons/button_normal/background.png{IPF}"
  25. [/image]
  26.  
  27. [rectangle]
  28. x = 0
  29. y = 0
  30. w = "(width)"
  31. h = "(height)"
  32.  
  33. #fill_color = "2, 29, 49, 255"
  34.  
  35. border_thickness = 1
  36. border_color = {GUI__BORDER_COLOR}
  37. [/rectangle]
  38.  
  39. [rectangle]
  40. x = 1
  41. y = 1
  42. w = "(width - 2)"
  43. h = "(height - 2)"
  44.  
  45. border_thickness = 1
  46. border_color = "1, 10, 16, 255"
  47. [/rectangle]
  48.  
  49. #
  50. # Darken borders along the left and bottom
  51. #
  52.  
  53. [line]
  54. x1 = 0
  55. y1 = 0
  56. x2 = 0
  57. y2 = "(height - 1)"
  58.  
  59. thickness = 1
  60. color = {GUI__BORDER_COLOR_DARK}
  61. [/line]
  62.  
  63. [line]
  64. x1 = 0
  65. y1 = "(height - 1)"
  66. x2 = "(width - 1)"
  67. y2 = "(height - 1)"
  68.  
  69. thickness = 1
  70. color = {GUI__BORDER_COLOR_DARK}
  71. [/line]
  72.  
  73. #
  74. # Blue tint lines on the top and right
  75. #
  76.  
  77. [line]
  78. x1 = 3
  79. y1 = 2
  80. x2 = "(width - 3)"
  81. y2 = 2
  82.  
  83. thickness = 1
  84. color = "21, 79, 109, 255"
  85. [/line]
  86.  
  87. [line]
  88. x1 = "(width - 3)"
  89. y1 = 2
  90. x2 = "(width - 3)"
  91. y2 = "(height - 4)"
  92.  
  93. thickness = 1
  94. color = "21, 79, 109, 255"
  95. [/line]
  96.  
  97. #
  98. # Round the corners
  99. #
  100.  
  101. {GUI__ALPHA_POINT 0 0 0 0}
  102. {GUI__ALPHA_POINT 0 "(height - 1)" 0 "(height - 1)"}
  103. {GUI__ALPHA_POINT "(width - 1)" 0 "(width - 1)" 0}
  104. {GUI__ALPHA_POINT "(width - 1)" "(height - 1)" "(width - 1)" "(height - 1)"}
  105.  
  106. {GUI__POINT 1 1 1 1 {GUI__BORDER_COLOR}}
  107. {GUI__POINT 1 "(height - 2)" 1 "(height - 2)" {GUI__BORDER_COLOR_DARK}}
  108. {GUI__POINT "(width - 2)" 1 "(width - 2)" 1 {GUI__BORDER_COLOR}}
  109. {GUI__POINT "(width - 2)" "(height - 2)" "(width - 2)" "(height - 2)" {GUI__BORDER_COLOR_DARK}}
  110.  
  111. {GUI__CENTERED_TEXT ({FONT_SIZE}) () ({GUI__FONT_COLOR_ENABLED__TITLE})}
  112.  
  113. [/draw]
  114.  
  115. [/state_enabled]
Advertisement
Add Comment
Please, Sign In to add comment