liberation_deploy.hpp 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. class liberation_deploy {
  2. idd = 5201;
  3. movingEnable = false;
  4. controlsBackground[] = {};
  5. controls[] = {"OuterBG", "RecycleBG","OuterBG_F", "InnerBG", "InnerBG_F", "Header","DeployList","DeployButton","DeployMap", "LoadoutsCombo", "LabelDeploy", "LabelLoadout", "MapButton"};
  6. objects[] = {};
  7. class RecycleBG : BgPicture {
  8. idc = 198;
  9. x = (0.15 * safezoneW + safezoneX) - ( 2 * BORDERSIZE);
  10. y = (0.12 * safezoneH + safezoneY) - (3 * BORDERSIZE);
  11. w = (0.15 * safezoneW) + (4 * BORDERSIZE);
  12. h = (0.75 * safezoneH) + (6 * BORDERSIZE);
  13. };
  14. class DeployMap : kndr_MapControl {
  15. idc = 251;
  16. x = (0.15 * safezoneW + safezoneX);
  17. y = (0.57 * safezoneH + safezoneY);
  18. w = (0.15 * safezoneW);
  19. h = (0.25 * safezoneH) - ( 1.5 * BORDERSIZE);
  20. };
  21. class OuterBG : StdBG{
  22. colorBackground[] = COLOR_BROWN;
  23. x = (0.15 * safezoneW + safezoneX) - ( 2 * BORDERSIZE);
  24. y = (0.12 * safezoneH + safezoneY) - (3 * BORDERSIZE);
  25. w = (0.15 * safezoneW) + (4 * BORDERSIZE);
  26. h = (0.75 * safezoneH) + (6 * BORDERSIZE);
  27. };
  28. class OuterBG_F : OuterBG {
  29. style = ST_FRAME;
  30. };
  31. class InnerBG : OuterBG {
  32. colorBackground[] = COLOR_GREEN;
  33. x = (0.15 * safezoneW + safezoneX) - ( BORDERSIZE);
  34. y = 0.17 * safezoneH + safezoneY - (1.5 * BORDERSIZE);
  35. w = (0.15 * safezoneW) + (2 * BORDERSIZE);
  36. h = 0.7 * safezoneH + (3 * BORDERSIZE);
  37. };
  38. class InnerBG_F : InnerBG {
  39. style = ST_FRAME;
  40. };
  41. class Header : StdHeader{
  42. x = 0.15 * safezoneW + safezoneX - (BORDERSIZE);
  43. y = 0.11 * safezoneH + safezoneY;
  44. w = 0.15 * safezoneW + ( 2 * BORDERSIZE);
  45. h = 0.05 * safezoneH - (BORDERSIZE);
  46. text = $STR_DEPLOY_TITLE;
  47. };
  48. class LabelDeploy : StdText{
  49. x = (0.15 * safezoneW + safezoneX);
  50. w = (0.15 * safezoneW);
  51. h = (0.03 * safezoneH);
  52. y = 0.23 * safezoneH + safezoneY;
  53. sizeEx = 0.018 * safezoneH;
  54. text = $STR_SPAWN_POINT;
  55. };
  56. class DeployList : StdListBox {
  57. idc = 201;
  58. x = 0.15 * safezoneW + safezoneX;
  59. w = 0.15 * safezoneW;
  60. y = 0.26 * safezoneH + safezoneY;
  61. h = (0.31 * safezoneH) - (1.5 * BORDERSIZE);
  62. shadow = 2;
  63. onLBSelChanged="";
  64. };
  65. class LabelLoadout : StdText{
  66. x = (0.15 * safezoneW + safezoneX);
  67. w = (0.15 * safezoneW);
  68. h = (0.03 * safezoneH);
  69. y = 0.16 * safezoneH + safezoneY;
  70. sizeEx = 0.018 * safezoneH;
  71. text = $STR_LOADOUT;
  72. };
  73. class LoadoutsCombo : StdCombo{
  74. idc = 203;
  75. x = (0.15 * safezoneW + safezoneX);
  76. w = 0.15 * safezoneW;
  77. y = 0.19 * safezoneH + safezoneY;
  78. h = 0.03 * safezoneH;
  79. sizeEx = 0.018 * safezoneH;
  80. };
  81. class DeployButton : StdButton{
  82. idc = 202;
  83. x = (0.15 * safezoneW + safezoneX);
  84. y = (0.82 * safezoneH + safezoneY);
  85. w = (0.15 * safezoneW);
  86. h = (0.05 * safezoneH);
  87. sizeEx = 0.05 * safezoneH;
  88. text = $STR_DEPLOY_BUTTON;
  89. action = "deploy = 1";
  90. };
  91. class MapButton : StdButton{
  92. idc = 202;
  93. x = (0.285 * safezoneW + safezoneX);
  94. y = (0.56 * safezoneH + safezoneY);
  95. w = (0.015 * safezoneW);
  96. h = (0.025 * safezoneH);
  97. sizeEx = 0.018 * safezoneH;
  98. text = "<>";
  99. action = "fullmap = fullmap + 1;";
  100. };
  101. };