liberation_permissions.hpp 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. class liberation_permissions {
  2. idd = 5118;
  3. movingEnable = false;
  4. controlsBackground[] = {};
  5. controls[] = { "OuterBG1", "OuterBG_F1", "InnerBG1", "InnerBG_F1", "Header", "ButtonClose", "PermissionsControlGroup", "ButtonSave", "ButtonCancel" };
  6. objects[] = {};
  7. class OuterBG1 : StdBG{
  8. colorBackground[] = COLOR_BROWN;
  9. x = (0.2 * safezoneW + safezoneX) - (2 * BORDERSIZE);
  10. y = (0.15 * safezoneH + safezoneY) - (3 * BORDERSIZE);
  11. w = (0.6 * safezoneW) + (4 * BORDERSIZE);
  12. h = (0.65 * safezoneH) + (6 * BORDERSIZE);
  13. };
  14. class OuterBG_F1 : OuterBG1 {
  15. style = ST_FRAME;
  16. };
  17. class InnerBG1 : OuterBG1 {
  18. colorBackground[] = COLOR_GREEN;
  19. x = (0.2 * safezoneW + safezoneX) - ( BORDERSIZE);
  20. y = 0.2 * safezoneH + safezoneY - (1.5 * BORDERSIZE);
  21. w = (0.6 * safezoneW) + (2 * BORDERSIZE);
  22. h = 0.55 * safezoneH + (3 * BORDERSIZE);
  23. };
  24. class InnerBG_F1 : InnerBG1 {
  25. style = ST_FRAME;
  26. };
  27. class Header : StdHeader{
  28. x = 0.2 * safezoneW + safezoneX - (BORDERSIZE);
  29. y = 0.14 * safezoneH + safezoneY;
  30. w = 0.6 * safezoneW + ( 2 * BORDERSIZE);
  31. h = 0.05 * safezoneH - (BORDERSIZE);
  32. text = $STR_PERMISSIONS_TITLE;
  33. };
  34. class ButtonClose : StdButton{
  35. idc = 750;
  36. x = 0.785 * safezoneW + safezoneX;
  37. y = 0.145 * safezoneH + safezoneY;
  38. w = 0.015 * safezoneW;
  39. h = 0.02 * safezoneH;
  40. text = "X";
  41. action = "closeDialog 0";
  42. };
  43. class PermissionsControlGroup {
  44. type = 15;
  45. idc = 9969;
  46. style = 0;
  47. x = (0.2 * safezoneW + safezoneX) - ( BORDERSIZE);
  48. y = 0.2 * safezoneH + safezoneY;
  49. w = (0.6 * safezoneW) + (BORDERSIZE);
  50. h = 0.55 * safezoneH ;
  51. colorScrollbar[] = COLOR_WHITE;
  52. class VScrollbar
  53. {
  54. color[] = COLOR_WHITE;
  55. width = 0.01 * safezoneW;
  56. autoScrollSpeed = 5;
  57. autoScrollDelay = 25;
  58. autoScrollRewind = 0;
  59. };
  60. class HScrollbar
  61. {
  62. color[] = COLOR_WHITE;
  63. height = 0.012 * safezoneH;
  64. };
  65. class ScrollBar
  66. {
  67. color[] = COLOR_WHITE;
  68. colorActive[] = COLOR_WHITE;
  69. colorDisabled[] = COLOR_WHITE;
  70. thumb = "\A3\ui_f\data\gui\cfg\scrollbar\thumb_ca.paa";
  71. arrowEmpty = "\A3\ui_f\data\gui\cfg\scrollbar\arrowEmpty_ca.paa";
  72. arrowFull = "\A3\ui_f\data\gui\cfg\scrollbar\arrowFull_ca.paa";
  73. border = "\A3\ui_f\data\gui\cfg\scrollbar\border_ca.paa";
  74. };
  75. class Controls {};
  76. };
  77. class ButtonSave : StdButton{
  78. idc = 751;
  79. x = 0.4 * safezoneW + safezoneX;
  80. y = 0.77 * safezoneH + safezoneY;
  81. w = 0.09 * safezoneW;
  82. h = 0.035 * safezoneH;
  83. text = $STR_SAVE_CHANGES;
  84. action = "save_changes = 1";
  85. };
  86. class ButtonCancel : StdButton{
  87. idc = 752;
  88. x = 0.5 * safezoneW + safezoneX;
  89. y = 0.77 * safezoneH + safezoneY;
  90. w = 0.09 * safezoneW;
  91. h = 0.035 * safezoneH;
  92. text = $STR_RECYCLING_CANCEL;
  93. action = "closeDialog 0";
  94. };
  95. };