Advertisement
Guest User

DEFINES.HPP

a guest
May 21st, 2014
223
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.53 KB | None | 0 0
  1. // Control types
  2. #define CT_STATIC 0
  3. #define CT_BUTTON 1
  4. #define CT_EDIT 2
  5. #define CT_SLIDER 3
  6. #define CT_COMBO 4
  7. #define CT_LISTBOX 5
  8. #define CT_TOOLBOX 6
  9. #define CT_CHECKBOXES 7
  10. #define CT_PROGRESS 8
  11. #define CT_HTML 9
  12. #define CT_STATIC_SKEW 10
  13. #define CT_ACTIVETEXT 11
  14. #define CT_TREE 12
  15. #define CT_STRUCTURED_TEXT 13
  16. #define CT_CONTEXT_MENU 14
  17. #define CT_CONTROLS_GROUP 15
  18. #define CT_SHORTCUTBUTTON 16
  19. #define CT_BOX 17
  20. #define CT_XKEYDESC 40
  21. #define CT_XBUTTON 41
  22. #define CT_XLISTBOX 42
  23. #define CT_XSLIDER 43
  24. #define CT_XCOMBO 44
  25. #define CT_ANIMATED_TEXTURE 45
  26. #define CT_OBJECT 80
  27. #define CT_OBJECT_ZOOM 81
  28. #define CT_OBJECT_CONTAINER 82
  29. #define CT_OBJECT_CONT_ANIM 83
  30. #define CT_LINEBREAK 98
  31. #define CT_USER 99
  32. #define CT_MAP 100
  33. #define CT_MAP_MAIN 101
  34. #define CT_LISTNBOX 102
  35.  
  36. // Static styles
  37. #define ST_POS 0x0F
  38. #define ST_HPOS 0x03
  39. #define ST_VPOS 0x0C
  40. #define ST_LEFT 0x00
  41. #define ST_RIGHT 0x01
  42. #define ST_CENTER 0x02
  43. #define ST_DOWN 0x04
  44. #define ST_UP 0x08
  45. #define ST_VCENTER 0x0C
  46. #define ST_GROUP_BOX 96
  47. #define ST_GROUP_BOX2 112
  48. #define ST_ROUNDED_CORNER ST_GROUP_BOX + ST_CENTER
  49. #define ST_ROUNDED_CORNER2 ST_GROUP_BOX2 + ST_CENTER
  50.  
  51. #define ST_TYPE 0xF0
  52. #define ST_SINGLE 0x00
  53. #define ST_MULTI 0x10
  54. #define ST_TITLE_BAR 0x20
  55. #define ST_PICTURE 0x30
  56. #define ST_FRAME 0x40
  57. #define ST_BACKGROUND 0x50
  58. #define ST_GROUP_BOX 0x60
  59. #define ST_GROUP_BOX2 0x70
  60. #define ST_HUD_BACKGROUND 0x80
  61. #define ST_TILE_PICTURE 0x90
  62. #define ST_WITH_RECT 0xA0
  63. #define ST_LINE 0xB0
  64.  
  65. #define ST_SHADOW 0x100
  66. #define ST_NO_RECT 0x200
  67. #define ST_KEEP_ASPECT_RATIO 0x800
  68.  
  69. #define ST_TITLE ST_TITLE_BAR + ST_CENTER
  70.  
  71. // Slider styles
  72. #define SL_DIR 0x400
  73. #define SL_VERT 0
  74. #define SL_HORZ 0x400
  75.  
  76. #define SL_TEXTURES 0x10
  77.  
  78. // progress bar
  79. #define ST_VERTICAL 0x01
  80. #define ST_HORIZONTAL 0
  81.  
  82. // Listbox styles
  83. #define LB_TEXTURES 0x10
  84. #define LB_MULTI 0x20
  85.  
  86. // Tree styles
  87. #define TR_SHOWROOT 1
  88. #define TR_AUTOCOLLAPSE 2
  89.  
  90. // MessageBox styles
  91. #define MB_BUTTON_OK 1
  92. #define MB_BUTTON_CANCEL 2
  93. #define MB_BUTTON_USER 4
  94.  
  95.  
  96. ////////////////
  97. //Base Classes//
  98. ////////////////
  99.  
  100. class RscFrame
  101. {
  102. type = CT_STATIC;
  103. idc = -1;
  104. style = ST_FRAME;
  105. shadow = 2;
  106. colorBackground[] = {1,1,1,1};
  107. colorText[] = {1,1,1,0.9};
  108. font = "Bitstream";
  109. sizeEx = 0.03;
  110. text = "";
  111. };
  112.  
  113. class BOX
  114. {
  115. type = CT_STATIC;
  116. idc = -1;
  117. style = ST_CENTER;
  118. shadow = 2;
  119. colorText[] = {1,1,1,1};
  120. font = "Bitstream";
  121. sizeEx = 0.02;
  122. colorBackground[] = { 0.2,0.2,0.2, 0.8 };
  123. text = "";
  124.  
  125. };
  126.  
  127. class RscCombo
  128. {
  129. access = 0;
  130. type = 4;
  131. style = 0;
  132. colorSelect[] = {0.023529,0,0.0313725,1};
  133. colorText[] = {0.023529,0,0.0313725,1};
  134. colorBackground[] = {0.95,0.95,0.95,1};
  135. colorScrollbar[] = {0.023529,0,0.0313725,1};
  136. soundSelect[] = {"",0.1,1};
  137. soundExpand[] = {"",0.1,1};
  138. soundCollapse[] = {"",0.1,1};
  139. maxHistoryDelay = 1;
  140. class ScrollBar
  141. {
  142. color[] = {1,1,1,0.6};
  143. colorActive[] = {1,1,1,1};
  144. colorDisabled[] = {1,1,1,0.3};
  145. shadow = 0;
  146. thumb = "\ca\ui\data\ui_scrollbar_thumb_ca.paa";
  147. arrowFull = "\ca\ui\data\ui_arrow_top_active_ca.paa";
  148. arrowEmpty = "\ca\ui\data\ui_arrow_top_ca.paa";
  149. border = "\ca\ui\data\ui_border_scroll_ca.paa";
  150. };
  151. x = 0;
  152. y = 0;
  153. w = 0.12;
  154. h = 0.035;
  155. shadow = 0;
  156. colorSelectBackground[] = {0.8784,0.8471,0.651,1};
  157. arrowEmpty = "\ca\ui\data\ui_arrow_combo_ca.paa";
  158. arrowFull = "\ca\ui\data\ui_arrow_combo_active_ca.paa";
  159. wholeHeight = 0.45;
  160. color[] = {0,0,0,0.6};
  161. colorActive[] = {0,0,0,1};
  162. colorDisabled[] = {0,0,0,0.3};
  163. font = "Zeppelin32";
  164. sizeEx = 0.03921;
  165. };
  166.  
  167. class HitZone
  168. {
  169. left = 0.004;
  170. top = 0.029;
  171. right = 0.004;
  172. bottom = 0.029;
  173. };
  174. class ShortcutPos
  175. {
  176. left = 0.0145;
  177. top = 0.026;
  178. w = 0.0392157;
  179. h = 0.0522876;
  180. };
  181. class TextPos
  182. {
  183. left = 0.05;
  184. top = 0.034;
  185. right = 0.005;
  186. bottom = 0.005;
  187. };
  188. shortcuts[] = {};
  189. textureNoShortcut = "#(argb,8,8,3)color(0,0,0,0)";
  190. color[] = {0.8784,0.8471,0.651,1};
  191. color2[] = {0.95,0.95,0.95,1};
  192. colorDisabled[] = {1,1,1,0.25};
  193. colorBackground[] = {1,1,1,1};
  194. colorBackground2[] = {1,1,1,0.4};
  195. idc = -1;
  196. style = 0;
  197. default = 0;
  198. shadow = 2;
  199. w = 0.183825;
  200. h = 0.104575;
  201. periodFocus = 1.2;
  202. periodOver = 0.8;
  203. animTextureNormal = "\ca\ui\data\ui_button_normal_ca.paa";
  204. animTextureDisabled = "\ca\ui\data\ui_button_disabled_ca.paa";
  205. animTextureOver = "\ca\ui\data\ui_button_over_ca.paa";
  206. animTextureFocused = "\ca\ui\data\ui_button_focus_ca.paa";
  207. animTexturePressed = "\ca\ui\data\ui_button_down_ca.paa";
  208. animTextureDefault = "\ca\ui\data\ui_button_default_ca.paa";
  209. period = 0.4;
  210. font = "Zeppelin32";
  211. size = 0.03921;
  212. sizeEx = 0.03921;
  213. text = "";
  214. soundEnter[] = {"\ca\ui\data\sound\onover",0.09,1};
  215. soundPush[] = {"\ca\ui\data\sound\new1",0,0};
  216. soundClick[] = {"\ca\ui\data\sound\onclick",0.07,1};
  217. soundEscape[] = {"\ca\ui\data\sound\onescape",0.09,1};
  218. action = "";
  219. class AttributesImage
  220. {
  221. font = "Zeppelin32";
  222. color = "#E5E5E5";
  223. align = "left";
  224. };
  225. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement