Advertisement
iaretechnician

defines.hpp

Mar 17th, 2016
284
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 4.62 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_XKEYDESC         40
  20. #define CT_XBUTTON          41
  21. #define CT_XLISTBOX         42
  22. #define CT_XSLIDER          43
  23. #define CT_XCOMBO           44
  24. #define CT_ANIMATED_TEXTURE 45
  25. #define CT_OBJECT           80
  26. #define CT_OBJECT_ZOOM      81
  27. #define CT_OBJECT_CONTAINER 82
  28. #define CT_OBJECT_CONT_ANIM 83
  29. #define CT_LINEBREAK        98
  30. #define CT_USER             99
  31. #define CT_MAP              100
  32. #define CT_MAP_MAIN         101
  33. #define CT_LISTNBOX         102
  34.  
  35. // Static styles
  36. #define ST_POS            0x0F
  37. #define ST_HPOS           0x03
  38. #define ST_VPOS           0x0C
  39. #define ST_LEFT           0x00
  40. #define ST_RIGHT          0x01
  41. #define ST_CENTER         0x02
  42. #define ST_DOWN           0x04
  43. #define ST_UP             0x08
  44. #define ST_VCENTER        0x0C
  45. #define ST_GROUP_BOX       96
  46. #define ST_GROUP_BOX2      112
  47. #define ST_ROUNDED_CORNER  ST_GROUP_BOX + ST_CENTER
  48. #define ST_ROUNDED_CORNER2 ST_GROUP_BOX2 + ST_CENTER
  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. //Base Classes//
  97. ////////////////
  98.  
  99. class RscText
  100. {
  101.     access = 0;
  102.     idc = -1;
  103.     type = CT_STATIC;
  104.     style = 0;
  105.     linespacing = 1;
  106.     colorBackground[] = {0,0,0,0};
  107.     colorText[] = {1,1,1,.5};
  108.     text = "";
  109.     shadow = 0;
  110.     font = "Bitstream";
  111.     SizeEx = 0.02300;
  112.     fixedWidth = 0;
  113.     x = 0;
  114.     y = 0;
  115.     h = 0;
  116.     w = 0;
  117.    
  118. };
  119.  
  120. class RscPicture
  121. {
  122.     access = 0;
  123.     idc = -1;
  124.     type = CT_STATIC;
  125.     style = ST_PICTURE;
  126.     colorBackground[] = {0,0,0,0};
  127.     colorText[] = {1,1,1,1};
  128.     font = "Bitstream";
  129.     sizeEx = 0;
  130.     lineSpacing = 0;
  131.     text = "";
  132.     fixedWidth = 0;
  133.     shadow = 0;
  134.     x = 0;
  135.     y = 0;
  136.     w = 0.2;
  137.     h = 0.15;
  138. };
  139.  
  140. class RscButton
  141. {
  142.    
  143.    access = 0;
  144.     type = CT_BUTTON;
  145.     text = "";
  146.     colorText[] = {1,1,1,.9};
  147.     colorDisabled[] = {0.4,0.4,0.4,0};
  148.     colorBackground[] = {0.75,0.75,0.75,0.8};
  149.     colorBackgroundDisabled[] = {0,0.0,0};
  150.     colorBackgroundActive[] = {0.75,0.75,0.75,1};
  151.     colorFocused[] = {0.75,0.75,0.75,.5};
  152.     colorShadow[] = {0.023529,0,0.0313725,1};
  153.     colorBorder[] = {0.023529,0,0.0313725,1};
  154.     soundEnter[] = {"\ca\ui\data\sound\onover",0.09,1};
  155.     soundPush[] = {"\ca\ui\data\sound\new1",0,0};
  156.     soundClick[] = {"\ca\ui\data\sound\onclick",0.07,1};
  157.     soundEscape[] = {"\ca\ui\data\sound\onescape",0.09,1};
  158.     style = 2;
  159.     x = 0;
  160.     y = 0;
  161.     w = 0.055589;
  162.     h = 0.039216;
  163.     shadow = 2;
  164.     font = "Bitstream";
  165.     sizeEx = 0.03921;
  166.     offsetX = 0.003;
  167.     offsetY = 0.003;
  168.     offsetPressedX = 0.002;
  169.     offsetPressedY = 0.002;
  170.     borderSize = 0;
  171. };
  172.  
  173. class RscFrame
  174. {
  175.     type = CT_STATIC;
  176.     idc = -1;
  177.     style = ST_FRAME;
  178.     shadow = 2;
  179.     colorBackground[] = {1,1,1,1};
  180.     colorText[] = {1,1,1,0.9};
  181.     font = "Bitstream";
  182.     sizeEx = 0.03;
  183.     text = "";
  184. };
  185.  
  186. class BOX
  187. {
  188.    type = CT_STATIC;
  189.     idc = -1;
  190.     style = ST_CENTER;
  191.     shadow = 2;
  192.     colorText[] = {1,1,1,1};
  193.     font = "Bitstream";
  194.     sizeEx = 0.02;
  195.     colorBackground[] = { 0.2,0.2,0.2, 0.9 };
  196.     text = "";
  197.  
  198. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement