Advertisement
iaretechnician

weaponhud.hpp

Mar 17th, 2016
264
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.52 KB | None | 0 0
  1. class weaponHud
  2.     {
  3.         idd = -1;
  4.         movingenable = true;
  5.         duration = 3;
  6.         onLoad = "((_this select 0) displayCtrl 1200) ctrlSetText (gettext (configFile >> 'cfgWeapons' >> (primaryWeapon player) >> 'picture'));{if ((getNumber (configFile >> 'CfgWeapons' >> _x >> 'Type')) == 2) exitWith {((_this select 0) displayCtrl 1201) ctrlSetText (gettext(configFile >> 'cfgWeapons' >> _x >> 'picture'));};} foreach weapons player;_hasbandage = 'ItemBandage' in magazines player;if (_hasbandage) then {(_this select 0) displayCtrl 1202 ctrlSetText (gettext (configFile >> 'cfgMagazines' >> 'itembandage' >> 'picture'));};";
  7.         class Controls
  8.         {
  9.  
  10.            
  11. //START DIALOG         
  12.  
  13. class RscText_1002: RscText
  14. {
  15.     idc = 1002;
  16.     text = "1";
  17.     x = 0.276647 * safezoneW + safezoneX;
  18.     y = 0.909196 * safezoneH + safezoneY;
  19.     w = 0.0700046 * safezoneW;
  20.     h = 0.0700182 * safezoneH;
  21. };
  22.  
  23. class RscText_1003: RscText
  24. {
  25.     idc = 1003;
  26.     text = "2";
  27.     x = 0.387408 * safezoneW + safezoneX;
  28.     y = 0.908743 * safezoneH + safezoneY;
  29.     w = 0.0700046 * safezoneW;
  30.     h = 0.0700182 * safezoneH;
  31. };
  32.  
  33. class RscText_1000: RscText
  34. {
  35.     idc = 1000;
  36.     text = "3";
  37.     x = 0.500773 * safezoneW + safezoneX;
  38.     y = 0.911168 * safezoneH + safezoneY;
  39.     w = 0.0700046 * safezoneW;
  40.     h = 0.0700182 * safezoneH;
  41. };
  42. class RscText_1001: RscText
  43. {
  44.     idc = 1001;
  45.     text = "4";
  46.     x = 0.611519 * safezoneW + safezoneX;
  47.     y = 0.90753 * safezoneH + safezoneY;
  48.     w = 0.0700046 * safezoneW;
  49.     h = 0.0700182 * safezoneH;
  50. };
  51.  
  52.  
  53. class RscPicture_1200: RscPicture
  54. {
  55.     idc = 1200;
  56.     text = "#(argb,8,8,3)color(0,0,0,0)";
  57.     x = 0.290628 * safezoneW + safezoneX;
  58.     y = 0.911168 * safezoneH + safezoneY;
  59.     w = 0.0700046 * safezoneW;
  60.     h = 0.0700182 * safezoneH;
  61.     colorBackground[] = {0,0,0,0};
  62. };
  63.  
  64. class RscPicture_1201: RscPicture
  65. {
  66.     idc = 1201;
  67.     text = "#(argb,8,8,3)color(0,0,0,0)";
  68.     x = 0.401556 * safezoneW + safezoneX;
  69.     y = 0.90753 * safezoneH + safezoneY;
  70.     w = 0.0700046 * safezoneW;
  71.     h = 0.0700182 * safezoneH;
  72.     colorBackground[] = {0,0,0,0};
  73. };
  74.  
  75. class RscPicture_1202: RscPicture
  76. {
  77.     idc = 1202;
  78.     text = "#(argb,8,8,3)color(0,0,0,0)";
  79.     x = 0.51492 * safezoneW + safezoneX;
  80.     y = 0.909955 * safezoneH + safezoneY;
  81.     w = 0.0700046 * safezoneW;
  82.     h = 0.0700182 * safezoneH;
  83.     colorBackground[] = {0,0,0,0};
  84. };
  85.  
  86. class RscPicture_1203: RscPicture
  87. {
  88.     idc = 1203;
  89.     text = "#(argb,8,8,3)color(0,0,0,0)";
  90.     x = 0.626441 * safezoneW + safezoneX;
  91.     y = 0.905106 * safezoneH + safezoneY;
  92.     w = 0.0700046 * safezoneW;
  93.     h = 0.0700182 * safezoneH;
  94.     colorBackground[] = {0,0,0,0};
  95. }; 
  96.  
  97. //END DIALOG
  98.  
  99.         };
  100.     };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement