liberation_logistic.hpp 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427
  1. class liberation_logistic {
  2. idd = 75802;
  3. movingEnable = false;
  4. controlsBackground[] = {};
  5. controls[] = {
  6. "OuterBG1", "OuterBG_F1", "InnerBG1", "InnerBG_F1", "InnerBG2", "InnerBG_F2", "InnerBG3", "InnerBG_F3",
  7. "Header", "ButtonClose", "LogisticList", "ButtonCreateLogisticGroup", "ButtonDeleteLogisticGroup",
  8. "LogisticName", "StatusLabel", "Status", "TimeLabel", "Time", "DestinationLabel", "Destination",
  9. "LoadedTitle", "TruckCountLabel", "TruckCount", "LoadedSupplyLabel", "LoadedSupply", "LoadedAmmoLabel", "LoadedAmmo", "LoadedFuelLabel", "LoadedFuel", "ButtonBuyTruck", "ButtonSellTruck",
  10. "ATitle", "ACombo", "ASupp", "AAmmo", "AFuel",
  11. "BTitle", "BCombo", "BSupp", "BAmmo", "BFuel",
  12. "ALabel", "BLabel",
  13. "ButtonSaveLogistic", "ButtonAbortLogistic",
  14. "LogisticMap", "ButtonClose2"
  15. };
  16. objects[] = {};
  17. class OuterBG1 : StdBG {
  18. colorBackground[] = COLOR_BROWN;
  19. x = (0.2 * safezoneW + safezoneX) - (2 * BORDERSIZE);
  20. y = (0.15 * safezoneH + safezoneY) - (3 * BORDERSIZE);
  21. w = (0.6 * safezoneW) + (4 * BORDERSIZE);
  22. h = (0.65 * safezoneH) + (6 * BORDERSIZE);
  23. };
  24. class OuterBG_F1 : OuterBG1 {
  25. style = ST_FRAME;
  26. };
  27. class InnerBG1 : OuterBG1 {
  28. colorBackground[] = COLOR_GREEN;
  29. x = (0.2 * safezoneW + safezoneX) - (BORDERSIZE);
  30. y = (0.2 * safezoneH + safezoneY) - (1.5 * BORDERSIZE);
  31. w = (0.12 * safezoneW) + (2 * BORDERSIZE);
  32. h = (0.55 * safezoneH) + (3 * BORDERSIZE);
  33. };
  34. class InnerBG_F1 : InnerBG1 {
  35. style = ST_FRAME;
  36. };
  37. class InnerBG2 : OuterBG1 {
  38. colorBackground[] = COLOR_GREEN;
  39. x = (0.338 * safezoneW + safezoneX) - (BORDERSIZE);
  40. y = (0.2 * safezoneH + safezoneY) - (1.5 * BORDERSIZE);
  41. w = (0.153 * safezoneW) + (2 * BORDERSIZE);
  42. h = (0.55 * safezoneH) + (3 * BORDERSIZE);
  43. };
  44. class InnerBG_F2 : InnerBG2 {
  45. style = ST_FRAME;
  46. };
  47. class InnerBG3 : OuterBG1 {
  48. colorBackground[] = COLOR_GREEN;
  49. x = (0.51 * safezoneW + safezoneX) - (BORDERSIZE);
  50. y = (0.2 * safezoneH + safezoneY) - (1.5 * BORDERSIZE);
  51. w = (0.29 * safezoneW) + (2 * BORDERSIZE);
  52. h = (0.55 * safezoneH) + (3 * BORDERSIZE);
  53. };
  54. class InnerBG_F3 : InnerBG3 {
  55. style = ST_FRAME;
  56. };
  57. class Header : StdHeader {
  58. x = 0.2 * safezoneW + safezoneX - (BORDERSIZE);
  59. y = 0.14 * safezoneH + safezoneY;
  60. w = 0.6 * safezoneW + ( 2 * BORDERSIZE);
  61. h = 0.05 * safezoneH - (BORDERSIZE);
  62. text = $STR_LOGISTIC_HEADER;
  63. };
  64. class ButtonClose : StdButton {
  65. idc = 75801;
  66. x = 0.785 * safezoneW + safezoneX;
  67. y = 0.145 * safezoneH + safezoneY;
  68. w = 0.015 * safezoneW;
  69. h = 0.02 * safezoneH;
  70. text = "X";
  71. action = "closeDialog 0";
  72. };
  73. class LogisticList : StdListBox {
  74. idc = 75802;
  75. x = (0.2 * safezoneW + safezoneX) - (0.5 * BORDERSIZE);
  76. y = (0.2 * safezoneH + safezoneY) - (0.75 * BORDERSIZE);
  77. w = (0.12 * safezoneW) + BORDERSIZE;
  78. h = (0.50 * safezoneH) + (1.5 * BORDERSIZE);
  79. shadow = 2;
  80. onLBSelChanged="";
  81. };
  82. class ButtonCreateLogisticGroup : StdButton {
  83. idc = 75803;
  84. sizeEx = 0.026 * safezoneH;
  85. x = (0.2 * safezoneW + safezoneX) - (0.5 * BORDERSIZE);
  86. y = (0.7128 * safezoneH + safezoneY) - (0.75 * BORDERSIZE);
  87. w = (0.055 * safezoneW) + BORDERSIZE;
  88. h = (0.045 * safezoneH);
  89. text = $STR_ADD;
  90. action = "addLogiGroup = 1";
  91. };
  92. class ButtonDeleteLogisticGroup : StdButton {
  93. idc = 75804;
  94. sizeEx = 0.026 * safezoneH;
  95. x = (0.265 * safezoneW + safezoneX) - (0.5 * BORDERSIZE);
  96. y = (0.7128 * safezoneH + safezoneY) - (0.75 * BORDERSIZE);
  97. w = (0.055 * safezoneW) + BORDERSIZE;
  98. h = (0.045 * safezoneH);
  99. text = $STR_DEL;
  100. action = "deleteLogiGroup = 1";
  101. };
  102. class LogisticName : StdText {
  103. idc = 75805;
  104. style = ST_CENTER;
  105. colorBackground[] = COLOR_BLACK_ALPHA;
  106. x = (0.338 * safezoneW + safezoneX) - (0.5 * BORDERSIZE);
  107. y = (0.2 * safezoneH + safezoneY) - (0.75 * BORDERSIZE);
  108. w = (0.153 * safezoneW) + BORDERSIZE;
  109. h = (0.02 * safezoneH);
  110. text = "";
  111. };
  112. class StatusLabel : StdText {
  113. idc = 75806;
  114. x = (0.338 * safezoneW + safezoneX) - (0.5 * BORDERSIZE);
  115. y = (0.2 * safezoneH + safezoneY) - (0.75 * BORDERSIZE) + (2 * ICONE_SPACY);
  116. w = (0.07 * safezoneW);
  117. h = (0.02 * safezoneH);
  118. text = $STR_LOGISTIC_STATUS;
  119. };
  120. class Status : StatusLabel {
  121. idc = 75807;
  122. style = ST_RIGHT;
  123. x = (0.4145 * safezoneW + safezoneX) - (0.5 * BORDERSIZE);
  124. w = (0.08 * safezoneW);
  125. text = "";
  126. };
  127. class TimeLabel : StdText {
  128. idc = 75808;
  129. x = (0.338 * safezoneW + safezoneX) - (0.5 * BORDERSIZE);
  130. y = (0.2 * safezoneH + safezoneY) - (0.75 * BORDERSIZE) + (4 * ICONE_SPACY);
  131. w = (0.07 * safezoneW);
  132. h = (0.02 * safezoneH);
  133. text = $STR_PRODUCTION_TIMER;
  134. };
  135. class Time : TimeLabel {
  136. idc = 75809;
  137. style = ST_RIGHT;
  138. x = (0.4145 * safezoneW + safezoneX) - (0.5 * BORDERSIZE);
  139. w = (0.08 * safezoneW);
  140. text = "";
  141. };
  142. class DestinationLabel : StdText {
  143. idc = 758010;
  144. x = (0.338 * safezoneW + safezoneX) - (0.5 * BORDERSIZE);
  145. y = (0.2 * safezoneH + safezoneY) - (0.75 * BORDERSIZE) + (6 * ICONE_SPACY);
  146. w = (0.07 * safezoneW);
  147. h = (0.02 * safezoneH);
  148. text = $STR_LOGISTIC_DESTINATION;
  149. };
  150. class Destination : DestinationLabel {
  151. idc = 758011;
  152. style = ST_RIGHT;
  153. x = (0.4145 * safezoneW + safezoneX) - (0.5 * BORDERSIZE);
  154. w = (0.08 * safezoneW);
  155. text = "";
  156. };
  157. class LoadedTitle : StdText {
  158. idc = 758012;
  159. style = ST_CENTER;
  160. colorBackground[] = COLOR_BLACK_ALPHA;
  161. x = (0.338 * safezoneW + safezoneX) - (0.5 * BORDERSIZE);
  162. y = (0.2 * safezoneH + safezoneY) - (0.75 * BORDERSIZE) + (10 * ICONE_SPACY);
  163. w = (0.153 * safezoneW) + BORDERSIZE;
  164. h = (0.02 * safezoneH);
  165. text = $STR_LOGISTIC_LOADEDDETAIL;
  166. };
  167. class TruckCountLabel : StdText {
  168. idc = 758013;
  169. x = (0.338 * safezoneW + safezoneX) - (0.5 * BORDERSIZE);
  170. y = (0.2 * safezoneH + safezoneY) - (0.75 * BORDERSIZE) + (12 * ICONE_SPACY);
  171. w = (0.07 * safezoneW);
  172. h = (0.02 * safezoneH);
  173. text = $STR_LOGISTIC_TRUCKCOUNT;
  174. };
  175. class TruckCount : TruckCountLabel {
  176. idc = 758014;
  177. style = ST_RIGHT;
  178. x = (0.4145 * safezoneW + safezoneX) - (0.5 * BORDERSIZE);
  179. w = (0.08 * safezoneW);
  180. text = "";
  181. };
  182. class LoadedSupplyLabel : StdText {
  183. idc = 758015;
  184. x = (0.338 * safezoneW + safezoneX) - (0.5 * BORDERSIZE);
  185. y = (0.2 * safezoneH + safezoneY) - (0.75 * BORDERSIZE) + (14 * ICONE_SPACY);
  186. w = (0.07 * safezoneW);
  187. h = (0.02 * safezoneH);
  188. text = $STR_MANPOWER;
  189. };
  190. class LoadedSupply : LoadedSupplyLabel {
  191. idc = 758016;
  192. style = ST_RIGHT;
  193. x = (0.4145 * safezoneW + safezoneX) - (0.5 * BORDERSIZE);
  194. w = (0.08 * safezoneW);
  195. text = "";
  196. };
  197. class LoadedAmmoLabel : StdText {
  198. idc = 758017;
  199. x = (0.338 * safezoneW + safezoneX) - (0.5 * BORDERSIZE);
  200. y = (0.2 * safezoneH + safezoneY) - (0.75 * BORDERSIZE) + (16 * ICONE_SPACY);
  201. w = (0.07 * safezoneW);
  202. h = (0.02 * safezoneH);
  203. text = $STR_AMMO;
  204. };
  205. class LoadedAmmo : LoadedAmmoLabel {
  206. idc = 758018;
  207. style = ST_RIGHT;
  208. x = (0.4145 * safezoneW + safezoneX) - (0.5 * BORDERSIZE);
  209. w = (0.08 * safezoneW);
  210. text = "";
  211. };
  212. class LoadedFuelLabel : StdText {
  213. idc = 758019;
  214. x = (0.338 * safezoneW + safezoneX) - (0.5 * BORDERSIZE);
  215. y = (0.2 * safezoneH + safezoneY) - (0.75 * BORDERSIZE) + (18 * ICONE_SPACY);
  216. w = (0.07 * safezoneW);
  217. h = (0.02 * safezoneH);
  218. text = $STR_FUEL;
  219. };
  220. class LoadedFuel : LoadedFuelLabel {
  221. idc = 758020;
  222. style = ST_RIGHT;
  223. x = (0.4145 * safezoneW + safezoneX) - (0.5 * BORDERSIZE);
  224. w = (0.08 * safezoneW);
  225. text = "";
  226. };
  227. class ButtonBuyTruck : StdButton {
  228. idc = 758021;
  229. x = (0.338 * safezoneW + safezoneX) - (0.5 * BORDERSIZE);
  230. y = (0.2 * safezoneH + safezoneY) - (0.75 * BORDERSIZE) + (20 * ICONE_SPACY);
  231. w = (0.0725 * safezoneW) + BORDERSIZE;
  232. h = (0.02 * safezoneH);
  233. text = $STR_LOGSTIC_BUYTRUCK;
  234. tooltip = $STR_LOGISTIC_TT_BUYTRUCK;
  235. action = "buyLogiTruck = 1";
  236. };
  237. class ButtonSellTRuck : StdButton {
  238. idc = 758022;
  239. x = (0.4185 * safezoneW + safezoneX) - (0.5 * BORDERSIZE);
  240. y = (0.2 * safezoneH + safezoneY) - (0.75 * BORDERSIZE) + (20 * ICONE_SPACY);
  241. w = (0.0725 * safezoneW) + BORDERSIZE;
  242. h = (0.02 * safezoneH);
  243. text = $STR_LOGSTIC_SELLTRUCK;
  244. tooltip = $STR_LOGISTIC_TT_SELLTRUCK;
  245. action = "sellLogiTruck = 1";
  246. };
  247. class ATitle : StdText {
  248. idc = 758023;
  249. style = ST_CENTER;
  250. colorBackground[] = COLOR_BLACK_ALPHA;
  251. x = (0.338 * safezoneW + safezoneX) - (0.5 * BORDERSIZE);
  252. y = (0.2 * safezoneH + safezoneY) - (0.75 * BORDERSIZE) + (24 * ICONE_SPACY);
  253. w = (0.153 * safezoneW) + BORDERSIZE;
  254. h = (0.02 * safezoneH);
  255. text = $STR_LOGISTIC_LABELA;
  256. };
  257. class ACombo : StdCombo {
  258. idc = 758024;
  259. sizeEx = 0.018 * safezoneH;
  260. x = (0.338 * safezoneW + safezoneX) - (0.5 * BORDERSIZE);
  261. y = (0.2 * safezoneH + safezoneY) - (0.75 * BORDERSIZE) + (26 * ICONE_SPACY);
  262. w = (0.153 * safezoneW) + BORDERSIZE;
  263. h = (0.02 * safezoneH);
  264. };
  265. class ASupp : StdEdit {
  266. idc = 758025;
  267. x = (0.338 * safezoneW + safezoneX) - (0.5 * BORDERSIZE);
  268. y = (0.2 * safezoneH + safezoneY) - (0.75 * BORDERSIZE) + (28 * ICONE_SPACY);
  269. w = 0.05 * safezoneW;
  270. text = "";
  271. tooltip = $STR_LOGISTIC_TT_SUPPLY;
  272. action = "";
  273. autocomplete = "";
  274. };
  275. class AAmmo : StdEdit {
  276. idc = 758026;
  277. x = (0.392 * safezoneW + safezoneX) - (0.5 * BORDERSIZE);
  278. y = (0.2 * safezoneH + safezoneY) - (0.75 * BORDERSIZE) + (28 * ICONE_SPACY);
  279. w = 0.05 * safezoneW;
  280. text = "";
  281. tooltip = $STR_LOGISTIC_TT_AMMO;
  282. action = "";
  283. autocomplete = "";
  284. };
  285. class AFuel : StdEdit {
  286. idc = 758027;
  287. x = (0.446 * safezoneW + safezoneX) - (0.5 * BORDERSIZE);
  288. y = (0.2 * safezoneH + safezoneY) - (0.75 * BORDERSIZE) + (28 * ICONE_SPACY);
  289. w = 0.05 * safezoneW;
  290. text = "";
  291. tooltip = $STR_LOGISTIC_TT_FUEL;
  292. action = "";
  293. autocomplete = "";
  294. };
  295. class BTitle : StdText {
  296. idc = 758028;
  297. style = ST_CENTER;
  298. colorBackground[] = COLOR_BLACK_ALPHA;
  299. x = (0.338 * safezoneW + safezoneX) - (0.5 * BORDERSIZE);
  300. y = (0.2 * safezoneH + safezoneY) - (0.75 * BORDERSIZE) + (30 * ICONE_SPACY);
  301. w = (0.153 * safezoneW) + BORDERSIZE;
  302. h = (0.02 * safezoneH);
  303. text = $STR_LOGISTIC_LABELB;
  304. };
  305. class BCombo : StdCombo {
  306. idc = 758029;
  307. sizeEx = 0.018 * safezoneH;
  308. x = (0.338 * safezoneW + safezoneX) - (0.5 * BORDERSIZE);
  309. y = (0.2 * safezoneH + safezoneY) - (0.75 * BORDERSIZE) + (32 * ICONE_SPACY);
  310. w = (0.153 * safezoneW) + BORDERSIZE;
  311. h = (0.02 * safezoneH);
  312. };
  313. class BSupp : StdEdit {
  314. idc = 758030;
  315. x = (0.338 * safezoneW + safezoneX) - (0.5 * BORDERSIZE);
  316. y = (0.2 * safezoneH + safezoneY) - (0.75 * BORDERSIZE) + (34 * ICONE_SPACY);
  317. w = 0.05 * safezoneW;
  318. text = "";
  319. tooltip = $STR_LOGISTIC_TT_SUPPLY;
  320. action = "";
  321. autocomplete = "";
  322. };
  323. class BAmmo : StdEdit {
  324. idc = 758031;
  325. x = (0.392 * safezoneW + safezoneX) - (0.5 * BORDERSIZE);
  326. y = (0.2 * safezoneH + safezoneY) - (0.75 * BORDERSIZE) + (34 * ICONE_SPACY);
  327. w = 0.05 * safezoneW;
  328. text = "";
  329. tooltip = $STR_LOGISTIC_TT_AMMO;
  330. action = "";
  331. autocomplete = "";
  332. };
  333. class BFuel : StdEdit {
  334. idc = 758032;
  335. x = (0.446 * safezoneW + safezoneX) - (0.5 * BORDERSIZE);
  336. y = (0.2 * safezoneH + safezoneY) - (0.75 * BORDERSIZE) + (34 * ICONE_SPACY);
  337. w = 0.05 * safezoneW;
  338. text = "";
  339. tooltip = $STR_LOGISTIC_TT_FUEL;
  340. action = "";
  341. autocomplete = "";
  342. };
  343. class ALabel : StdText {
  344. idc = 758033;
  345. style = ST_CENTER;
  346. sizeEx = 0.018 * safezoneH;
  347. x = (0.338 * safezoneW + safezoneX) - (0.5 * BORDERSIZE);
  348. y = (0.2 * safezoneH + safezoneY) - (0.75 * BORDERSIZE) + (26 * ICONE_SPACY);
  349. w = (0.153 * safezoneW) + BORDERSIZE;
  350. h = (0.02 * safezoneH);
  351. text = "";
  352. };
  353. class BLabel : StdText {
  354. idc = 758034;
  355. style = ST_CENTER;
  356. sizeEx = 0.018 * safezoneH;
  357. x = (0.338 * safezoneW + safezoneX) - (0.5 * BORDERSIZE);
  358. y = (0.2 * safezoneH + safezoneY) - (0.75 * BORDERSIZE) + (32 * ICONE_SPACY);
  359. w = (0.153 * safezoneW) + BORDERSIZE;
  360. h = (0.02 * safezoneH);
  361. text = "";
  362. };
  363. class ButtonSaveLogistic : StdButton {
  364. idc = 758080;
  365. sizeEx = 0.02 * safezoneH;
  366. x = (0.338 * safezoneW + safezoneX) - (0.5 * BORDERSIZE);
  367. y = (0.7128 * safezoneH + safezoneY) - (0.75 * BORDERSIZE);
  368. w = (0.153 * safezoneW) + BORDERSIZE;
  369. h = (0.021 * safezoneH);
  370. text = $STR_LOGISTIC_CONFIRM;
  371. action = "saveConvoySettings = 1";
  372. };
  373. class ButtonAbortLogistic : StdButton {
  374. idc = 758081;
  375. sizeEx = 0.02 * safezoneH;
  376. x = (0.338 * safezoneW + safezoneX) - (0.5 * BORDERSIZE);
  377. y = (0.7368 * safezoneH + safezoneY) - (0.75 * BORDERSIZE);
  378. w = (0.153 * safezoneW) + BORDERSIZE;
  379. h = (0.021 * safezoneH);
  380. text = $STR_LOGISTIC_CANCEL;
  381. action = "convoyStandby = 1";
  382. };
  383. class LogisticMap : kndr_MapControl {
  384. idc = 758098;
  385. x = (0.51 * safezoneW + safezoneX) - (0.5 * BORDERSIZE);
  386. y = (0.2 * safezoneH + safezoneY) - (0.75 * BORDERSIZE);
  387. w = (0.29 * safezoneW) + BORDERSIZE;
  388. h = (0.55 * safezoneH) + (1.5 * BORDERSIZE);
  389. };
  390. class ButtonClose2 : StdButton {
  391. idc = 758099;
  392. x = 0.455 * safezoneW + safezoneX;
  393. y = 0.77 * safezoneH + safezoneY;
  394. w = 0.09 * safezoneW;
  395. h = 0.035 * safezoneH;
  396. text = $STR_CLOSE;
  397. action = "closeDialog 0";
  398. };
  399. };