Advertisement
Guest User

Zupa's Defines.hpp

a guest
Oct 11th, 2014
311
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.98 KB | None | 0 0
  1. ///////////////////////////////////////////////////////////////////////////
  2. /// Styles, Zupa's Skin Script
  3. ///////////////////////////////////////////////////////////////////////////
  4.  
  5. // Control types
  6. #define CT_STATIC 0
  7. #define CT_BUTTON 1
  8. #define CT_EDIT 2
  9. #define CT_SLIDER 3
  10. #define CT_COMBO 4
  11. #define CT_LISTBOX 5
  12. #define CT_TOOLBOX 6
  13. #define CT_CHECKBOXES 7
  14. #define CT_PROGRESS 8
  15. #define CT_HTML 9
  16. #define CT_STATIC_SKEW 10
  17. #define CT_ACTIVETEXT 11
  18. #define CT_TREE 12
  19. #define CT_STRUCTURED_TEXT 13
  20. #define CT_CONTEXT_MENU 14
  21. #define CT_CONTROLS_GROUP 15
  22. #define CT_SHORTCUTBUTTON 16
  23. #define CT_XKEYDESC 40
  24. #define CT_XBUTTON 41
  25. #define CT_XLISTBOX 42
  26. #define CT_XSLIDER 43
  27. #define CT_XCOMBO 44
  28. #define CT_ANIMATED_TEXTURE 45
  29. #define CT_OBJECT 80
  30. #define CT_OBJECT_ZOOM 81
  31. #define CT_OBJECT_CONTAINER 82
  32. #define CT_OBJECT_CONT_ANIM 83
  33. #define CT_LINEBREAK 98
  34. #define CT_USER 99
  35. #define CT_MAP 100
  36. #define CT_MAP_MAIN 101
  37. #define CT_LISTNBOX 102
  38.  
  39. // Static styles
  40. #define ST_POS 0x0F
  41. #define ST_HPOS 0x03
  42. #define ST_VPOS 0x0C
  43. #define ST_LEFT 0x00
  44. #define ST_RIGHT 0x01
  45. #define ST_CENTER 0x02
  46. #define ST_DOWN 0x04
  47. #define ST_UP 0x08
  48. #define ST_VCENTER 0x0C
  49.  
  50. #define ST_TYPE 0xF0
  51. #define ST_SINGLE 0x00
  52. #define ST_MULTI 0x10
  53. #define ST_TITLE_BAR 0x20
  54. #define ST_PICTURE 0x30
  55. #define ST_FRAME 0x40
  56. #define ST_BACKGROUND 0x50
  57. #define ST_GROUP_BOX 0x60
  58. #define ST_GROUP_BOX2 0x70
  59. #define ST_HUD_BACKGROUND 0x80
  60. #define ST_TILE_PICTURE 0x90
  61. #define ST_WITH_RECT 0xA0
  62. #define ST_LINE 0xB0
  63.  
  64. #define ST_SHADOW 0x100
  65. #define ST_NO_RECT 0x200
  66. #define ST_KEEP_ASPECT_RATIO 0x800
  67.  
  68. #define ST_TITLE ST_TITLE_BAR + ST_CENTER
  69.  
  70. // Slider styles
  71. #define SL_DIR 0x400
  72. #define SL_VERT 0
  73. #define SL_HORZ 0x400
  74.  
  75. #define SL_TEXTURES 0x10
  76.  
  77. // progress bar
  78. #define ST_VERTICAL 0x01
  79. #define ST_HORIZONTAL 0
  80.  
  81. // Listbox styles
  82. #define LB_TEXTURES 0x10
  83. #define LB_MULTI 0x20
  84.  
  85. // Tree styles
  86. #define TR_SHOWROOT 1
  87. #define TR_AUTOCOLLAPSE 2
  88.  
  89. // MessageBox styles
  90. #define MB_BUTTON_OK 1
  91. #define MB_BUTTON_CANCEL 2
  92. #define MB_BUTTON_USER 4
  93.  
  94.  
  95.  
  96. //////////////
  97.  
  98.  
  99. ///////////////////////////////////////////////////////////////////////////
  100. /// Styles
  101. ///////////////////////////////////////////////////////////////////////////
  102.  
  103. // Control types
  104. #define CT_STATIC 0
  105. #define CT_BUTTON 1
  106. #define CT_EDIT 2
  107. #define CT_SLIDER 3
  108. #define CT_COMBO 4
  109. #define CT_LISTBOX 5
  110. #define CT_TOOLBOX 6
  111. #define CT_CHECKBOXES 7
  112. #define CT_PROGRESS 8
  113. #define CT_HTML 9
  114. #define CT_STATIC_SKEW 10
  115. #define CT_ACTIVETEXT 11
  116. #define CT_TREE 12
  117. #define CT_STRUCTURED_TEXT 13
  118. #define CT_CONTEXT_MENU 14
  119. #define CT_CONTROLS_GROUP 15
  120. #define CT_SHORTCUTBUTTON 16
  121. #define CT_XKEYDESC 40
  122. #define CT_XBUTTON 41
  123. #define CT_XLISTBOX 42
  124. #define CT_XSLIDER 43
  125. #define CT_XCOMBO 44
  126. #define CT_ANIMATED_TEXTURE 45
  127. #define CT_OBJECT 80
  128. #define CT_OBJECT_ZOOM 81
  129. #define CT_OBJECT_CONTAINER 82
  130. #define CT_OBJECT_CONT_ANIM 83
  131. #define CT_LINEBREAK 98
  132. #define CT_USER 99
  133. #define CT_MAP 100
  134. #define CT_MAP_MAIN 101
  135. #define CT_LISTNBOX 102
  136.  
  137. // Static styles
  138. #define ST_POS 0x0F
  139. #define ST_HPOS 0x03
  140. #define ST_VPOS 0x0C
  141. #define ST_LEFT 0x00
  142. #define ST_RIGHT 0x01
  143. #define ST_CENTER 0x02
  144. #define ST_DOWN 0x04
  145. #define ST_UP 0x08
  146. #define ST_VCENTER 0x0C
  147.  
  148. #define ST_TYPE 0xF0
  149. #define ST_SINGLE 0x00
  150. #define ST_MULTI 0x10
  151. #define ST_TITLE_BAR 0x20
  152. #define ST_PICTURE 0x30
  153. #define ST_FRAME 0x40
  154. #define ST_BACKGROUND 0x50
  155. #define ST_GROUP_BOX 0x60
  156. #define ST_GROUP_BOX2 0x70
  157. #define ST_HUD_BACKGROUND 0x80
  158. #define ST_TILE_PICTURE 0x90
  159. #define ST_WITH_RECT 0xA0
  160. #define ST_LINE 0xB0
  161.  
  162. #define ST_SHADOW 0x100
  163. #define ST_NO_RECT 0x200
  164. #define ST_KEEP_ASPECT_RATIO 0x800
  165.  
  166. #define ST_TITLE ST_TITLE_BAR + ST_CENTER
  167.  
  168. // Slider styles
  169. #define SL_DIR 0x400
  170. #define SL_VERT 0
  171. #define SL_HORZ 0x400
  172.  
  173. #define SL_TEXTURES 0x10
  174.  
  175. // progress bar
  176. #define ST_VERTICAL 0x01
  177. #define ST_HORIZONTAL 0
  178.  
  179. // Listbox styles
  180. #define LB_TEXTURES 0x10
  181. #define LB_MULTI 0x20
  182.  
  183. // Tree styles
  184. #define TR_SHOWROOT 1
  185. #define TR_AUTOCOLLAPSE 2
  186.  
  187. // MessageBox styles
  188. #define MB_BUTTON_OK 1
  189. #define MB_BUTTON_CANCEL 2
  190. #define MB_BUTTON_USER 4
  191.  
  192. class RscBackground
  193. {
  194. type = 0;
  195. style = ST_BACKGROUND;
  196. shadow = 2;
  197. colorBackground[] = {0,0,0,1};
  198. colorText[] = {1,1,1,1};
  199. font = "Zeppelin32";
  200. sizeEx = 0.02;
  201. text = "";
  202.  
  203. };
  204.  
  205. class RscButton
  206. {
  207. access = 0;
  208. type = 1;
  209. text = "";
  210. colorText[] = {1,1,1,1};
  211. colorDisabled[] = {1,1,1,0.25};
  212. colorBackground[] = {0.45,0.45,0.45,1};
  213. colorBackgroundDisabled[] = {0,0,0,0.5};
  214. colorBackgroundActive[] = {0.75,0.75,0.75,1};
  215. colorFocused[] = {0.75,0.75,0.75,1};
  216. colorShadow[] = {0,0,0,0};
  217. colorBorder[] = {0,0,0,1};
  218. soundEnter[] = {"\ca\ui\data\sound\onover",0.09,1};
  219. soundPush[] = {"\ca\ui\data\sound\new1",0,0};
  220. soundClick[] = {"\ca\ui\data\sound\onclick",0.07,1};
  221. soundEscape[] = {"\ca\ui\data\sound\onescape",0.09,1};
  222. style = 2;
  223. x = 0;
  224. y = 0;
  225. w = 0.095589;
  226. h = 0.039216;
  227. shadow = 2;
  228. font = "Zeppelin32";
  229. sizeEx = 0.03921;
  230. offsetX = 0.003;
  231. offsetY = 0.003;
  232. offsetPressedX = 0.002;
  233. offsetPressedY = 0.002;
  234. borderSize = 0;
  235. };
  236.  
  237. class RscFrame
  238. {
  239. type = 0;
  240. idc = -1;
  241. style = 64;
  242. shadow = 2;
  243. colorBackground[] = {0,0,0,0};
  244. colorText[] = {1,1,1,1};
  245. font = "Zeppelin32";
  246. sizeEx = 0.02;
  247. text = "";
  248. };
  249. class RscProgressF
  250. {
  251. type = 8;
  252. style = 0;
  253. colorFrame[] = {1,1,1,1};
  254. colorBar[] = {1,1,1,0.5};
  255. texture = "#(argb,8,8,3)color(1,1,1,1)";
  256. w = 1;
  257. h = 0.02;
  258. };
  259.  
  260.  
  261. /////////////
  262.  
  263.  
  264. class RscTextT
  265. {
  266. access = 0;
  267. type = 0;
  268. idc = -1;
  269. colorBackground[] = {0,0,0,0};
  270. colorText[] = {0.8784,0.8471,0.651,1};
  271. text = "";
  272. fixedWidth = 0;
  273. x = 0;
  274. y = 0;
  275. h = 0.037;
  276. w = 0.3;
  277. style = 0;
  278. shadow = 2;
  279. font = "Zeppelin32";
  280. SizeEx = 0.03921;
  281. };
  282. class RscEdit
  283. {
  284. access = 0;
  285. type = 2;
  286. x = 0;
  287. y = 0;
  288. h = 0.04;
  289. w = 0.2;
  290. colorBackground[] = {0,0,0,1};
  291. colorText[] = {0.95,0.95,0.95,1};
  292. colorSelection[] = {0.8784,0.8471,0.651,1};
  293. autocomplete = "";
  294. text = "";
  295. size = 0.2;
  296. style = "0x00 + 0x40";
  297. font = "Zeppelin32";
  298. shadow = 2;
  299. sizeEx = 0.03921;
  300. };
  301. class RscListBox
  302. {
  303. access = 0;
  304. type = 5;
  305. w = 0.4;
  306. h = 0.4;
  307. rowHeight = 0;
  308. colorText[] = {0.8784,0.8471,0.651,1};
  309. colorScrollbar[] = {0.95,0.95,0.95,1};
  310. colorSelect[] = {0.95,0.95,0.95,1};
  311. colorSelect2[] = {0.95,0.95,0.95,1};
  312. colorSelectBackground[] = {0,0,0,1};
  313. colorSelectBackground2[] = {0.8784,0.8471,0.651,1};
  314. colorBackground[] = {0,0,0,1};
  315. soundSelect[] = {"",0.1,1};
  316. soundExpand[] = {"",0.1,1};
  317. soundCollapse[] = {"",0.1,1};
  318. arrowEmpty = "#(argb,8,8,3)color(1,1,1,1)";
  319. arrowFull = "#(argb,8,8,3)color(1,1,1,1)";
  320. class ScrollBar
  321. {
  322. color[] = {1,1,1,0.6};
  323. colorActive[] = {1,1,1,1};
  324. colorDisabled[] = {1,1,1,0.3};
  325. shadow = 0;
  326. thumb = "\ca\ui\data\ui_scrollbar_thumb_ca.paa";
  327. arrowFull = "\ca\ui\data\ui_arrow_top_active_ca.paa";
  328. arrowEmpty = "\ca\ui\data\ui_arrow_top_ca.paa";
  329. border = "\ca\ui\data\ui_border_scroll_ca.paa";
  330. };
  331. style = 16;
  332. font = "Zeppelin32";
  333. shadow = 2;
  334. sizeEx = 0.03921;
  335. color[] = {1,1,1,1};
  336. period = 1.2;
  337. maxHistoryDelay = 1;
  338. autoScrollSpeed = -1;
  339. autoScrollDelay = 5;
  340. autoScrollRewind = 0;
  341. };
  342. class RscShortcutButton
  343. {
  344. type = 16;
  345. x = 0.1;
  346. y = 0.1;
  347. class HitZone
  348. {
  349. left = 0.004;
  350. top = 0.029;
  351. right = 0.004;
  352. bottom = 0.029;
  353. };
  354. class ShortcutPos
  355. {
  356. left = 0.0145;
  357. top = 0.026;
  358. w = 0.0392157;
  359. h = 0.0522876;
  360. };
  361. class TextPos
  362. {
  363. left = 0.05;
  364. top = 0.034;
  365. right = 0.005;
  366. bottom = 0.005;
  367. };
  368. shortcuts[] = {};
  369. textureNoShortcut = "#(argb,8,8,3)color(0,0,0,0)";
  370. color[] = {0.8784,0.8471,0.651,1};
  371. color2[] = {0.95,0.95,0.95,1};
  372. colorDisabled[] = {1,1,1,0.25};
  373. colorBackground[] = {1,1,1,1};
  374. colorBackground2[] = {1,1,1,0.4};
  375. class Attributes
  376. {
  377. font = "Zeppelin32";
  378. color = "#E5E5E5";
  379. align = "left";
  380. shadow = "true";
  381. };
  382. idc = -1;
  383. style = 0;
  384. default = 0;
  385. shadow = 2;
  386. w = 0.183825;
  387. h = 0.104575;
  388. periodFocus = 1.2;
  389. periodOver = 0.8;
  390. animTextureNormal = "\ca\ui\data\ui_button_normal_ca.paa";
  391. animTextureDisabled = "\ca\ui\data\ui_button_disabled_ca.paa";
  392. animTextureOver = "\ca\ui\data\ui_button_over_ca.paa";
  393. animTextureFocused = "\ca\ui\data\ui_button_focus_ca.paa";
  394. animTexturePressed = "\ca\ui\data\ui_button_down_ca.paa";
  395. animTextureDefault = "\ca\ui\data\ui_button_default_ca.paa";
  396. period = 0.4;
  397. font = "Zeppelin32";
  398. size = 0.03921;
  399. sizeEx = 0.03921;
  400. text = "";
  401. soundPush[] = { "", 0, 1 };
  402. soundEnter[] = { "", 0, 1 };
  403. soundClick[] ={ "", 0, 1 };
  404. soundEscape[] ={ "", 0, 1 };
  405. sound[] ={ "", 0, 1 };
  406.  
  407.  
  408.  
  409. action = "";
  410. class AttributesImage
  411. {
  412. font = "Zeppelin32";
  413. color = "#E5E5E5";
  414. align = "left";
  415. };
  416. };
  417. class RscStructuredText
  418. {
  419. access = 0;
  420. type = 13;
  421. idc = -1;
  422. style = 0;
  423. colorText[] = {0.8784,0.8471,0.651,1};
  424. class Attributes
  425. {
  426. font = "Zeppelin32";
  427. color = "#e0d8a6";
  428. align = "center";
  429. shadow = 1;
  430. };
  431. x = 0;
  432. y = 0;
  433. h = 0.035;
  434. w = 0.1;
  435. text = "";
  436. size = 0.03921;
  437. shadow = 2;
  438. };
  439.  
  440. class RscCombo
  441. {
  442. access = 0;
  443. type = 4;
  444. style = 0;
  445. colorSelect[] = {0,0,0,1};
  446. colorText[] = {1,1,1,1};
  447. colorBackground[] = {0,0,0,1};
  448. colorScrollbar[] = {1,0,0,1};
  449. soundSelect[] = {"",0.1,1};
  450. soundExpand[] = {"",0.1,1};
  451. soundCollapse[] = {"",0.1,1};
  452. maxHistoryDelay = 1;
  453. class ScrollBar
  454. {
  455. color[] = {1,1,1,1};
  456. colorActive[] = {0.8784,0.8471,0.651,1};
  457. colorDisabled[] = {0.8784,0.8471,0.651,1};
  458. shadow = 0;
  459. thumb = "\ca\ui\data\ui_scrollbar_thumb_ca.paa";
  460. arrowFull = "\ca\ui\data\ui_arrow_top_active_ca.paa";
  461. arrowEmpty = "\ca\ui\data\ui_arrow_top_ca.paa";
  462. border = "\ca\ui\data\ui_border_scroll_ca.paa";
  463. };
  464. x = 0;
  465. y = 0;
  466. w = 0.12;
  467. h = 0.035;
  468. shadow = 0;
  469. colorSelectBackground[] = {1,1,1,0.7};
  470. arrowEmpty = "\ca\ui\data\ui_arrow_combo_ca.paa";
  471. arrowFull = "\ca\ui\data\ui_arrow_combo_active_ca.paa";
  472. wholeHeight = 0.45;
  473. color[] = {0,0,0,0.6};
  474. colorActive[] = {1,0,0,1};
  475. colorDisabled[] = {1,1,1,0.25};
  476. font = "Zeppelin32";
  477. sizeEx = 0.03921;
  478. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement