define.hpp 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  1. ////////////////////////////////////////////////
  2. // BCM //
  3. ////////////////////////////////////// by DÄZ //
  4. // Control Types
  5. #define CT_STATIC 0
  6. #define CT_BUTTON 1
  7. #define CT_EDIT 2
  8. #define CT_SLIDER 3
  9. #define CT_COMBO 4
  10. #define CT_LISTBOX 5
  11. #define CT_TOOLBOX 6
  12. #define CT_CHECKBOXES 7
  13. #define CT_PROGRESS 8
  14. #define CT_HTML 9
  15. #define CT_STATIC_SKEW 10
  16. #define CT_ACTIVETEXT 11
  17. #define CT_TREE 12
  18. #define CT_STRUCTURED_TEXT 13
  19. #define CT_CONTEXT_MENU 14
  20. #define CT_CONTROLS_GROUP 15
  21. #define CT_SHORTCUTBUTTON 16
  22. #define CT_XKEYDESC 40
  23. #define CT_XBUTTON 41
  24. #define CT_XLISTBOX 42
  25. #define CT_XSLIDER 43
  26. #define CT_XCOMBO 44
  27. #define CT_ANIMATED_TEXTURE 45
  28. #define CT_OBJECT 80
  29. #define CT_OBJECT_ZOOM 81
  30. #define CT_OBJECT_CONTAINER 82
  31. #define CT_OBJECT_CONT_ANIM 83
  32. #define CT_LINEBREAK 98
  33. #define CT_USER 99
  34. #define CT_MAP 100
  35. #define CT_MAP_MAIN 101
  36. #define CT_LISTNBOX 102
  37. // Static Styles
  38. #define ST_POS 0x0F
  39. #define ST_HPOS 0x03
  40. #define ST_VPOS 0x0C
  41. #define ST_LEFT 0x00
  42. #define ST_RIGHT 0x01
  43. #define ST_CENTER 0x02
  44. #define ST_DOWN 0x04
  45. #define ST_UP 0x08
  46. #define ST_VCENTER 0x0C
  47. #define ST_GROUP_BOX 96
  48. #define ST_GROUP_BOX2 112
  49. #define ST_ROUNDED_CORNER ST_GROUP_BOX + ST_CENTER
  50. #define ST_ROUNDED_CORNER2 ST_GROUP_BOX2 + ST_CENTER
  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. #define ST_SHADOW 0x100
  65. #define ST_NO_RECT 0x200
  66. #define ST_KEEP_ASPECT_RATIO 0x800
  67. #define ST_TITLE ST_TITLE_BAR + ST_CENTER
  68. // Slider Styles
  69. #define SL_DIR 0x400
  70. #define SL_VERT 0
  71. #define SL_HORZ 0x400
  72. #define SL_TEXTURES 0x10
  73. // Progress Bar
  74. #define ST_VERTICAL 0x01
  75. #define ST_HORIZONTAL 0
  76. // Listbox Styles
  77. #define LB_TEXTURES 0x10
  78. #define LB_MULTI 0x20
  79. // Tree Styles
  80. #define TR_SHOWROOT 1
  81. #define TR_AUTOCOLLAPSE 2
  82. // MessageBox Styles
  83. #define MB_BUTTON_OK 1
  84. #define MB_BUTTON_CANCEL 2
  85. #define MB_BUTTON_USER 4
  86. //Base Classes
  87. class RscText
  88. {
  89. access = 0;
  90. type = CT_STATIC;
  91. style = ST_MULTI + ST_CENTER + 512;
  92. linespacing = 1;
  93. colorBackground[] = {0,0,0,0};
  94. colorText[] = {0,1,0,1};
  95. text = "";
  96. shadow = 0;
  97. font = "PuristaMedium";
  98. SizeEx = 0.04;
  99. fixedWidth = 0;
  100. x = 0;
  101. y = 0;
  102. h = 0;
  103. w = 0;
  104. };
  105. /*
  106. class myRedText: RscText {
  107. colorText[] = {1,0,0,1};
  108. x = 0.1; // Emplacement horizontal
  109. w = 0.4; // Largeur
  110. };
  111. */
  112. class RscPicture
  113. {
  114. access = 0;
  115. idc = -1;
  116. type = CT_STATIC;
  117. style = ST_PICTURE;
  118. colorBackground[] = {0,0,0,0};
  119. colorText[] = {1,1,1,1};
  120. font = "PuristaLight";
  121. sizeEx = 0;
  122. lineSpacing = 0;
  123. text = "";
  124. fixedWidth = 0;
  125. shadow = 0;
  126. x = 0;
  127. y = 0;
  128. w = 0.2;
  129. h = 0.15;
  130. };
  131. class RscButton
  132. {
  133. access = 0;
  134. type = CT_BUTTON;
  135. text = "";
  136. colorText[] = {0,0,0,0};
  137. colorDisabled[] = {0,0,0,0};
  138. colorBackground[] = {0,0,0,0};
  139. colorBackgroundDisabled[] = {0,0,0,0};
  140. colorBackgroundActive[] = {0,0,0,0};
  141. colorFocused[] = {0,0,0,0};
  142. colorShadow[] = {0,0,0,0};
  143. colorBorder[] = {0,0,0,0};
  144. soundEnter[] = {"\A3\ui_f\data\sound\ReadOut\ReadoutHideClick1",0,0};
  145. soundPush[] = {"\A3\ui_f\data\sound\ReadOut\ReadoutHideClick1",0,0};
  146. soundClick[] = {"\Resist\Objects\Sounds\GC_Button_01",0.09,1};
  147. soundEscape[] = {"\A3\ui_f\data\sound\ReadOut\ReadoutHideClick1",0,0};
  148. style = 2;
  149. x = 0;
  150. y = 0;
  151. w = 0.055589;
  152. h = 0.039216;
  153. shadow = 0;
  154. font = "PuristaMedium";
  155. sizeEx = 0.025;
  156. offsetX = 0;
  157. offsetY = 0;
  158. offsetPressedX = 0;
  159. offsetPressedY = 0;
  160. borderSize = 0;
  161. };