liberation_halo.hpp 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. class liberation_halo {
  2. idd = 5203;
  3. movingEnable = false;
  4. controlsBackground[] = {};
  5. controls[] = {"OuterBG", "RecycleBG","OuterBG_F", "InnerBG", "InnerBG_F", "Header","JumpButton","CancelButton","DeployMap"};
  6. objects[] = {};
  7. class RecycleBG : BgPicture {
  8. x = (0.2 * safezoneW + safezoneX) - ( 2 * BORDERSIZE);
  9. y = (0.15 * safezoneH + safezoneY) - (3 * BORDERSIZE);
  10. w = (0.6 * safezoneW) + (4 * BORDERSIZE);
  11. h = (0.7 * safezoneH) + (6 * BORDERSIZE);
  12. };
  13. class DeployMap : kndr_MapControl {
  14. idc = 251;
  15. x = (0.2 * safezoneW + safezoneX);
  16. y = (0.2 * safezoneH + safezoneY);
  17. w = (0.6 * safezoneW);
  18. h = (0.6 * safezoneH) - ( 1.5 * BORDERSIZE);
  19. };
  20. class OuterBG : StdBG{
  21. colorBackground[] = COLOR_BROWN;
  22. x = (0.2 * safezoneW + safezoneX) - ( 2 * BORDERSIZE);
  23. y = (0.15 * safezoneH + safezoneY) - (3 * BORDERSIZE);
  24. w = (0.6 * safezoneW) + (4 * BORDERSIZE);
  25. h = (0.7 * safezoneH) + (6 * BORDERSIZE);
  26. };
  27. class OuterBG_F : OuterBG {
  28. style = ST_FRAME;
  29. };
  30. class InnerBG : OuterBG {
  31. colorBackground[] = COLOR_GREEN;
  32. x = (0.2 * safezoneW + safezoneX) - ( BORDERSIZE);
  33. y = 0.2 * safezoneH + safezoneY - (1.5 * BORDERSIZE);
  34. w = (0.6 * safezoneW) + (2 * BORDERSIZE);
  35. h = 0.65 * safezoneH + (3 * BORDERSIZE);
  36. };
  37. class InnerBG_F : InnerBG {
  38. style = ST_FRAME;
  39. };
  40. class Header : StdHeader{
  41. x = 0.2 * safezoneW + safezoneX - (BORDERSIZE);
  42. y = 0.14 * safezoneH + safezoneY;
  43. w = 0.6 * safezoneW + ( 2 * BORDERSIZE);
  44. h = 0.05 * safezoneH - (BORDERSIZE);
  45. text = $STR_HALO_TITLE;
  46. };
  47. class JumpButton : StdButton{
  48. idc = 202;
  49. x = (0.39 * safezoneW + safezoneX);
  50. y = (0.8 * safezoneH + safezoneY);
  51. w = (0.1 * safezoneW);
  52. h = (0.05 * safezoneH);
  53. sizeEx = 0.025 * safezoneH;
  54. text = $STR_HALO_PARAM;
  55. action = "dojump = 1;";
  56. };
  57. class CancelButton : StdButton{
  58. idc = 202;
  59. x = (0.51 * safezoneW + safezoneX);
  60. y = (0.8 * safezoneH + safezoneY);
  61. w = (0.1 * safezoneW);
  62. h = (0.05 * safezoneH);
  63. sizeEx = 0.025 * safezoneH;
  64. text = $STR_RECYCLING_CANCEL;
  65. action = "closeDialog 0;";
  66. };
  67. };