Advertisement
Meowzors

Defines.hpp

Jul 12th, 2014
191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.04 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 RscPicture1
  101. {
  102. access = 0;
  103. idc = -1;
  104. type = CT_STATIC;
  105. style = ST_PICTURE;
  106. colorBackground[] = {0,0,0,0};
  107. colorText[] = {1,1,1,1};
  108. font = "Bitstream";
  109. sizeEx = 0;
  110. lineSpacing = 0;
  111. text = "";
  112. fixedWidth = 0;
  113. shadow = 0;
  114. x = 0;
  115. y = 0;
  116. w = 0.2;
  117. h = 0.15;
  118. };
  119.  
  120. class RscFrame1
  121. {
  122. type = CT_STATIC;
  123. idc = -1;
  124. style = ST_FRAME;
  125. shadow = 2;
  126. colorBackground[] = {1,1,1,1};
  127. colorText[] = {1,1,1,0.9};
  128. font = "Bitstream";
  129. sizeEx = 0.03;
  130. text = "";
  131. };
  132.  
  133. class BOX
  134. {
  135. type = CT_STATIC;
  136. idc = -1;
  137. style = ST_CENTER;
  138. shadow = 2;
  139. colorText[] = {1,1,1,1};
  140. font = "Bitstream";
  141. sizeEx = 0.02;
  142. colorBackground[] = { 0.2,0.2,0.2, 0.8 };
  143. text = "";
  144.  
  145. };
  146.  
  147. class RscCombo
  148. {
  149. access = 0;
  150. type = 4;
  151. style = 0;
  152. colorSelect[] = {0.023529,0,0.0313725,1};
  153. colorText[] = {0.023529,0,0.0313725,1};
  154. colorBackground[] = {0.95,0.95,0.95,1};
  155. colorScrollbar[] = {0.023529,0,0.0313725,1};
  156. soundSelect[] = {"",0.1,1};
  157. soundExpand[] = {"",0.1,1};
  158. soundCollapse[] = {"",0.1,1};
  159. maxHistoryDelay = 1;
  160. class ScrollBar
  161. {
  162. color[] = {1,1,1,0.6};
  163. colorActive[] = {1,1,1,1};
  164. colorDisabled[] = {1,1,1,0.3};
  165. shadow = 0;
  166. thumb = "\ca\ui\data\ui_scrollbar_thumb_ca.paa";
  167. arrowFull = "\ca\ui\data\ui_arrow_top_active_ca.paa";
  168. arrowEmpty = "\ca\ui\data\ui_arrow_top_ca.paa";
  169. border = "\ca\ui\data\ui_border_scroll_ca.paa";
  170. };
  171. x = 0;
  172. y = 0;
  173. w = 0.12;
  174. h = 0.035;
  175. shadow = 0;
  176. colorSelectBackground[] = {0.8784,0.8471,0.651,1};
  177. arrowEmpty = "\ca\ui\data\ui_arrow_combo_ca.paa";
  178. arrowFull = "\ca\ui\data\ui_arrow_combo_active_ca.paa";
  179. wholeHeight = 0.45;
  180. color[] = {0,0,0,0.6};
  181. colorActive[] = {0,0,0,1};
  182. colorDisabled[] = {0,0,0,0.3};
  183. font = "Zeppelin32";
  184. sizeEx = 0.03921;
  185. };
  186.  
  187. class RscShortcutButton1
  188. {
  189. type = 16;
  190. x = 0.1;
  191. y = 0.1;
  192. class HitZone
  193. {
  194. left = 0.004;
  195. top = 0.029;
  196. right = 0.004;
  197. bottom = 0.029;
  198. };
  199. class ShortcutPos
  200. {
  201. left = 0.0145;
  202. top = 0.026;
  203. w = 0.0392157;
  204. h = 0.0522876;
  205. };
  206. class TextPos
  207. {
  208. left = 0.05;
  209. top = 0.034;
  210. right = 0.005;
  211. bottom = 0.005;
  212. };
  213. shortcuts[] = {};
  214. textureNoShortcut = "#(argb,8,8,3)color(0,0,0,0)";
  215. color[] = {0.8784,0.8471,0.651,1};
  216. color2[] = {0.95,0.95,0.95,1};
  217. colorDisabled[] = {1,1,1,0.25};
  218. colorBackground[] = {1,1,1,1};
  219. colorBackground2[] = {1,1,1,0.4};
  220. class Attributes
  221. {
  222. font = "Zeppelin32";
  223. color = "#E5E5E5";
  224. align = "left";
  225. shadow = "true";
  226. };
  227. idc = -1;
  228. style = 0;
  229. default = 0;
  230. shadow = 2;
  231. w = 0.183825;
  232. h = 0.104575;
  233. periodFocus = 1.2;
  234. periodOver = 0.8;
  235. animTextureNormal = "\ca\ui\data\ui_button_normal_ca.paa";
  236. animTextureDisabled = "\ca\ui\data\ui_button_disabled_ca.paa";
  237. animTextureOver = "\ca\ui\data\ui_button_over_ca.paa";
  238. animTextureFocused = "\ca\ui\data\ui_button_focus_ca.paa";
  239. animTexturePressed = "\ca\ui\data\ui_button_down_ca.paa";
  240. animTextureDefault = "\ca\ui\data\ui_button_default_ca.paa";
  241. period = 0.4;
  242. font = "Zeppelin32";
  243. size = 0.03921;
  244. sizeEx = 0.03921;
  245. text = "";
  246. soundEnter[] = {"\ca\ui\data\sound\onover",0.09,1};
  247. soundPush[] = {"\ca\ui\data\sound\new1",0,0};
  248. soundClick[] = {"\ca\ui\data\sound\onclick",0.07,1};
  249. soundEscape[] = {"\ca\ui\data\sound\onescape",0.09,1};
  250. action = "";
  251. class AttributesImage
  252. {
  253. font = "Zeppelin32";
  254. color = "#E5E5E5";
  255. align = "left";
  256. };
  257. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement