liberation_menu.hpp 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. class liberation_menu {
  2. idd = 5651;
  3. movingEnable = false;
  4. controls[] = { "Splash", "Start", "Help" };
  5. objects[] = {};
  6. class Splash {
  7. idc = -1;
  8. type = CT_STATIC ;
  9. style = ST_PICTURE;
  10. colorText[] = COLOR_WHITE;
  11. colorBackground[] = COLOR_NOALPHA;
  12. font = FontM;
  13. sizeEx = 0.1 * safezoneH;
  14. x = 0.08 * safezoneW + safezoneX;
  15. w = 0.25 * safezoneW;
  16. y = 0.15 * safezoneH + safezoneY;
  17. h = 0.43 * safezoneH;
  18. text = "res\splash_libe2.paa";
  19. };
  20. class Start {
  21. idc = 321;
  22. type = CT_SHORTCUT_BUTTON;
  23. style = ST_CENTER;
  24. x = (0.137 * safezoneW + safezoneX) - (BORDERSIZE);
  25. y = (0.53 * safezoneH + safezoneY);
  26. w = (0.15 * safezoneW) - (BORDERSIZE);
  27. h = (0.07 * safezoneH);
  28. sizeEx = 0.025 * safezoneH;
  29. size = 0.025 * safezoneH;
  30. text = "";
  31. action = "dostartgame=1;";
  32. textureNoShortcut = "res\btn_join_spl_idl3.paa";
  33. animTextureNormal = "res\btn_join_spl_idl3.paa";
  34. animTextureDisabled = "res\btn_join_spl_idl3.paa";
  35. animTextureOver = "res\btn_join_spl_hov3.paa";
  36. animTextureFocused = "res\btn_join_spl_idl3.paa";
  37. animTexturePressed = "res\btn_join_spl_hov3.paa";
  38. animTextureDefault = "res\btn_join_spl_idl3.paa";
  39. color[] = COLOR_WHITE;
  40. color2[] = COLOR_WHITE;
  41. colorActiveBackground[] = COLOR_WHITE;
  42. colorBackground[] = COLOR_WHITE;
  43. colorBackgroundFocused[] = COLOR_WHITE;
  44. colorBackground2[] = COLOR_WHITE;
  45. colorDisabled[] = COLOR_WHITE;
  46. colorFocused[] = COLOR_WHITE;
  47. font = FontM;
  48. soundEnter[] = { "", 0, 1 }; // no sound
  49. soundPush[] = {"\a3\Ui_f\data\Sound\CfgIngameUI\hintExpand", 0.891251, 1};
  50. soundClick[] = { "", 0, 1 }; // no sound
  51. soundEscape[] = { "", 0, 1 }; // no sound
  52. class HitZone {
  53. Left = 0;
  54. Right = 0;
  55. Top = 0;
  56. Bottom = 0;
  57. };
  58. class ShortcutPos {
  59. Left = 0;
  60. Top = 0;
  61. w = 0;
  62. h = 0;
  63. };
  64. class TextPos {
  65. left = 0;
  66. top = 0;
  67. right = 0;
  68. bottom = 0;
  69. };
  70. };
  71. class Help : Start {
  72. idc = 322;
  73. y = (0.62 * safezoneH + safezoneY);
  74. animTextureNormal = "res\btn_htp_spl_idl3.paa";
  75. animTextureDisabled = "res\btn_htp_spl_idl3.paa";
  76. animTextureOver = "res\btn_htp_spl_hov3.paa";
  77. animTextureFocused = "res\btn_htp_spl_idl3.paa";
  78. animTexturePressed = "res\btn_htp_spl_hov3.paa";
  79. animTextureDefault = "res\btn_htp_spl_idl3.paa";
  80. tooltipColorShade[] = COLOR_BROWN;
  81. tooltipColorText[] = COLOR_WHITE;
  82. tooltipColorBox[] = COLOR_GREEN;
  83. action = "howtoplay=1;";
  84. };
  85. };