Advertisement
Guest User

Mitraildialog

a guest
Mar 29th, 2014
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.35 KB | None | 0 0
  1. // dialog.hpp
  2. #include "ressources.hpp"
  3.  
  4. class SampleDialog
  5. {
  6. idd = -1;
  7. movingEnable = false;
  8. objects[] = {};
  9.  
  10. class controlsBackground
  11. {
  12. class titleBackground : VVS_RscText
  13. {
  14. idc = -1;
  15. colorBackground[] = {"(profilenamespace getvariable ['GUI_BCG_RGB_R',0.3843])", "(profilenamespace getvariable ['GUI_BCG_RGB_G',0.7019])", "(profilenamespace getvariable ['GUI_BCG_RGB_B',0.8862])", "(profilenamespace getvariable ['GUI_BCG_RGB_A',0.7])"};
  16. x = 0.1;
  17. y = 0.2;
  18. w = 0.8;
  19. h = (1 / 25);
  20. };
  21.  
  22. class MainBackground : VVS_RscText
  23. {
  24. idc = -1;
  25. colorBackground[] = {0,0,0,0.76};
  26. x = 0.1;
  27. y = 0.2 + (11 / 250);
  28. w = 0.8;
  29. h = 0.6 - (22 / 250);
  30. };
  31.  
  32. class Title : VVS_RscTitle
  33. {
  34. colorBackground[] = {0, 0, 0, 0};
  35. idc = -1;
  36. text = "Interface personnelle";
  37. x = 0.1;
  38. y = 0.2;
  39. w = 0.8;
  40. h = (1 / 25);
  41. };
  42. };
  43.  
  44. class controls
  45. {
  46. class ButtonControl
  47. {
  48. idc = -1;
  49. type = 1;
  50. style = 2;
  51. moving = false;
  52. x = 0.65;
  53. y = 0.65;
  54. h = 0.05;
  55. w = 0.2;
  56. sizeEx = 0.025;
  57. action = "closeDialog 0; hint ""Close pushed"";"
  58. text = "Close";
  59. font = "TahomaB";
  60. default = false;
  61. colorText[] = {1,1,1,1};
  62. colorFocused[] = {"(profilenamespace getvariable ['GUI_BCG_RGB_R',0.3843])", "(profilenamespace getvariable ['GUI_BCG_RGB_G',0.7019])", "(profilenamespace getvariable ['GUI_BCG_RGB_B',0.8862])", "(profilenamespace getvariable ['GUI_BCG_RGB_A',0.7])"};
  63. colorShadow[] = {0,0,0,1};
  64. colorBorder[] = {0.5,0.5,0.5,0};
  65. colorBackground[] = {"(profilenamespace getvariable ['GUI_BCG_RGB_R',0.3843])", "(profilenamespace getvariable ['GUI_BCG_RGB_G',0.7019])", "(profilenamespace getvariable ['GUI_BCG_RGB_B',0.8862])", "(profilenamespace getvariable ['GUI_BCG_RGB_A',0.7])"};
  66. colorBackgroundActive[] = {"(profilenamespace getvariable ['GUI_BCG_RGB_R',0.3843])", "(profilenamespace getvariable ['GUI_BCG_RGB_G',0.7019])", "(profilenamespace getvariable ['GUI_BCG_RGB_B',0.8862])", "(profilenamespace getvariable ['GUI_BCG_RGB_A',0.7])"};
  67. colorDisabled[] = {1,0,0,1};
  68. colorBackgroundDisabled[] = {0.5,0.5,0.5,1};
  69. borderSize = 0.015;
  70. offsetX = 0.005;
  71. offsetY = 0.005;
  72. offsetPressedX = 0.002;
  73. offsetPressedY = 0.002;
  74. soundEnter[] = {"",0,1};
  75. soundPush[] = {"",0,1};
  76. soundClick[] = {"",0,1};
  77. soundEscape[] = {"",0,1};
  78. };
  79.  
  80. class VASControl
  81. {
  82. idc = -1;
  83. type = 1;
  84. style = 2;
  85. moving = false;
  86. x = 0.15;
  87. y = 0.3;
  88. h = 0.05;
  89. w = 0.2;
  90. sizeEx = 0.025;
  91. action = player execVM "VAS\open.sqf";
  92. text = "Virtual AmmoBox";
  93. font = "TahomaB";
  94. default = false;
  95. colorText[] = {1,1,1,1};
  96. colorFocused[] = {"(profilenamespace getvariable ['GUI_BCG_RGB_R',0.3843])", "(profilenamespace getvariable ['GUI_BCG_RGB_G',0.7019])", "(profilenamespace getvariable ['GUI_BCG_RGB_B',0.8862])", "(profilenamespace getvariable ['GUI_BCG_RGB_A',0.7])"};
  97. colorShadow[] = {0,0,0,1};
  98. colorBorder[] = {0.5,0.5,0.5,0};
  99. colorBackground[] = {"(profilenamespace getvariable ['GUI_BCG_RGB_R',0.3843])", "(profilenamespace getvariable ['GUI_BCG_RGB_G',0.7019])", "(profilenamespace getvariable ['GUI_BCG_RGB_B',0.8862])", "(profilenamespace getvariable ['GUI_BCG_RGB_A',0.7])"};
  100. colorBackgroundActive[] = {"(profilenamespace getvariable ['GUI_BCG_RGB_R',0.3843])", "(profilenamespace getvariable ['GUI_BCG_RGB_G',0.7019])", "(profilenamespace getvariable ['GUI_BCG_RGB_B',0.8862])", "(profilenamespace getvariable ['GUI_BCG_RGB_A',0.7])"};
  101. colorDisabled[] = {1,0,0,1};
  102. colorBackgroundDisabled[] = {0.5,0.5,0.5,1};
  103. borderSize = 0.015;
  104. offsetX = 0.005;
  105. offsetY = 0.005;
  106. offsetPressedX = 0.002;
  107. offsetPressedY = 0.002;
  108. soundEnter[] = {"",0,1};
  109. soundPush[] = {"",0,1};
  110. soundClick[] = {"",0,1};
  111. soundEscape[] = {"",0,1};
  112. };
  113.  
  114. };
  115. };
  116. //ressources.hpp
  117. class VVS_RscText {
  118. x = 0;
  119. y = 0;
  120. h = 0.037;
  121. w = 0.3;
  122. type = 0;
  123. style = 0;
  124. shadow = 1;
  125. colorShadow[] = {0, 0, 0, 0.5};
  126. font = "PuristaMedium";
  127. SizeEx = "( ( ( ((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)";
  128. text = "";
  129. colorText[] = {1, 1, 1, 1.0};
  130. colorBackground[] = {0, 0, 0, 0};
  131. linespacing = 1;
  132. };
  133. class VVS_RscTitle : VVS_RscText {
  134. style = 0;
  135. sizeEx = "( ( ( ((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)";
  136. colorText[] = {0.95, 0.95, 0.95, 1};
  137. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement