Advertisement
emfirst

Untitled

Jan 8th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.53 KB | None | 0 0
  1. PJHK = {
  2.  
  3. #define TRANSPARENT [0, 0, 0, 0.4]
  4. #define OPAQUE [1, 1, 1, 1]
  5. #define BLOODING [0.698, 0.133, 0.133, 1]
  6.  
  7. private ["_display","_pictrl","_txtctrl","_primary","_primveh"];
  8.  
  9. _display = uiNamespace getVariable 'HKPJ';
  10. _primary = primaryWeapon player;
  11.  
  12. _pictrl = _display displayCtrl 13001;
  13.  
  14. _txtctrl = _display displayCtrl 13011;
  15. if ("ItemBandage" in magazines player) then {_pictrl ctrlSetTextColor [1, 1, 1, 1]}else{_pictrl ctrlSetTextColor [1, 1, 1, 0.4]};
  16. _pictrl ctrlSetText "\dayz_equip\textures\equip_fad_ca.paa";
  17. if (r_player_injured) then {_txtctrl ctrlSetTextColor [0.698, 0.133, 0.133, 1]}else{_txtctrl ctrlSetTextColor [1, 1, 1, 1]};
  18. _txtctrl ctrlSetText "1";
  19.  
  20. _pictrl = _display displayCtrl 13002;
  21.  
  22. _txtctrl = _display displayCtrl 13012;
  23. if ("ItemPainkiller" in magazines player) then {_pictrl ctrlSetTextColor [1, 1, 1, 1]}else{_pictrl ctrlSetTextColor [1, 1, 1, 0.4]};
  24. _pictrl ctrlSetText "\dayz_equip\textures\equip_painkiller_ca.paa";
  25. if (r_player_inpain) then {_txtctrl ctrlSetTextColor [0.698, 0.133, 0.133, 1]}else{_txtctrl ctrlSetTextColor [1, 1, 1, 1]};
  26. _txtctrl ctrlSetText "2";
  27.  
  28. _pictrl = _display displayCtrl 13003;
  29.  
  30. _txtctrl = _display displayCtrl 13013;
  31. if ("ItemMorphine" in magazines player) then {_pictrl ctrlSetTextColor [1, 1, 1, 1]}else{_pictrl ctrlSetTextColor [1, 1, 1, 0.4]};
  32. _pictrl ctrlSetText "\dayz_equip\textures\equip_morphine_ca.paa";
  33. if (r_fracture_legs) then {_txtctrl ctrlSetTextColor [0.698, 0.133, 0.133, 1]}else{_txtctrl ctrlSetTextColor [1, 1, 1, 1]};
  34. _txtctrl ctrlSetText "3";
  35.  
  36. _pictrl = _display displayCtrl 13004;
  37.  
  38. _txtctrl = _display displayCtrl 13014;
  39. if ("ItemBloodbag" in magazines player) then {_pictrl ctrlSetTextColor [1, 1, 1, 1]}else{_pictrl ctrlSetTextColor [1, 1, 1, 0.4]};
  40. _pictrl ctrlSetText "\dayz_equip\textures\equip_bloodbag_ca.paa";
  41. if (r_player_blood <= 7600) then {_txtctrl ctrlSetTextColor [0.698, 0.133, 0.133, 1]}else{_txtctrl ctrlSetTextColor [1, 1, 1, 1]};
  42. _txtctrl ctrlSetText "4";
  43.  
  44. _pictrl = _display displayCtrl 13005;
  45.  
  46. _txtctrl = _display displayCtrl 13015;
  47. if (dayz_soundMuted) then {_pictrl ctrlSetText "scripts\gui\muted.paa"; _pictrl ctrlSetTextColor [1, 1, 1, 1]}else{_pictrl ctrlSetText "scripts\gui\notmuted.paa"; _pictrl ctrlSetTextColor [1, 1, 1, 0.4]};
  48. _txtctrl ctrlSetTextColor [1, 1, 1, 1];
  49. _txtctrl ctrlSetText "5";
  50.  
  51. _pictrl = _display displayCtrl 13006;
  52.  
  53. _txtctrl = _display displayCtrl 13016;
  54. _pictrl ctrlSetText "\ca\ui\data\gear_picture_radio_ca.paa";
  55. _txtctrl ctrlSetTextColor [1, 1, 1, 1];
  56. _txtctrl ctrlSetText "6";
  57.  
  58. _pictrl = _display displayCtrl 13007;
  59.  
  60. _txtctrl = _display displayCtrl 13017;
  61. _pictrl ctrlSetText "scripts\gui\autorun.paa";
  62. if (dayz_autoRun) then {_pictrl ctrlSetTextColor [1, 1, 1, 1]}else{_pictrl ctrlSetTextColor [1, 1, 1, 0.4]};
  63. _txtctrl ctrlSetTextColor [1, 1, 1, 1];
  64. _txtctrl ctrlSetText "7";
  65.  
  66. _pictrl = _display displayCtrl 13008;
  67.  
  68. _txtctrl = _display displayCtrl 13018;
  69. if (_primary != "") then
  70. {
  71. _primveh = getText (configFile >> "CfgWeapons" >> _primary >> "picture");
  72. _pictrl ctrlSetTextColor [1, 1, 1, 1];
  73. _pictrl ctrlSetText _primveh;
  74. }
  75. else
  76. {
  77. _primveh = getText (configFile >> "CfgWeapons" >> "Mosin_Belt_FL_DZ" >> "picture");
  78. _pictrl ctrlSetTextColor [0,0,0,0.33];
  79. _pictrl ctrlSetText _primveh;
  80. };
  81. _txtctrl ctrlSetTextColor [1, 1, 1, 1];
  82. _txtctrl ctrlSetText "Tab";
  83. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement