Advertisement
Guest User

Untitled

a guest
Nov 7th, 2018
22
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.27 KB | None | 0 0
  1. class CfgXM8
  2. {
  3. extraApps[] = {"ExAd_Info","BRAmaRecipes","BaseMarker","ExAd_SB"};
  4.  
  5. class settings
  6. {
  7. controlID = 4070;
  8. appID = "App01";
  9. title = "Settings";
  10. };
  11.  
  12. class healthScanner
  13. {
  14. controlID = 4120;
  15. appID = "App02";
  16. title = "Health Scan";
  17. };
  18.  
  19. class slothMachine
  20. {
  21. controlID = 4140;
  22. appID = "App03";
  23. title = "Slots";
  24. };
  25.  
  26. class ExAd_Info
  27. {
  28. title = "Server Rules"; //IDC:50100 -> 50102 || These need to be unique and out of range from each other
  29. controlID = 50100;
  30. logo = "ExadClient\XM8\Apps\Info\Icon_SI.paa";
  31. onLoad = "ExAdClient\XM8\Apps\Info\onLoad.sqf";
  32. onOpen = "ExAdClient\XM8\Apps\Info\onOpen.sqf";
  33. onClose = "ExAdClient\XM8\Apps\Info\onClose.sqf";
  34. };
  35. class BRAmaRecipes
  36. {
  37. controlID = 107000;
  38. title = "Recipies";
  39. logo = "ExAdClient\XM8\Apps\BRAmaRecipes\BRAma.paa";
  40. config = "ExAdClient\XM8\Apps\BRAmaRecipes\config.sqf";
  41. onLoad = "ExAdClient\XM8\Apps\BRAmaRecipes\onLoad.sqf";
  42. onOpen = "ExAdClient\XM8\Apps\BRAmaRecipes\onOpen.sqf";
  43. };
  44. class BaseMarker
  45. {
  46. title = "Base Marker";
  47. controlID = 70001;
  48. logo = "ExAdClient\XM8\Apps\BaseMarker\BaseMarker.paa";
  49. onLoad = "ExAdClient\XM8\Apps\BaseMarker\onLoad.sqf";
  50. };
  51. class ExAd_SB
  52. {
  53. title = "Statsbar Settings";
  54. controlID = 50400; //IDC:50400 -> 50475 || These need to be unique and out of range from each other
  55. logo = "exile_assets\texture\ui\xm8_app_settings_ca.paa";
  56. onLoad = "ExAdClient\XM8\Apps\SB_Settings\onLoad.sqf";
  57. };
  58. };
  59. /*
  60. XM8 Extra apps, the Exile way of doing it
  61.  
  62. Here is an example app layout:
  63. class XM8_App01_Button: RscExileXM8AppButton1x1
  64. {
  65. textureNoShortcut = ""; // Path to picture. This can be via mission file or client side PBO
  66. text = ""; // The name of the app to be display on the button
  67. onButtonClick = ""; // The code to fire when the app is clicked
  68. resource = ""; // The name of the resource to load for the app, leave as an empty string if you just want to run code without a GUI, like BOOM or spawning a bike
  69. };
  70. */
  71.  
  72. class XM8_App01_Button: RscExileXM8AppButton1x1
  73. {
  74. textureNoShortcut = "\exile_assets\texture\ui\xm8_app_settings_ca.paa";
  75. text = "Settings";
  76. onButtonClick = "['settings', 0] call ExileClient_gui_xm8_slide";
  77. resource = "XM8SlideSettings";
  78. };
  79.  
  80. class XM8_App02_Button: RscExileXM8AppButton1x1
  81. {
  82. textureNoShortcut = "\exile_assets\texture\ui\xm8_app_health_scanner_ca.paa";
  83. text = "Health Scanner";
  84. onButtonClick = "['healthScanner', 0] call ExileClient_gui_xm8_slide";
  85. resource = "XM8SlideHealthScanner";
  86. };
  87.  
  88. class XM8_App03_Button: RscExileXM8AppButton1x1
  89. {
  90. textureNoShortcut = "\exile_assets\texture\ui\xm8_app_slothMachine_ca.paa";
  91. text = "Sloth Machine";
  92. onButtonClick = "['slothMachine', 0] call ExileClient_gui_xm8_slide";
  93. resource = "XM8SlideSlothMachine";
  94. };
  95.  
  96. class XM8_App04_Button: RscExileXM8AppButton1x1
  97. {
  98. textureNoShortcut = "\exile_assets\texture\ui\xm8_app_boom_ca.paa";
  99. text = "BOOM!";
  100. onButtonClick = "call ExileClient_system_breaching_detonate";
  101. resource = "";
  102. };
  103.  
  104. class XM8_App05_Button: RscExileXM8AppButton1x1
  105. {
  106. textureNoShortcut = "ExadClient\XM8\Apps\CHVD\Icon_CHVD.paa";
  107. text = "View Distance Settings";
  108. onButtonClick = "['ExAd_CHVD', 0] call ExileClient_gui_xm8_slide";
  109. resource = "";
  110. };
  111.  
  112. class XM8_App06_Button: RscExileXM8AppButton1x1
  113. {
  114. textureNoShortcut = "ExadClient\XM8\Apps\Info\Icon_SI.paa";
  115. text = "Server Rules";
  116. onButtonClick = "['ExAd_Info', 0] call ExileClient_gui_xm8_slide";
  117. resource = "";
  118. };
  119.  
  120.  
  121. class XM8_App07_Button: RscExileXM8AppButton1x1
  122. {
  123. textureNoShortcut = "ExAdClient\XM8\Apps\BRAmaRecipes\BRAma.paa";
  124. text = "BRAmaRecipes";
  125. onButtonClick = "['BRAmaRecipes', 0] call ExileClient_gui_xm8_slide";
  126. resource = "";
  127. };
  128.  
  129.  
  130. class XM8_App08_Button: RscExileXM8AppButton1x1
  131. {
  132. textureNoShortcut = "ExAdClient\XM8\Apps\BaseMarker\BaseMarker.paa";
  133. text = "Base Marker";
  134. onButtonClick = "['Basemarker', 0] call ExileClient_gui_xm8_slide";
  135. resource = "";
  136. };
  137.  
  138.  
  139. class XM8_App09_Button: RscExileXM8AppButton1x1
  140. {
  141. textureNoShortcut = "exile_assets\texture\ui\xm8_app_settings_ca.paa";
  142. text = "Status Bar Settings";
  143. onButtonClick = "['ExAd_SB', 0] call ExileClient_gui_xm8_slide";
  144. resource = "";
  145. };
  146.  
  147. class XM8_App10_Button: RscExileXM8AppButton1x1
  148. {
  149. textureNoShortcut = "";
  150. text = "";
  151. onButtonClick = "";
  152. resource = "";
  153. };
  154.  
  155. class XM8_App11_Button: RscExileXM8AppButton1x1
  156. {
  157. textureNoShortcut = "";
  158. text = "";
  159. onButtonClick = "";
  160. resource = "";
  161. };
  162.  
  163.  
  164. class XM8_App12_Button: RscExileXM8AppButton1x1
  165. {
  166. textureNoShortcut = "";
  167. text = "";
  168. onButtonClick = "";
  169. resource = "";
  170. };
  171.  
  172.  
  173. class XM8_App13_Button: RscExileXM8AppButton1x1
  174. {
  175. textureNoShortcut = "";
  176. text = "";
  177. onButtonClick = "";
  178. resource = "";
  179. };
  180.  
  181. class XM8_App14_Button: RscExileXM8AppButton1x1
  182. {
  183. textureNoShortcut = "";
  184. text = "";
  185. onButtonClick = "";
  186. resource = "";
  187. };
  188.  
  189. //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  190. //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  191. // BELOW IS WHERE ALL THE XM8 APP RESOURCES CAN GO
  192. //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  193. //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  194. class XM8SlideSettings: RscExileXM8Slide
  195. {
  196. idc = 4070;
  197. class Controls
  198. {
  199. class GoBackButton: RscExileXM8ButtonMenu
  200. {
  201. idc = 4071;
  202. text = "GO BACK";
  203. x = (30 - 3) * (0.025);
  204. y = (19 - 2) * (0.04);
  205. w = 6 * (0.025);
  206. h = 1 * (0.04);
  207. onButtonClick = "['extraApps', 1] call ExileClient_gui_xm8_slide";
  208. };
  209.  
  210. class 8GDropDown: RscExileXM8Combo
  211. {
  212. idc = 4072;
  213. x = (5 - 3) * (0.025);
  214. y = (5 - 2) * (0.04);
  215. w = 7 * (0.025);
  216. h = 1 * (0.04);
  217. onLBSelChanged = "_this call ExileClient_gui_xm8_slide_settings_event_on8GSelectionChanged";
  218. };
  219.  
  220. class 8GLabel: RscExileXM8Text
  221. {
  222. idc = -1;
  223. text = "Show my device in global 8G network.";
  224. x = (13 - 3) * (0.025);
  225. y = (5 - 2) * (0.04);
  226. w = 22 * (0.025);
  227. h = 1 * (0.04);
  228. shadow = 0;
  229. };
  230.  
  231. class SoundDropDown: RscExileXM8Combo
  232. {
  233. idc = 4075;
  234. x = (5 - 3) * (0.025);
  235. y = (7 - 2) * (0.04);
  236. w = 7 * (0.025);
  237. h = 1 * (0.04);
  238. onLBSelChanged = "_this call ExileClient_gui_xm8_slide_settings_event_onSoundSelectionChanged";
  239. };
  240.  
  241. class SoundLabel: RscExileXM8Text
  242. {
  243. idc = -1;
  244. text = "Play a beep sound on notifications.";
  245. x = (13 - 3) * (0.025);
  246. y = (7 - 2) * (0.04);
  247. w = 22 * (0.025);
  248. h = 1 * (0.04);
  249. shadow = 0;
  250. };
  251.  
  252. class PartyEspDropDown: RscExileXM8Combo
  253. {
  254. idc = 4076;
  255. x = (5 - 3) * (0.025);
  256. y = (9 - 2) * (0.04);
  257. w = 7 * (0.025);
  258. h = 1 * (0.04);
  259. onLBSelChanged = "_this call ExileClient_gui_xm8_slide_settings_event_onPartyEspSelectionChanged";
  260. };
  261.  
  262. class PartyEspLabel: RscExileXM8Text
  263. {
  264. idc = -1;
  265. text = "Color of 3D party icons and name tags.";
  266. x = (13 - 3) * (0.025);
  267. y = (9 - 2) * (0.04);
  268. w = 22 * (0.025);
  269. h = 1 * (0.04);
  270. shadow = 0;
  271. };
  272.  
  273. class PartyEspSlider: RscExileXM8XSliderH
  274. {
  275. idc = 4078;
  276. x = (5 - 3) * (0.025);
  277. y = (11 - 2) * (0.04);
  278. w = 7 * (0.025);
  279. h = 1 * (0.04);
  280. onSliderPosChanged = "_this call ExileClient_gui_xm8_slide_settings_event_onPartyEspSliderChanged";
  281. };
  282.  
  283. class PartyEspSliderLabel: RscExileXM8Text
  284. {
  285. idc = -1;
  286. text = "Opacity of 3D party icons and name tags.";
  287. x = (13 - 3) * (0.025);
  288. y = (11 - 2) * (0.04);
  289. w = 22 * (0.025);
  290. h = 1 * (0.04);
  291. shadow = 0;
  292. };
  293.  
  294. class PartyMarkerSlider: RscExileXM8XSliderH
  295. {
  296. idc = 4079;
  297. x = (5 - 3) * (0.025);
  298. y = (13 - 2) * (0.04);
  299. w = 7 * (0.025);
  300. h = 1 * (0.04);
  301. onSliderPosChanged = "_this call ExileClient_gui_xm8_slide_settings_event_onPartyMarkerSliderChanged";
  302. };
  303.  
  304. class PartyMarkerSliderLabel: RscExileXM8Text
  305. {
  306. idc = -1;
  307. text = "Opacity of 3D party markers.";
  308. x = (13 - 3) * (0.025);
  309. y = (13 - 2) * (0.04);
  310. w = 22 * (0.025);
  311. h = 1 * (0.04);
  312. shadow = 0;
  313. };
  314.  
  315. class StreamModeDropDown: RscExileXM8Combo
  316. {
  317. idc = 4077;
  318. x = (5 - 3) * (0.025);
  319. y = (15 - 2) * (0.04);
  320. w = 7 * (0.025);
  321. h = 1 * (0.04);
  322. onLBSelChanged = "_this call ExileClient_gui_xm8_slide_settings_event_onStreamModeSelectionChanged";
  323. };
  324.  
  325. class StreamModeLabel: RscExileXM8Text
  326. {
  327. idc = -1;
  328. text = "Masquerade PIN codes. Perfect for streamers.";
  329. x = (13 - 3) * (0.025);
  330. y = (15 - 2) * (0.04);
  331. w = 22 * (0.025);
  332. h = 1 * (0.04);
  333. shadow = 0;
  334. };
  335. };
  336. };
  337.  
  338. class XM8SlideHealthScanner: RscExileXM8Slide
  339. {
  340. idc = 4120;
  341. class Controls
  342. {
  343. class GoBackButton: RscExileXM8ButtonMenu
  344. {
  345. idc = 4122;
  346. text = "GO BACK";
  347. x = (30 - 3) * (0.025);
  348. y = (19 - 2) * (0.04);
  349. w = 6 * (0.025);
  350. h = 1 * (0.04);
  351. onButtonClick = "['extraApps', 1] call ExileClient_gui_xm8_slide";
  352. };
  353.  
  354. class HealthInfoControlGroup: RscExileXM8ControlsGroupNoHScrollbars
  355. {
  356. idc = -1;
  357. x = (5 - 3) * (0.025);
  358. y = (5 - 2) * (0.04);
  359. w = 30 * (0.025);
  360. h = 15 * (0.04);
  361. colorBackground[] = {0,0,0,0.25};
  362.  
  363. class controls
  364. {
  365. class HealthInfo: RscExileXM8StructuredText
  366. {
  367. idc = 4121;
  368. x = 0;
  369. y = 0;
  370. w = 29 * (0.025); // minus 1!
  371. h = 15 * (0.04);
  372. };
  373. };
  374. };
  375. };
  376. };
  377.  
  378. class XM8SlideSlothMachine: RscExileXM8Slide
  379. {
  380. idc = 4140;
  381. class Controls
  382. {
  383. class Background: RscExileXM8PictureKeepAspect
  384. {
  385. idc = -1;
  386. text = "\exile_assets\texture\ui\slothMachine\xm8_slothMachineBackground.paa";
  387. x = -3.1 * (0.025) + (0);
  388. y = -6 * (0.04) + (0);
  389. w = 40 * (0.025);
  390. h = 33 * (0.04);
  391. };
  392.  
  393. class XM8SlothMachineSpinButton: RscExileXM8PictureButton
  394. {
  395. idc = 4141;
  396. style = 0x30;
  397. x = 14.3 * (0.025) + (0);
  398. y = 15.9 * (0.04) + (0);
  399. w = 5.7 * (0.025);
  400. h = 2 * (0.04);
  401. text = "\exile_assets\texture\ui\slothMachine\button_off_ca.paa";
  402. action = "[] call ExileClient_gui_xm8_slide_slothMachine_event_onSpinButtonClick;";
  403. };
  404.  
  405. class GoBackButton: RscExileXM8ButtonMenu
  406. {
  407. idc = 4148;
  408. text = "GO BACK";
  409. x = (30 - 3) * (0.025);
  410. y = (19 - 2) * (0.04);
  411. w = 6 * (0.025);
  412. h = 1 * (0.04);
  413. sizeEx = .9 * (0.04);
  414. onButtonClick = "['extraApps', 1] call ExileClient_gui_xm8_slide";
  415. };
  416.  
  417. class PopTabsLabel: RscExileXM8StructuredText
  418. {
  419. idc = 4142;
  420. text = "<t align='center'><t color='#e14141'><img image='\exile_assets\texture\ui\poptab_inline_ca.paa' size='1' shadow='true' /></t>";
  421. x = 6.5 * (0.025) + (0);
  422. y = 13 * (0.04) + (0);
  423. w = 6 * (0.025);
  424. h = 2 * (0.04);
  425. };
  426.  
  427. class JackpotLabel: RscExileXM8StructuredText
  428. {
  429. idc = 4143;
  430. text = "<t align='center'><t color='#e14141'></t>";
  431. x = 14 * (0.025) + (0);
  432. y = 13 * (0.04) + (0);
  433. w = 6 * (0.025);
  434. h = 2 * (0.04);
  435. };
  436.  
  437. class WinningsLabel: RscExileXM8StructuredText
  438. {
  439. idc = 4144;
  440. text = "<t align='center'><t color='#e14141'>0</t>";
  441. x = 21.5 * (0.025) + (0);
  442. y = 13 * (0.04) + (0);
  443. w = 6 * (0.025);
  444. h = 2 * (0.04);
  445. };
  446.  
  447. class Symbol01: RscExileXM8PictureKeepAspect
  448. {
  449. idc = 4145;
  450. text = "";
  451. x = 6.55 * (0.025) + (0);
  452. y = 4 * (0.04) + (0);
  453. w = 5.83 * (0.025);
  454. h = 5 * (0.04);
  455. };
  456.  
  457. class Symbol02: RscExileXM8PictureKeepAspect
  458. {
  459. idc = 4146;
  460. text = "";
  461. x = 14.1 * (0.025) + (0);
  462. y = 4 * (0.04) + (0);
  463. w = 5.83 * (0.025);
  464. h = 5 * (0.04);
  465. };
  466.  
  467. class Symbol03: RscExileXM8PictureKeepAspect
  468. {
  469. idc = 4147;
  470. text = "";
  471. x = 21.6 * (0.025) + (0);
  472. y = 4 * (0.04) + (0);
  473. w = 5.83 * (0.025);
  474. h = 5 * (0.04);
  475. };
  476. };
  477. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement