liberation_build.hpp 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314
  1. class liberation_build {
  2. idd = 5501;
  3. movingEnable = false;
  4. controlsBackground[] = {};
  5. controls[] = {"OuterBG", "RecycleBG", "OuterBG_F", "InnerBG", "InnerBG_F", "Header",
  6. "ButtonClose","BuildInfantryButton","BuildTransportVehicleButton",
  7. "BuildCombatVehicleButton","BuildAerialButton","BuildDefenceButton",
  8. "BuildSupportButton","BuildSquadButton","BuildBuildingButton","BuildInfantryImage",
  9. "BuildTransportVehicleImage","BuildCombatVehicleImage","BuildAerialImage","ManpowerImageShadow","AmmoImageShadow","FuelImageShadow",
  10. "BuildDefenceImage","BuildSupportImage","BuildSquadImage","BuildBuildingImage","ListBG","ManpowerImage","AmmoImage","FuelImage",
  11. "BuildList","BuildButton","LabelManpower","LabelAmmo","LabelFuel","LabelCap","BuildMannedButton","PageLabel", "LinkedSector"
  12. };
  13. objects[] = {};
  14. class RecycleBG : BgPicture {
  15. x = (0.35 * safezoneW + safezoneX) - ( 2 * BORDERSIZE);
  16. y = (0.2 * safezoneH + safezoneY) - (3 * BORDERSIZE);
  17. w = (0.3 * safezoneW) + (4 * BORDERSIZE);
  18. h = (0.6 * safezoneH) + (6 * BORDERSIZE);
  19. };
  20. class OuterBG : StdBG{
  21. colorBackground[] = COLOR_BROWN;
  22. x = (0.35 * safezoneW + safezoneX) - ( 2 * BORDERSIZE);
  23. y = (0.2 * safezoneH + safezoneY) - (3 * BORDERSIZE);
  24. w = (0.3 * safezoneW) + (4 * BORDERSIZE);
  25. h = (0.6 * safezoneH) + (6 * BORDERSIZE);
  26. };
  27. class OuterBG_F : OuterBG {
  28. style = ST_FRAME;
  29. };
  30. class InnerBG : OuterBG {
  31. colorBackground[] = COLOR_GREEN;
  32. x = (0.35 * safezoneW + safezoneX) - ( BORDERSIZE);
  33. y = 0.25 * safezoneH + safezoneY - (1.5 * BORDERSIZE);
  34. w = (0.3 * safezoneW) + (2 * BORDERSIZE);
  35. h = 0.55 * safezoneH + (3 * BORDERSIZE);
  36. };
  37. class InnerBG_F : InnerBG {
  38. style = ST_FRAME;
  39. };
  40. class Header : StdHeader{
  41. x = 0.35 * safezoneW + safezoneX - (BORDERSIZE);
  42. y = 0.19 * safezoneH + safezoneY;
  43. w = 0.3 * safezoneW + ( 2 * BORDERSIZE);
  44. h = 0.05 * safezoneH - (BORDERSIZE);
  45. text = $STR_BUILD_TITLE;
  46. };
  47. class ButtonClose : StdButton{
  48. idc = 101;
  49. x = 0.635 * safezoneW + safezoneX;
  50. w = 0.015 * safezoneW;
  51. h = 0.02 * safezoneH;
  52. y = 0.195 * safezoneH + safezoneY;
  53. text = "X";
  54. action = "closeDialog 0";
  55. };
  56. class BuildTypeImage {
  57. idc = -1;
  58. type = CT_STATIC;
  59. style = ST_PICTURE;
  60. colorText[] = {0, 0, 0, 1};
  61. colorBackground[] = {0, 0, 0, 1};
  62. font = FontM;
  63. sizeEx = 0.023;
  64. y = (0.2525 * safezoneH + safezoneY);
  65. w = (0.02 * safezoneW);
  66. h = (0.035 * safezoneH);
  67. moving = false;
  68. };
  69. class BuildTypeButton : StdButton{
  70. colorBackgroundActive[] = { 0,1,0,0.5 };
  71. colorFocused[] = { 0, 1, 0, 0.5 };
  72. y = (0.25 * safezoneH + safezoneY);
  73. w = (0.023 * safezoneW);
  74. h = (0.04 * safezoneH);
  75. text = "";
  76. };
  77. class BuildInfantryImage : BuildTypeImage {
  78. idc = 1025;
  79. x = (0.402 * safezoneW + safezoneX);
  80. text = "\a3\Ui_F_Curator\Data\Displays\RscDisplayCurator\modeUnits_ca.paa";
  81. };
  82. class BuildInfantryButton : BuildTypeButton{
  83. idc = 102;
  84. text = "";
  85. action = "buildtype=1";
  86. x = (0.4 * safezoneW + safezoneX);
  87. };
  88. class BuildTransportVehicleImage : BuildTypeImage {
  89. idc = 1035;
  90. x = (0.427 * safezoneW + safezoneX);
  91. text = "\A3\ui_f\data\map\vehicleicons\iconCar_ca.paa";
  92. };
  93. class BuildTransportVehicleButton : BuildTypeButton{
  94. idc = 103;
  95. text = "";
  96. action = "buildtype=2";
  97. x = (0.425 * safezoneW + safezoneX);
  98. };
  99. class BuildCombatVehicleImage : BuildTypeImage {
  100. idc = 1045;
  101. x = (0.452 * safezoneW + safezoneX);
  102. text = "\A3\ui_f\data\map\vehicleicons\iconTank_ca.paa";
  103. };
  104. class BuildCombatVehicleButton : BuildTypeButton{
  105. idc = 104;
  106. text = "";
  107. action = "buildtype=3";
  108. x = (0.45 * safezoneW + safezoneX);
  109. };
  110. class BuildAerialImage : BuildTypeImage {
  111. idc = 1055;
  112. x = (0.477 * safezoneW + safezoneX);
  113. text = "\A3\ui_f\data\map\vehicleicons\iconHelicopter_ca.paa";
  114. };
  115. class BuildAerialButton : BuildTypeButton{
  116. idc = 105;
  117. text = "";
  118. action = "buildtype=4";
  119. x = (0.475 * safezoneW + safezoneX);
  120. };
  121. class BuildDefenceImage : BuildTypeImage {
  122. idc = 11065;
  123. x = (0.502 * safezoneW + safezoneX);
  124. text = "\A3\ui_f\data\map\vehicleicons\iconStaticCannon_ca.paa";
  125. };
  126. class BuildDefenceButton : BuildTypeButton{
  127. idc = 1106;
  128. text = "";
  129. action = "buildtype=5";
  130. x = (0.5 * safezoneW + safezoneX);
  131. };
  132. class BuildBuildingImage : BuildTypeImage {
  133. idc = 1095;
  134. x = (0.527 * safezoneW + safezoneX);
  135. text = "\A3\ui_f\data\map\mapcontrol\Bunker_CA.paa";
  136. }
  137. class BuildBuildingButton : BuildTypeButton{
  138. idc = 109;
  139. text = "";
  140. action = "buildtype=6";
  141. x = (0.525 * safezoneW + safezoneX);
  142. };
  143. class BuildSupportImage : BuildTypeImage {
  144. idc = 1075;
  145. x = (0.552 * safezoneW + safezoneX);
  146. text = "\A3\ui_f\data\map\vehicleicons\iconCrateAmmo_ca.paa";
  147. };
  148. class BuildSupportButton : BuildTypeButton{
  149. idc = 107;
  150. text = "";
  151. action = "buildtype=7";
  152. x = (0.55 * safezoneW + safezoneX);
  153. };
  154. class BuildSquadImage : BuildTypeImage {
  155. idc = 1085;
  156. x = (0.577 * safezoneW + safezoneX);
  157. text = "\a3\Ui_F_Curator\Data\Displays\RscDisplayCurator\modeGroups_ca.paa";
  158. };
  159. class BuildSquadButton : BuildTypeButton{
  160. idc = 108;
  161. text = "";
  162. action = "buildtype=8";
  163. x = (0.575 * safezoneW + safezoneX);
  164. };
  165. class IconImage {
  166. idc = -1;
  167. type = CT_STATIC;
  168. style = ST_PICTURE;
  169. colorText[] = {1, 1, 1, 1};
  170. colorBackground[] = {0, 0, 0, 1};
  171. font = FontM;
  172. sizeEx = 0.023;
  173. y = (0.32 * safezoneH + safezoneY);
  174. w = (0.015 * safezoneW);
  175. h = (0.025 * safezoneH);
  176. moving = false;
  177. };
  178. class ManpowerImage : IconImage {
  179. x = (0.5475 * safezoneW + safezoneX);
  180. text = "res\ui_manpo.paa";
  181. };
  182. class AmmoImage : IconImage {
  183. x = (0.5775 * safezoneW + safezoneX);
  184. text = "res\ui_ammo.paa";
  185. };
  186. class FuelImage : IconImage {
  187. x = (0.6075 * safezoneW + safezoneX);
  188. text = "res\ui_fuel.paa";
  189. };
  190. class ManpowerImageShadow : IconImage {
  191. x = (0.5475 * safezoneW + safezoneX) + 0.003;
  192. text = "res\ui_manpo.paa";
  193. colorText[] = {0, 0, 0, 1};
  194. y = (0.32 * safezoneH + safezoneY) + 0.005;
  195. };
  196. class AmmoImageShadow : IconImage {
  197. x = (0.5775 * safezoneW + safezoneX) + 0.003;
  198. text = "res\ui_ammo.paa";
  199. colorText[] = {0, 0, 0, 1};
  200. y = (0.32 * safezoneH + safezoneY) + 0.005;
  201. };
  202. class FuelImageShadow : IconImage {
  203. x = (0.6075 * safezoneW + safezoneX) + 0.003;
  204. text = "res\ui_fuel.paa";
  205. colorText[] = {0, 0, 0, 1};
  206. y = (0.32 * safezoneH + safezoneY) + 0.005;
  207. };
  208. class BuildList : StdListNBox {
  209. idc = 110;
  210. x = 0.35 * safezoneW + safezoneX;
  211. w = 0.3 * safezoneW;
  212. y = 0.35 * safezoneH + safezoneY;
  213. h = (0.35 * safezoneH) - (2 * BORDERSIZE);
  214. columns[] = {
  215. 0,
  216. 0.65,
  217. 0.75,
  218. 0.85,
  219. };
  220. onLBSelChanged="";
  221. shadow = 2;
  222. rowHeight = 1.25 * 0.018 * safezoneH;
  223. colorPicture[] = {1,1,1,1};
  224. colorPictureSelected[] = {0,1,0,1};
  225. colorPictureDisabled[] = {0.4,0.4,0.4,1};
  226. };
  227. class ListBG : OuterBG {
  228. colorBackground[] = COLOR_GREEN;
  229. x = 0.35 * safezoneW + safezoneX;
  230. w = 0.3 * safezoneW;
  231. y = 0.35 * safezoneH + safezoneY;
  232. h = (0.35 * safezoneH) - (2 * BORDERSIZE);
  233. };
  234. class LabelResource : StdText{
  235. x = (0.35 * safezoneW + safezoneX);
  236. w = (0.15 * safezoneW);
  237. h = (0.03 * safezoneH);
  238. };
  239. class LabelManpower : LabelResource{
  240. idc = 131;
  241. y = (0.7 * safezoneH + safezoneY);
  242. colorText[] = {0, 0.75, 0, 1};
  243. };
  244. class LabelAmmo : LabelResource{
  245. idc = 132;
  246. y = (0.72 * safezoneH + safezoneY);
  247. colorText[] = {0.75, 0, 0, 1};
  248. };
  249. class LabelFuel : LabelResource{
  250. idc = 133;
  251. y = (0.74 * safezoneH + safezoneY);
  252. colorText[] = {0.75, 0.75, 0, 1};
  253. };
  254. class LabelCap : LabelResource{
  255. idc = 134;
  256. type = CT_STRUCTURED_TEXT;
  257. y = (0.78 * safezoneH + safezoneY);
  258. size = 0.02 * safezoneH;
  259. colorText[] = {0.8, 0.8, 0.8, 1};
  260. };
  261. class PageLabel : StdText{
  262. idc = 151;
  263. x = (0.35 * safezoneW + safezoneX);
  264. y = (0.3 * safezoneH + safezoneY);
  265. w = (0.2 * safezoneW);
  266. h = (0.05 * safezoneH);
  267. sizeEx = 0.03 * safezoneH;
  268. };
  269. class BuildButton : StdButton{
  270. idc = 120;
  271. x = (0.55 * safezoneW + safezoneX);
  272. y = (0.75 * safezoneH + safezoneY);
  273. w = (0.1 * safezoneW);
  274. h = (0.045 * safezoneH);
  275. sizeEx = 0.03 * safezoneH;
  276. text = $STR_BUILD_BUTTON;
  277. action = "dobuild = 1;";
  278. };
  279. class BuildMannedButton : StdButton{
  280. idc = 121;
  281. x = (0.55 * safezoneW + safezoneX);
  282. y = (0.7 * safezoneH + safezoneY);
  283. w = (0.1 * safezoneW);
  284. h = (0.045 * safezoneH);
  285. sizeEx = 0.02 * safezoneH;
  286. text = $STR_BUILD_CREW;
  287. action = "dobuild = 1; manned = true;";
  288. };
  289. class LinkedSector{
  290. idc = 161;
  291. type = CT_STRUCTURED_TEXT;
  292. colorBackground[] = COLOR_NOALPHA;
  293. style = ST_LEFT;
  294. x = 0.45 * safezoneW + safezoneX;
  295. w = 0.1 * safezoneW;
  296. y = 0.725 * safezoneH + safezoneY;
  297. h = 0.05 * safezoneH;
  298. text= "";
  299. size = 0.02 * safezoneH;
  300. sizeEx = 0.02 * safezoneH;
  301. shadow = 2;
  302. font = FontM;
  303. color = "#e0e000";
  304. align = "right";
  305. valign = "top";
  306. };
  307. };