liberation_arsenal.hpp 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. class liberation_arsenal {
  2. idd = 5251;
  3. movingEnable = false;
  4. controlsBackground[] = {};
  5. controls[] = {"OuterBG", "RecycleBG","OuterBG_F", "InnerBG", "InnerBG_F", "Header","LoadoutList","EditButton","LoadButton", "RespawnButton", "TransferButton", "PlayersCombo", "ButtonClose"};
  6. objects[] = {};
  7. class RecycleBG : BgPicture {
  8. x = (0.17 * safezoneW + safezoneX) - ( 2 * BORDERSIZE);
  9. y = (0.1 * safezoneH + safezoneY) - (3 * BORDERSIZE);
  10. w = (0.16 * safezoneW) + (4 * BORDERSIZE);
  11. h = (0.75 * safezoneH) + (6 * BORDERSIZE);
  12. };
  13. class OuterBG : StdBG{
  14. colorBackground[] = COLOR_BROWN;
  15. x = (0.17 * safezoneW + safezoneX) - ( 2 * BORDERSIZE);
  16. y = (0.1 * safezoneH + safezoneY) - (3 * BORDERSIZE);
  17. w = (0.16 * safezoneW) + (4 * BORDERSIZE);
  18. h = (0.75 * safezoneH) + (6 * BORDERSIZE);
  19. };
  20. class OuterBG_F : OuterBG {
  21. style = ST_FRAME;
  22. };
  23. class InnerBG : OuterBG {
  24. colorBackground[] = COLOR_GREEN;
  25. x = (0.17 * safezoneW + safezoneX) - ( BORDERSIZE);
  26. y = (0.15 * safezoneH + safezoneY) - (1.5 * BORDERSIZE);
  27. w = (0.16 * safezoneW) + (2 * BORDERSIZE);
  28. h = (0.7 * safezoneH) + (3 * BORDERSIZE);
  29. };
  30. class InnerBG_F : InnerBG {
  31. style = ST_FRAME;
  32. };
  33. class Header : StdHeader{
  34. x = 0.17 * safezoneW + safezoneX - (BORDERSIZE);
  35. y = 0.09 * safezoneH + safezoneY;
  36. w = 0.16 * safezoneW + ( 2 * BORDERSIZE);
  37. h = 0.05 * safezoneH - (BORDERSIZE);
  38. text = $STR_ARSENAL_TITLE;
  39. };
  40. class LoadoutList : StdListBox {
  41. idc = 201;
  42. x = 0.17 * safezoneW + safezoneX;
  43. w = 0.16 * safezoneW;
  44. y = 0.15 * safezoneH + safezoneY;
  45. h = (0.45 * safezoneH) - (1.5 * BORDERSIZE);
  46. shadow = 2;
  47. onLBSelChanged="";
  48. };
  49. class LoadButton : StdButton{
  50. idc = 202;
  51. x = (0.18 * safezoneW + safezoneX);
  52. y = (0.6 * safezoneH + safezoneY);
  53. w = (0.14 * safezoneW);
  54. h = (0.04 * safezoneH);
  55. sizeEx = 0.03 * safezoneH;
  56. text = $STR_LOAD_LOADOUT;
  57. action = "load_loadout = 1;";
  58. };
  59. class EditButton : StdButton{
  60. idc = -1;
  61. x = (0.18 * safezoneW + safezoneX);
  62. y = (0.65 * safezoneH + safezoneY);
  63. w = (0.14 * safezoneW);
  64. h = (0.04 * safezoneH);
  65. sizeEx = 0.03 * safezoneH;
  66. text = $STR_EDIT_LOADOUT;
  67. action = "edit_loadout = 1;";
  68. };
  69. class RespawnButton : StdButton{
  70. idc = -1;
  71. x = (0.18 * safezoneW + safezoneX);
  72. y = (0.7 * safezoneH + safezoneY);
  73. w = (0.14 * safezoneW);
  74. h = (0.04 * safezoneH);
  75. sizeEx = 0.024 * safezoneH;
  76. text = $STR_MAKE_RESPAWN_LOADOUT;
  77. action = "respawn_loadout = 1;";
  78. };
  79. class PlayersCombo : StdCombo{
  80. idc = 203;
  81. x = (0.18 * safezoneW + safezoneX);
  82. w = 0.14 * safezoneW;
  83. y = 0.75 * safezoneH + safezoneY;
  84. h = 0.04 * safezoneH;
  85. sizeEx = 0.02 * safezoneH;
  86. };
  87. class TransferButton : StdButton{
  88. idc = 204;
  89. x = (0.18 * safezoneW + safezoneX);
  90. y = (0.8 * safezoneH + safezoneY);
  91. w = (0.14 * safezoneW);
  92. h = (0.04 * safezoneH);
  93. sizeEx = 0.024 * safezoneH;
  94. text = $STR_LOAD_PLAYER_LOADOUT;
  95. action = "load_from_player = lbCurSel 203;";
  96. };
  97. class ButtonClose : StdButton{
  98. idc = 101;
  99. x = 0.315 * safezoneW + safezoneX;
  100. w = 0.015 * safezoneW;
  101. h = 0.02 * safezoneH;
  102. y = 0.095 * safezoneH + safezoneY;
  103. text = "X";
  104. action = "closeDialog 0";
  105. };
  106. };