liberation_repackage_fob.hpp 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. class liberation_repackage_fob {
  2. idd = 5755;
  3. movingEnable = false;
  4. controlsBackground[] = { "OuterBG", "RecycleBG", "OuterBG_F", "InnerBG", "InnerBG_F" };
  5. controls[] = { "Header", "ButtonClose", "Infotext","TruckButton","BoxButton","CancelButton"};
  6. objects[] = {};
  7. class RecycleBG : BgPicture {
  8. x = (0.35 * safezoneW + safezoneX) - ( 2 * BORDERSIZE);
  9. y = (0.4 * safezoneH + safezoneY) - (3 * BORDERSIZE);
  10. w = (0.3 * safezoneW) + (4 * BORDERSIZE);
  11. h = (0.2 * safezoneH) + (6 * BORDERSIZE);
  12. };
  13. class OuterBG : StdBG{
  14. colorBackground[] = COLOR_BROWN;
  15. x = (0.35 * safezoneW + safezoneX) - ( 2 * BORDERSIZE);
  16. y = (0.4 * safezoneH + safezoneY) - (3 * BORDERSIZE);
  17. w = (0.3 * safezoneW) + (4 * BORDERSIZE);
  18. h = (0.2 * 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.35 * safezoneW + safezoneX) - ( BORDERSIZE);
  26. y = 0.45 * safezoneH + safezoneY - (1.5 * BORDERSIZE);
  27. w = (0.3 * safezoneW) + (2 * BORDERSIZE);
  28. h = 0.15 * safezoneH + (3 * BORDERSIZE);
  29. };
  30. class InnerBG_F : InnerBG {
  31. style = ST_FRAME;
  32. };
  33. class Header : StdHeader{
  34. x = 0.35 * safezoneW + safezoneX - (BORDERSIZE);
  35. y = 0.39 * safezoneH + safezoneY;
  36. w = 0.3 * safezoneW + ( 2 * BORDERSIZE);
  37. h = 0.05 * safezoneH - (BORDERSIZE);
  38. text = $STR_FOB_REPACKAGE_TITLE;
  39. };
  40. class ButtonClose : StdButton{
  41. idc = 101;
  42. x = 0.632 * safezoneW + safezoneX;
  43. w = 0.015 * safezoneW;
  44. h = 0.02 * safezoneH;
  45. y = 0.402 * safezoneH + safezoneY;
  46. text = "X";
  47. action = "closeDialog 0";
  48. };
  49. class Infotext : StdText{
  50. idc = -1;
  51. style = ST_CENTER;
  52. x = (0.35 * safezoneW + safezoneX);
  53. w = (0.3 * safezoneW);
  54. h = (0.03 * safezoneH);
  55. y = (0.45 * safezoneH + safezoneY);
  56. colorText[] = {0.9, 0.9, 0.9, 1};
  57. text = $STR_FOB_REPACKAGE_CONFIRM;
  58. };
  59. class BoxButton : StdButton{
  60. idc = 120;
  61. x = (0.38 * safezoneW + safezoneX) - (BORDERSIZE);
  62. y = (0.55 * safezoneH + safezoneY);
  63. w = (0.08 * safezoneW) - (BORDERSIZE);
  64. h = (0.045 * safezoneH);
  65. sizeEx = 0.023 * safezoneH;
  66. text = $STR_FOBBOX;
  67. action = "dorepackage = 1;";
  68. };
  69. class TruckButton : StdButton{
  70. idc = 120;
  71. x = (0.46 * safezoneW + safezoneX);
  72. y = (0.55 * safezoneH + safezoneY);
  73. w = (0.08 * safezoneW) - (BORDERSIZE);
  74. h = (0.045 * safezoneH);
  75. sizeEx = 0.023 * safezoneH;
  76. text = $STR_FOBTRUCK;
  77. action = "dorepackage = 2;";
  78. };
  79. class CancelButton : StdButton{
  80. idc = 121;
  81. x = (0.54 * safezoneW + safezoneX) + (BORDERSIZE);
  82. y = (0.55 * safezoneH + safezoneY);
  83. w = (0.08 * safezoneW);
  84. h = (0.045 * safezoneH);
  85. sizeEx = 0.023 * safezoneH;
  86. text = $STR_RECYCLING_CANCEL;
  87. action = "closeDialog 0";
  88. };
  89. };