liberation_tutorial.hpp 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. class liberation_tutorial {
  2. idd = 5353;
  3. movingEnable = false;
  4. controlsBackground[] = {};
  5. controls[] = { "OuterBG2", "OuterBG_F2", "OuterBG1", "OuterBG_F1", "InnerBG1", "InnerBG_F1", "InnerBG2", "InnerBG_F2",
  6. "Header","HeaderTuto", "TutorialList", "CloseButton", "TutoControlGroup"};
  7. objects[] = {};
  8. class OuterBG1 : StdBG{
  9. colorBackground[] = COLOR_BROWN;
  10. x = (0.2 * safezoneW + safezoneX) - (2 * BORDERSIZE);
  11. y = (0.2 * safezoneH + safezoneY) - (3 * BORDERSIZE);
  12. w = (0.15 * safezoneW) + (4 * BORDERSIZE);
  13. h = (0.6 * safezoneH) + (6 * BORDERSIZE);
  14. };
  15. class OuterBG_F1 : OuterBG1 {
  16. style = ST_FRAME;
  17. };
  18. class OuterBG2 : StdBG{
  19. colorBackground[] = COLOR_BROWN;
  20. x = (0.35 * safezoneW + safezoneX) + (3 * BORDERSIZE);
  21. y = (0.2 * safezoneH + safezoneY) - (3 * BORDERSIZE);
  22. w = (0.45 * safezoneW);
  23. h = (0.6 * safezoneH) + (6 * BORDERSIZE);
  24. };
  25. class OuterBG_F2 : OuterBG2 {
  26. style = ST_FRAME;
  27. };
  28. class InnerBG1 : OuterBG1 {
  29. colorBackground[] = COLOR_GREEN;
  30. x = (0.2 * safezoneW + safezoneX) - ( BORDERSIZE);
  31. y = 0.25 * safezoneH + safezoneY - (1.5 * BORDERSIZE);
  32. w = (0.15 * safezoneW) + (2 * BORDERSIZE);
  33. h = 0.55 * safezoneH + (3 * BORDERSIZE);
  34. };
  35. class InnerBG_F1 : InnerBG1 {
  36. style = ST_FRAME;
  37. };
  38. class InnerBG2 : OuterBG2 {
  39. colorBackground[] = COLOR_GREEN_ALPHA;
  40. x = (0.35 * safezoneW + safezoneX) + (4 * BORDERSIZE);
  41. y = 0.25 * safezoneH + safezoneY - (1.5 * BORDERSIZE);
  42. w = (0.45 * safezoneW) - (2 * BORDERSIZE ) ;
  43. h = 0.55 * safezoneH + (3 * BORDERSIZE);
  44. };
  45. class InnerBG_F2 : InnerBG2 {
  46. style = ST_FRAME;
  47. };
  48. class Header : StdHeader{
  49. x = 0.2 * safezoneW + safezoneX - (BORDERSIZE);
  50. y = 0.19 * safezoneH + safezoneY;
  51. w = 0.15 * safezoneW + ( 2 * BORDERSIZE);
  52. h = 0.05 * safezoneH - (BORDERSIZE);
  53. text = $STR_TUTO_TITLE;
  54. };
  55. class HeaderTuto : Header{
  56. idc = 514;
  57. x = (0.35 * safezoneW + safezoneX) + ( 4 * BORDERSIZE);
  58. w = (0.45 * safezoneW) - (2 * BORDERSIZE);
  59. text = "1. Introduction";
  60. };
  61. class TutorialList : StdListBox {
  62. idc = 513;
  63. x = 0.2 * safezoneW + safezoneX;
  64. w = 0.15 * safezoneW;
  65. y = 0.25 * safezoneH + safezoneY;
  66. h = (0.5 * safezoneH) - (1.5 * BORDERSIZE);
  67. shadow = 2;
  68. onLBSelChanged="";
  69. };
  70. class CloseButton : StdButton{
  71. idc = 512;
  72. x = (0.2 * safezoneW + safezoneX);
  73. y = (0.75 * safezoneH + safezoneY);
  74. w = (0.15 * safezoneW);
  75. h = (0.05 * safezoneH);
  76. sizeEx = 0.05 * safezoneH;
  77. text = $STR_TUTO_GOTIT;
  78. action = "howtoplay = 0";
  79. };
  80. class TutoControlGroup {
  81. type = 15;
  82. idc = -1;
  83. style = 0;
  84. x = (0.35 * safezoneW + safezoneX) + (4 * BORDERSIZE);
  85. y = 0.25 * safezoneH + safezoneY - (1.5 * BORDERSIZE);
  86. w = (0.45 * safezoneW) - (2 * BORDERSIZE ) ;
  87. h = 0.55 * safezoneH + (3 * BORDERSIZE);
  88. colorScrollbar[] = COLOR_WHITE;
  89. class VScrollbar
  90. {
  91. color[] = COLOR_WHITE;
  92. width = 0.01 * safezoneW;
  93. autoScrollSpeed = -1;
  94. autoScrollDelay = 5;
  95. autoScrollRewind = 0;
  96. };
  97. class HScrollbar
  98. {
  99. color[] = COLOR_WHITE;
  100. height = 0.012 * safezoneH;
  101. };
  102. class ScrollBar
  103. {
  104. color[] = COLOR_WHITE;
  105. colorActive[] = COLOR_WHITE;
  106. colorDisabled[] = COLOR_WHITE;
  107. thumb = "\A3\ui_f\data\gui\cfg\scrollbar\thumb_ca.paa";
  108. arrowEmpty = "\A3\ui_f\data\gui\cfg\scrollbar\arrowEmpty_ca.paa";
  109. arrowFull = "\A3\ui_f\data\gui\cfg\scrollbar\arrowFull_ca.paa";
  110. border = "\A3\ui_f\data\gui\cfg\scrollbar\border_ca.paa";
  111. };
  112. class Controls
  113. {
  114. class TutoStructuredText
  115. {
  116. idc = 515;
  117. type = CT_STRUCTURED_TEXT;
  118. colorBackground[] = COLOR_NOALPHA;
  119. style = ST_LEFT;
  120. x = 0;
  121. y = 0;
  122. w = (0.45 * safezoneW) - (2 * BORDERSIZE);
  123. h = 0.5 * safezoneH;
  124. text= "AAA";
  125. size = 0.02 * safezoneH;
  126. sizeEx = 0.02 * safezoneH;
  127. shadow = 2;
  128. font = FontM;
  129. color = "#e0e0e0";
  130. align = "left";
  131. valign = "top";
  132. };
  133. };
  134. };
  135. };