liberation_squad.hpp 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192
  1. class liberation_squad {
  2. idd = 5155;
  3. movingEnable = false;
  4. controlsBackground[] = {};
  5. controls[] = {"OuterBG", "RecycleBG","OuterBG_F", "InnerBG", "InnerBG_F", "OuterCenterPanel","Header","SquadList","DeployMap", "ButtonClose",
  6. "NameLabel", "ClassLabel", "HealthLabel", "DistanceLabel", "PrimaryLabel", "PrimaryMagsLabel", "SecondaryLabel", "SecondaryMagsLabel", "VehicleLabel",
  7. "ResupplyButton", "RemoveButton", "ReplaceButton", "ConfirmButton", "CancelButton", "PiPZone"};
  8. objects[] = {};
  9. class RecycleBG : BgPicture {
  10. x = (0.2 * safezoneW + safezoneX) - (2 * BORDERSIZE);
  11. y = (0.2 * safezoneH + safezoneY) - (3 * BORDERSIZE);
  12. w = (0.6 * safezoneW) + (4 * BORDERSIZE);
  13. h = (0.6 * safezoneH) + (6 * BORDERSIZE);
  14. };
  15. class DeployMap : kndr_MapControl {
  16. idc = 100;
  17. x = (0.32 * safezoneW + safezoneX) + BORDERSIZE;
  18. y = (0.6 * safezoneH + safezoneY);
  19. w = (0.12 * safezoneW);
  20. h = (0.2 * safezoneH);
  21. };
  22. class OuterBG : StdBG{
  23. colorBackground[] = COLOR_BROWN;
  24. x = (0.2 * safezoneW + safezoneX) - (2 * BORDERSIZE);
  25. y = (0.2 * safezoneH + safezoneY) - (3 * BORDERSIZE);
  26. w = (0.6 * safezoneW) + (4 * BORDERSIZE);
  27. h = (0.6 * safezoneH) + (6 * BORDERSIZE);
  28. };
  29. class OuterBG_F : OuterBG {
  30. style = ST_FRAME;
  31. };
  32. class InnerBG : OuterBG {
  33. colorBackground[] = COLOR_GREEN;
  34. x = (0.2 * safezoneW + safezoneX) - BORDERSIZE;
  35. y = (0.25 * safezoneH + safezoneY) - (1.5 * BORDERSIZE);
  36. w = (0.6 * safezoneW) + (2 * BORDERSIZE);
  37. h = (0.55 * safezoneH) + (3 * BORDERSIZE);
  38. };
  39. class InnerBG_F : InnerBG {
  40. style = ST_FRAME;
  41. };
  42. class OuterCenterPanel : StdBG {
  43. colorBackground[] = COLOR_GREEN;
  44. style = ST_FRAME;
  45. x = 0.32 * safezoneW + safezoneX + BORDERSIZE;
  46. w = 0.12 * safezoneW;
  47. y = 0.25 * safezoneH + safezoneY;
  48. h = (0.35 * safezoneH) - (1.5 * BORDERSIZE);
  49. };
  50. class Header : StdHeader{
  51. x = 0.2 * safezoneW + safezoneX - (BORDERSIZE);
  52. y = 0.19 * safezoneH + safezoneY;
  53. w = 0.6 * safezoneW + ( 2 * BORDERSIZE);
  54. h = 0.05 * safezoneH - (BORDERSIZE);
  55. text = $STR_SQUAD_MANAGEMENT;
  56. };
  57. class SquadList : StdListBox {
  58. idc = 101;
  59. x = 0.2 * safezoneW + safezoneX;
  60. w = 0.12 * safezoneW;
  61. y = 0.25 * safezoneH + safezoneY;
  62. h = (0.35 * safezoneH) - (1.5 * BORDERSIZE);
  63. shadow = 2;
  64. onLBSelChanged="";
  65. };
  66. class ResupplyButton : StdButton{
  67. idc = 210;
  68. x = (0.2 * safezoneW + safezoneX);
  69. y = (0.6 * safezoneH + safezoneY);
  70. w = (0.12 * safezoneW);
  71. h = (0.04 * safezoneH);
  72. sizeEx = 0.025 * safezoneH;
  73. text = $STR_RESUPPLY;
  74. tooltip = $STR_RESUPPLY_TOOLTIP;
  75. action = "GRLIB_squadaction = 1";
  76. };
  77. class RemoveButton : StdButton{
  78. idc = 211;
  79. x = (0.2 * safezoneW + safezoneX);
  80. y = (0.65 * safezoneH + safezoneY);
  81. w = (0.12 * safezoneW);
  82. h = (0.04 * safezoneH);
  83. sizeEx = 0.025 * safezoneH;
  84. text = $STR_REMOVE_MEMBER;
  85. tooltip = $STR_REMOVE_MEMBER_TOOLTIP;
  86. action = "GRLIB_squadaction = 2";
  87. };
  88. class ReplaceButton : StdButton{
  89. idc = 212;
  90. x = (0.2 * safezoneW + safezoneX);
  91. y = (0.7 * safezoneH + safezoneY) ;
  92. w = (0.12 * safezoneW);
  93. h = (0.04 * safezoneH);
  94. sizeEx = 0.025 * safezoneH;
  95. text = $STR_DEPLOY_ON_MEMBER;
  96. tooltip = $STR_DEPLOY_ON_MEMBER_TOOLTIP;
  97. action = "GRLIB_squadaction = 3";
  98. };
  99. class ConfirmButton : StdButton{
  100. idc = 213;
  101. x = (0.2 * safezoneW + safezoneX);
  102. y = (0.75 * safezoneH + safezoneY) ;
  103. w = (0.055 * safezoneW);
  104. h = (0.04 * safezoneH);
  105. sizeEx = 0.025 * safezoneH;
  106. text = $STR_CONFIRM;
  107. action = "GRLIB_squadconfirm = 1";
  108. };
  109. class CancelButton : StdButton{
  110. idc = 214;
  111. x = (0.265 * safezoneW + safezoneX);
  112. y = (0.75 * safezoneH + safezoneY) ;
  113. w = (0.055 * safezoneW);
  114. h = (0.04 * safezoneH);
  115. sizeEx = 0.025 * safezoneH;
  116. text = $STR_RECYCLING_CANCEL;
  117. action = "GRLIB_squadconfirm = 0";
  118. };
  119. class ButtonClose : StdButton{
  120. x = 0.785 * safezoneW + safezoneX;
  121. w = 0.015 * safezoneW;
  122. h = 0.02 * safezoneH;
  123. y = 0.195 * safezoneH + safezoneY;
  124. text = "X";
  125. action = "closeDialog 0";
  126. };
  127. class StdSquadLabel : StdText{
  128. x = (0.32 * safezoneW + safezoneX) + (BORDERSIZE);
  129. w = (0.12 * safezoneW) - BORDERSIZE;
  130. h = (0.03 * safezoneH);
  131. shadow = 2;
  132. sizeEx = 0.018 * safezoneH;
  133. text = "";
  134. };
  135. class NameLabel : StdSquadLabel{
  136. idc = 201;
  137. style = ST_CENTER;
  138. y = 0.25 * safezoneH + safezoneY;
  139. sizeEx = 0.022 * safezoneH;
  140. };
  141. class ClassLabel : StdSquadLabel{
  142. idc = 202;
  143. y = 0.3 * safezoneH + safezoneY;
  144. };
  145. class HealthLabel : StdSquadLabel{
  146. idc = 203;
  147. y = 0.325 * safezoneH + safezoneY;
  148. };
  149. class DistanceLabel : StdSquadLabel{
  150. idc = 204;
  151. y = 0.35 * safezoneH + safezoneY;
  152. };
  153. class PrimaryLabel : StdSquadLabel{
  154. idc = 205;
  155. y = 0.4 * safezoneH + safezoneY;
  156. };
  157. class PrimaryMagsLabel : StdSquadLabel{
  158. idc = 206;
  159. y = 0.425 * safezoneH + safezoneY;
  160. };
  161. class SecondaryLabel : StdSquadLabel{
  162. idc = 207;
  163. y = 0.475 * safezoneH + safezoneY;
  164. };
  165. class SecondaryMagsLabel : StdSquadLabel{
  166. idc = 208;
  167. y = 0.5 * safezoneH + safezoneY;
  168. };
  169. class VehicleLabel : StdSquadLabel{
  170. idc = 209;
  171. y = 0.55 * safezoneH + safezoneY;
  172. };
  173. class PiPZone {
  174. idc = 333;
  175. type = CT_STATIC;
  176. style = ST_PICTURE;
  177. colorText[] = {1,1,1,1};
  178. colorBackground[] = {1,1,1,1};
  179. font = FontM;
  180. sizeEx = 0.023;
  181. x = 0.44 * safezoneW + safezoneX + ( 2 * BORDERSIZE);
  182. y = (0.25 * safezoneH + safezoneY);
  183. w = (0.36 * safezoneW) - ( 2 * BORDERSIZE) ;
  184. h = (0.55 * safezoneH);
  185. text = "#(argb,512,512,1)r2t(rtt,1.333)";
  186. moving = false;
  187. };
  188. };