Advertisement
Guest User

coprank_menu.hpp

a guest
Aug 10th, 2017
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.03 KB | None | 0 0
  1. class life_coprank_menu {
  2. idd = 15000;
  3. name= "life_coprank_menu";
  4. movingEnable = 0;
  5. enableSimulation = 1;
  6. onLoad = "[] spawn life_fnc_coprankMenu;";
  7.  
  8. class controlsBackground {
  9. class Life_RscTitleBackground:Life_RscText {
  10. colorBackground[] = {0,0,1,0.75};
  11. idc = -1;
  12. x = 0.1;
  13. y = 0.2;
  14. w = 0.8;
  15. h = (1 / 25);
  16. };
  17.  
  18. class MainBackground:Life_RscText {
  19. colorBackground[] = {0, 0, 0, 0.7};
  20. idc = -1;
  21. x = 0.1;
  22. y = 0.2 + (11 / 250);
  23. w = 0.8;
  24. h = 0.6 - (2 / 250);
  25. };
  26. };
  27.  
  28. class controls {
  29.  
  30.  
  31. class Title : Life_RscTitle {
  32. colorBackground[] = {0, 0, 1, 0};
  33. idc = 15001;
  34. text = "Cop Rank Menu - By Tom";
  35. x = 0.1;
  36. y = 0.2;
  37. w = 0.6;
  38. h = (1 / 25);
  39. };
  40.  
  41. class PlayerList_SwatAdmin : Life_RscListBox
  42. {
  43. idc = 15002;
  44. text = "";
  45. sizeEx = 0.035;
  46. //colorBackground[] = {0,0,0,0};
  47. onLBSelChanged = "[_this] spawn life_fnc_adminQuery";
  48.  
  49. x = 0.12; y = 0.26;
  50. w = 0.30; h = 0.55;
  51. };
  52.  
  53. /*
  54. class SwatTitle : Life_RscTitle {
  55. colorBackground[] = {0, 0, 0, 0};
  56. idc = -1;
  57. text = "Cop Rank Menu - By Tom";
  58. x = 0.45; y = 0.27;
  59. w = 0.2; h = 0.03;
  60. };
  61.  
  62. class reason : Life_RscEdit {
  63.  
  64. idc = 15003;
  65.  
  66. text = "";
  67. sizeEx = 0.030;
  68. x = 0.45; y = 0.39;
  69. w = 0.4; h = 0.04;
  70. };
  71.  
  72.  
  73. class PunishmentPredefined : Life_RscCombo
  74. {
  75. idc = 9930;
  76. onLBListSelChanged = "[(lbCurSel 9930)] call life_fnc_admin;";
  77.  
  78. x = 0.45; y = 0.32;
  79. w = 0.4; h = 0.04;
  80. };
  81. */
  82.  
  83. class SwatCloseButtonKey : Life_RscButtonMenu {
  84. idc = -1;
  85. text = "$STR_Global_Close";
  86. onButtonClick = "closeDialog 0;";
  87. colorBackground[] = {1,0,0,0.75};
  88. x = -0.06 + (6.25 / 40) + (1 / 250 / (safezoneW / safezoneH));
  89. y = 0.88 - (1 / 25);
  90. w = (6.25 / 40);
  91. h = (1 / 25);
  92. class Attributes
  93. {
  94. align = "center";
  95. };
  96. };
  97.  
  98.  
  99. class PublicCopRank : Life_RscButtonMenu {
  100. idc = 15007;
  101. text = "Set Public Cop Rank";
  102. onButtonClick = "[0,0] call life_fnc_adminaspromotions;";
  103. colorBackground[] = {0,0,1,0.75};
  104. x = 0.3 + (6.25 / 40) + (1 / 250 / (safezoneW / safezoneH));
  105. y = 0.37 - (1 / 25);
  106. w = (15 / 40);
  107. h = (1 / 25);
  108. class Attributes
  109. {
  110. align = "center";
  111. };
  112. };
  113.  
  114. class ConstableCopRank : Life_RscButtonMenu {
  115. idc = 15008;
  116. text = "Set Constable Cop Rank / Whitelist";
  117. onButtonClick = "[0,1] call life_fnc_adminaspromotions;";
  118. colorBackground[] = {0,0,1,0.75};
  119. x = 0.3 + (6.25 / 40) + (1 / 250 / (safezoneW / safezoneH));
  120. y = 0.44 - (1 / 25);
  121. w = (15 / 40);
  122. h = (1 / 25);
  123. class Attributes
  124. {
  125. align = "center";
  126. };
  127. };
  128.  
  129. class SergeantCopRank : Life_RscButtonMenu {
  130. idc = 15004;
  131. text = "Set Sergeant Cop Rank";
  132. onButtonClick = "[0,2] call life_fnc_adminaspromotions;";
  133. colorBackground[] = {0,0,1,0.75};
  134. x = 0.3 + (6.25 / 40) + (1 / 250 / (safezoneW / safezoneH));
  135. y = 0.51 - (1 / 25);
  136. w = (15 / 40);
  137. h = (1 / 25);
  138. class Attributes
  139. {
  140. align = "center";
  141. };
  142. };
  143.  
  144. class InspectorCopRank : Life_RscButtonMenu {
  145. idc = 15005;
  146. text = "Set Inspector Cop Rank";
  147. onButtonClick = "[0,3] call life_fnc_adminaspromotions;";
  148. colorBackground[] = {0,0,1,0.75};
  149. x = 0.3 + (6.25 / 40) + (1 / 250 / (safezoneW / safezoneH));
  150. y = 0.58 - (1 / 25);
  151. w = (15 / 40);
  152. h = (1 / 25);
  153. class Attributes
  154. {
  155. align = "center";
  156. };
  157. };
  158.  
  159. class SuperIntendentCopRank: Life_RscButtonMenu {
  160. idc = 15006;
  161. text = "Set SuperIntendent Cop Rank";
  162. onButtonClick = "[0,4] call life_fnc_adminaspromotions;";
  163. colorBackground[] = {0,0,1,0.75};
  164. x = 0.3 + (6.25 / 40) + (1 / 250 / (safezoneW / safezoneH));
  165. y = 0.65 - (1 / 25);
  166. w = (15 / 40);
  167. h = (1 / 25);
  168. class Attributes
  169. {
  170. align = "center";
  171. };
  172. };
  173. class NATOCopRank : Life_RscButtonMenu {
  174. idc = 15006;
  175. text = "Set NATO Cop Rank";
  176. onButtonClick = "[0,5] call life_fnc_adminaspromotions;";
  177. colorBackground[] = {0,0,1,0.75};
  178. x = 0.3 + (6.25 / 40) + (1 / 250 / (safezoneW / safezoneH));
  179. y = 0.72 - (1 / 25);
  180. w = (15 / 40);
  181. h = (1 / 25);
  182. class Attributes
  183. {
  184. align = "center";
  185. };
  186. };
  187. class SASCopRank : Life_RscButtonMenu {
  188. idc = 15006;
  189. text = "Set SAS Cop Rank";
  190. onButtonClick = "[0,6] call life_fnc_adminaspromotions;";
  191. colorBackground[] = {0,0,1,0.75};
  192. x = 0.3 + (6.25 / 40) + (1 / 250 / (safezoneW / safezoneH));
  193. y = 0.79 - (1 / 25);
  194. w = (15 / 40);
  195. h = (1 / 25);
  196. class Attributes
  197. {
  198. align = "center";
  199. };
  200. };
  201. };
  202. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement