liberation_secondary.hpp 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190
  1. class liberation_secondary {
  2. idd = 6842;
  3. movingEnable = false;
  4. controlsBackground[] = {
  5. "CamoBG",
  6. "OuterBG",
  7. "OuterBG_F",
  8. "InnerBG",
  9. "InnerBG_F",
  10. "MissionBriefingFrame"
  11. };
  12. controls[] = {
  13. "Header",
  14. "MissionsList",
  15. "MissionImage",
  16. "ButtonClose",
  17. "MissionBriefing",
  18. "StartButton",
  19. "CancelButton",
  20. "LabelIntel"
  21. };
  22. objects[] = {};
  23. class CamoBG : BgPicture {
  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 : StdBG{
  30. colorBackground[] = COLOR_BROWN;
  31. x = (0.2 * safezoneW + safezoneX) - (2 * BORDERSIZE);
  32. y = (0.2 * safezoneH + safezoneY) - (3 * BORDERSIZE);
  33. w = (0.6 * safezoneW) + (4 * BORDERSIZE);
  34. h = (0.6 * safezoneH) + (6 * BORDERSIZE);
  35. };
  36. class OuterBG_F : OuterBG {
  37. style = ST_FRAME;
  38. };
  39. class InnerBG : OuterBG {
  40. colorBackground[] = COLOR_GREEN;
  41. x = (0.2 * safezoneW + safezoneX) - ( BORDERSIZE);
  42. y = 0.25 * safezoneH + safezoneY - (1.5 * BORDERSIZE);
  43. w = (0.6 * safezoneW) + (2 * BORDERSIZE);
  44. h = 0.55 * safezoneH + (3 * BORDERSIZE);
  45. };
  46. class InnerBG_F : InnerBG {
  47. style = ST_FRAME;
  48. };
  49. class MissionBriefingFrame : StdBG{
  50. style = ST_FRAME;
  51. colorBackground[] = COLOR_GREEN;
  52. x = (0.35 * safezoneW + safezoneX) + BORDERSIZE;
  53. y = 0.25 * safezoneH + safezoneY;
  54. w = (0.45 * safezoneW) - BORDERSIZE;
  55. h = (0.5 * safezoneH) - BORDERSIZE;
  56. };
  57. class MissionImage : BgPicture {
  58. idc = 106;
  59. x = (0.2 * safezoneW + safezoneX);
  60. y = (0.25 * safezoneH + safezoneY);
  61. w = (0.15 * safezoneW);
  62. h = (0.2 * safezoneH);
  63. colorText[] = {1.0, 1.0, 1.0, 1.0};
  64. text = "";
  65. };
  66. class Header : StdHeader{
  67. x = 0.2 * safezoneW + safezoneX - (BORDERSIZE);
  68. y = 0.19 * safezoneH + safezoneY;
  69. w = 0.6 * safezoneW + ( 2 * BORDERSIZE);
  70. h = 0.05 * safezoneH - (BORDERSIZE);
  71. text = $STR_SECONDARY_OBJECTIVES_TITLE;
  72. };
  73. class MissionsList : StdListBox {
  74. idc = 101;
  75. x = 0.2 * safezoneW + safezoneX;
  76. w = 0.15 * safezoneW;
  77. y = 0.45 * safezoneH + safezoneY + BORDERSIZE;
  78. h = (0.3 * safezoneH) - BORDERSIZE;
  79. shadow = 2;
  80. onLBSelChanged="";
  81. };
  82. class ButtonClose : StdButton{
  83. idc = 105;
  84. x = 0.785 * safezoneW + safezoneX;
  85. w = 0.015 * safezoneW;
  86. h = 0.02 * safezoneH;
  87. y = 0.197 * safezoneH + safezoneY;
  88. text = "X";
  89. action = "closeDialog 0";
  90. };
  91. class LabelIntel : StdText{
  92. idc = 107;
  93. x = (0.2 * safezoneW + safezoneX);
  94. w = (0.15 * safezoneW);
  95. h = (0.04 * safezoneH);
  96. y = (0.755 * safezoneH + safezoneY);
  97. colorText[] = {0, 0.7, 1.0, 1.0};
  98. sizeEx = 0.03 * safezoneH;
  99. style = ST_CENTER;
  100. };
  101. class MissionBriefing {
  102. type = 15;
  103. idc = -1;
  104. style = 0;
  105. x = (0.35 * safezoneW + safezoneX) + BORDERSIZE;
  106. y = 0.25 * safezoneH + safezoneY;
  107. w = (0.45 * safezoneW) - BORDERSIZE;
  108. h = (0.5 * safezoneH) - BORDERSIZE;
  109. colorScrollbar[] = COLOR_WHITE;
  110. class VScrollbar
  111. {
  112. color[] = COLOR_WHITE;
  113. width = 0.01 * safezoneW;
  114. autoScrollSpeed = -1;
  115. autoScrollDelay = 5;
  116. autoScrollRewind = 0;
  117. };
  118. class HScrollbar
  119. {
  120. color[] = COLOR_WHITE;
  121. height = 0.012 * safezoneH;
  122. };
  123. class ScrollBar
  124. {
  125. color[] = COLOR_WHITE;
  126. colorActive[] = COLOR_WHITE;
  127. colorDisabled[] = COLOR_WHITE;
  128. thumb = "\A3\ui_f\data\gui\cfg\scrollbar\thumb_ca.paa";
  129. arrowEmpty = "\A3\ui_f\data\gui\cfg\scrollbar\arrowEmpty_ca.paa";
  130. arrowFull = "\A3\ui_f\data\gui\cfg\scrollbar\arrowFull_ca.paa";
  131. border = "\A3\ui_f\data\gui\cfg\scrollbar\border_ca.paa";
  132. };
  133. class Controls
  134. {
  135. class MissionBriefingText
  136. {
  137. idc = 102;
  138. type = CT_STRUCTURED_TEXT;
  139. colorBackground[] = COLOR_NOALPHA;
  140. style = ST_LEFT;
  141. x = 0;
  142. y = 0;
  143. w = (0.45 * safezoneW) - (2 * BORDERSIZE);
  144. h = (0.5 * safezoneH) - BORDERSIZE ;
  145. text= "AAA";
  146. size = 0.02 * safezoneH;
  147. sizeEx = 0.02 * safezoneH;
  148. shadow = 2;
  149. font = FontM;
  150. color = "#e0e0e0";
  151. align = "left";
  152. valign = "top";
  153. };
  154. };
  155. };
  156. class StartButton : StdButton{
  157. idc = 103;
  158. x = (0.46 * safezoneW + safezoneX);
  159. y = (0.75 * safezoneH + safezoneY);
  160. w = (0.1 * safezoneW);
  161. h = (0.05 * safezoneH);
  162. sizeEx = 0.025 * safezoneH;
  163. text = $STR_SECONDARY_OBJECTIVES_START;
  164. action = "dostartsecondary = 1;";
  165. };
  166. class CancelButton : StdButton{
  167. idc = 104;
  168. x = (0.565 * safezoneW + safezoneX);
  169. y = (0.75 * safezoneH + safezoneY);
  170. w = (0.1 * safezoneW);
  171. h = (0.05 * safezoneH);
  172. sizeEx = 0.025 * safezoneH;
  173. text = $STR_RECYCLING_CANCEL;
  174. action = "closeDialog 0;";
  175. };
  176. };