liberation_recycle.hpp 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. class liberation_recycle {
  2. idd = 5751;
  3. movingEnable = false;
  4. controlsBackground[] = { "OuterBG", "RecycleBG", "OuterBG_F", "InnerBG", "InnerBG_F" };
  5. controls[] = { "Header", "ButtonClose",
  6. "ManpowerImageShadow","AmmoImageShadow","FuelImageShadow",
  7. "ManpowerImage","AmmoImage","FuelImage",
  8. "Infotext","LabelManpower","LabelAmmo","LabelFuel",
  9. "RecycleButton","CancelButton"
  10. };
  11. objects[] = {};
  12. class RecycleBG : BgPicture {
  13. x = (0.35 * safezoneW + safezoneX) - ( 2 * BORDERSIZE);
  14. y = (0.4 * safezoneH + safezoneY) - (3 * BORDERSIZE);
  15. w = (0.3 * safezoneW) + (4 * BORDERSIZE);
  16. h = (0.2 * safezoneH) + (6 * BORDERSIZE);
  17. };
  18. class OuterBG : StdBG{
  19. colorBackground[] = COLOR_BROWN;
  20. x = (0.35 * safezoneW + safezoneX) - ( 2 * BORDERSIZE);
  21. y = (0.4 * safezoneH + safezoneY) - (3 * BORDERSIZE);
  22. w = (0.3 * safezoneW) + (4 * BORDERSIZE);
  23. h = (0.2 * safezoneH) + (6 * BORDERSIZE);
  24. };
  25. class OuterBG_F : OuterBG {
  26. style = ST_FRAME;
  27. };
  28. class InnerBG : OuterBG {
  29. colorBackground[] = COLOR_GREEN;
  30. x = (0.35 * safezoneW + safezoneX) - ( BORDERSIZE);
  31. y = 0.45 * safezoneH + safezoneY - (1.5 * BORDERSIZE);
  32. w = (0.3 * safezoneW) + (2 * BORDERSIZE);
  33. h = 0.15 * safezoneH + (3 * BORDERSIZE);
  34. };
  35. class InnerBG_F : InnerBG {
  36. style = ST_FRAME;
  37. };
  38. class Header : StdHeader{
  39. x = 0.35 * safezoneW + safezoneX - (BORDERSIZE);
  40. y = 0.39 * safezoneH + safezoneY;
  41. w = 0.3 * safezoneW + ( 2 * BORDERSIZE);
  42. h = 0.05 * safezoneH - (BORDERSIZE);
  43. text = $STR_RECYCLING;
  44. };
  45. class ButtonClose : StdButton{
  46. idc = 101;
  47. x = 0.632 * safezoneW + safezoneX;
  48. w = 0.015 * safezoneW;
  49. h = 0.02 * safezoneH;
  50. y = 0.402 * safezoneH + safezoneY;
  51. text = "X";
  52. action = "closeDialog 0";
  53. };
  54. class IconImage {
  55. idc = -1;
  56. type = CT_STATIC;
  57. style = ST_PICTURE;
  58. colorText[] = {1, 1, 1, 1};
  59. colorBackground[] = {0, 0, 0, 1};
  60. font = FontM;
  61. sizeEx = 0.023;
  62. y = (0.5 * safezoneH + safezoneY);
  63. w = (0.015 * safezoneW);
  64. h = (0.025 * safezoneH);
  65. moving = false;
  66. };
  67. class ManpowerImage : IconImage {
  68. idc = 1085;
  69. x = (0.42 * safezoneW + safezoneX);
  70. text = "res\ui_manpo.paa";
  71. };
  72. class AmmoImage : IconImage {
  73. idc = 1085;
  74. x = (0.48 * safezoneW + safezoneX);
  75. text = "res\ui_ammo.paa";
  76. };
  77. class FuelImage : IconImage {
  78. idc = 1085;
  79. x = (0.54 * safezoneW + safezoneX);
  80. text = "res\ui_fuel.paa";
  81. };
  82. class ManpowerImageShadow : IconImage {
  83. idc = 1085;
  84. x = (0.42 * safezoneW + safezoneX) + 0.003;
  85. text = "res\ui_manpo.paa";
  86. colorText[] = {0, 0, 0, 1};
  87. y = (0.5 * safezoneH + safezoneY) + 0.005;
  88. };
  89. class AmmoImageShadow : IconImage {
  90. idc = 1085;
  91. x = (0.48 * safezoneW + safezoneX) + 0.003;
  92. text = "res\ui_ammo.paa";
  93. colorText[] = {0, 0, 0, 1};
  94. y = (0.5 * safezoneH + safezoneY) + 0.005;
  95. };
  96. class FuelImageShadow : IconImage {
  97. idc = 1085;
  98. x = (0.54 * safezoneW + safezoneX) + 0.003;
  99. text = "res\ui_fuel.paa";
  100. colorText[] = {0, 0, 0, 1};
  101. y = (0.5 * safezoneH + safezoneY) + 0.005;
  102. };
  103. class Infotext : StdText{
  104. idc = 134;
  105. style = ST_CENTER;
  106. x = (0.35 * safezoneW + safezoneX);
  107. w = (0.3 * safezoneW);
  108. h = (0.03 * safezoneH);
  109. y = (0.45 * safezoneH + safezoneY);
  110. colorText[] = {0.9, 0.9, 0.9, 1};
  111. };
  112. class LabelNumber : StdText{
  113. y = (0.5 * safezoneH + safezoneY) - (0.5 * BORDERSIZE);
  114. w = (0.1 * safezoneW);
  115. h = (0.03 * safezoneH);
  116. sizeEx = 0.03 * safezoneH;
  117. };
  118. class LabelManpower : LabelNumber{
  119. idc = 131;
  120. x = (0.44 * safezoneW + safezoneX) - BORDERSIZE;
  121. colorText[] = {0, 0.75, 0, 1};
  122. };
  123. class LabelAmmo : LabelNumber{
  124. idc = 132;
  125. x = (0.5 * safezoneW + safezoneX) - BORDERSIZE;
  126. colorText[] = {0.75, 0, 0, 1};
  127. };
  128. class LabelFuel : LabelNumber{
  129. idc = 133;
  130. x = (0.56 * safezoneW + safezoneX) - BORDERSIZE;
  131. colorText[] = {0.75, 0.75, 0, 1};
  132. };
  133. class RecycleButton : StdButton{
  134. idc = 120;
  135. x = (0.4 * safezoneW + safezoneX) - (BORDERSIZE);
  136. y = (0.55 * safezoneH + safezoneY);
  137. w = (0.1 * safezoneW) - (BORDERSIZE);
  138. h = (0.045 * safezoneH);
  139. sizeEx = 0.025 * safezoneH;
  140. text = $STR_RECYCLING_PROCEED;
  141. action = "dorecycle = 1;";
  142. };
  143. class CancelButton : StdButton{
  144. idc = 121;
  145. x = (0.5 * safezoneW + safezoneX) + (BORDERSIZE);
  146. y = (0.55 * safezoneH + safezoneY);
  147. w = (0.1 * safezoneW);
  148. h = (0.045 * safezoneH);
  149. sizeEx = 0.025 * safezoneH;
  150. text = $STR_RECYCLING_CANCEL;
  151. action = "closeDialog 0";
  152. };
  153. };