Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- PJHK = {
- #define TRANSPARENT [0, 0, 0, 0.4]
- #define OPAQUE [1, 1, 1, 1]
- #define BLOODING [0.698, 0.133, 0.133, 1]
- private ["_display","_pictrl","_txtctrl","_primary","_primveh"];
- _display = uiNamespace getVariable 'HKPJ';
- _primary = primaryWeapon player;
- _pictrl = _display displayCtrl 13001;
- _txtctrl = _display displayCtrl 13011;
- if ("ItemBandage" in magazines player) then {_pictrl ctrlSetTextColor [1, 1, 1, 1]}else{_pictrl ctrlSetTextColor [1, 1, 1, 0.4]};
- _pictrl ctrlSetText "\dayz_equip\textures\equip_fad_ca.paa";
- if (r_player_injured) then {_txtctrl ctrlSetTextColor [0.698, 0.133, 0.133, 1]}else{_txtctrl ctrlSetTextColor [1, 1, 1, 1]};
- _txtctrl ctrlSetText "1";
- _pictrl = _display displayCtrl 13002;
- _txtctrl = _display displayCtrl 13012;
- if ("ItemPainkiller" in magazines player) then {_pictrl ctrlSetTextColor [1, 1, 1, 1]}else{_pictrl ctrlSetTextColor [1, 1, 1, 0.4]};
- _pictrl ctrlSetText "\dayz_equip\textures\equip_painkiller_ca.paa";
- if (r_player_inpain) then {_txtctrl ctrlSetTextColor [0.698, 0.133, 0.133, 1]}else{_txtctrl ctrlSetTextColor [1, 1, 1, 1]};
- _txtctrl ctrlSetText "2";
- _pictrl = _display displayCtrl 13003;
- _txtctrl = _display displayCtrl 13013;
- if ("ItemMorphine" in magazines player) then {_pictrl ctrlSetTextColor [1, 1, 1, 1]}else{_pictrl ctrlSetTextColor [1, 1, 1, 0.4]};
- _pictrl ctrlSetText "\dayz_equip\textures\equip_morphine_ca.paa";
- if (r_fracture_legs) then {_txtctrl ctrlSetTextColor [0.698, 0.133, 0.133, 1]}else{_txtctrl ctrlSetTextColor [1, 1, 1, 1]};
- _txtctrl ctrlSetText "3";
- _pictrl = _display displayCtrl 13004;
- _txtctrl = _display displayCtrl 13014;
- if ("ItemBloodbag" in magazines player) then {_pictrl ctrlSetTextColor [1, 1, 1, 1]}else{_pictrl ctrlSetTextColor [1, 1, 1, 0.4]};
- _pictrl ctrlSetText "\dayz_equip\textures\equip_bloodbag_ca.paa";
- if (r_player_blood <= 7600) then {_txtctrl ctrlSetTextColor [0.698, 0.133, 0.133, 1]}else{_txtctrl ctrlSetTextColor [1, 1, 1, 1]};
- _txtctrl ctrlSetText "4";
- _pictrl = _display displayCtrl 13005;
- _txtctrl = _display displayCtrl 13015;
- 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]};
- _txtctrl ctrlSetTextColor [1, 1, 1, 1];
- _txtctrl ctrlSetText "5";
- _pictrl = _display displayCtrl 13006;
- _txtctrl = _display displayCtrl 13016;
- _pictrl ctrlSetText "\ca\ui\data\gear_picture_radio_ca.paa";
- _txtctrl ctrlSetTextColor [1, 1, 1, 1];
- _txtctrl ctrlSetText "6";
- _pictrl = _display displayCtrl 13007;
- _txtctrl = _display displayCtrl 13017;
- _pictrl ctrlSetText "scripts\gui\autorun.paa";
- if (dayz_autoRun) then {_pictrl ctrlSetTextColor [1, 1, 1, 1]}else{_pictrl ctrlSetTextColor [1, 1, 1, 0.4]};
- _txtctrl ctrlSetTextColor [1, 1, 1, 1];
- _txtctrl ctrlSetText "7";
- _pictrl = _display displayCtrl 13008;
- _txtctrl = _display displayCtrl 13018;
- if (_primary != "") then
- {
- _primveh = getText (configFile >> "CfgWeapons" >> _primary >> "picture");
- _pictrl ctrlSetTextColor [1, 1, 1, 1];
- _pictrl ctrlSetText _primveh;
- }
- else
- {
- _primveh = getText (configFile >> "CfgWeapons" >> "Mosin_Belt_FL_DZ" >> "picture");
- _pictrl ctrlSetTextColor [0,0,0,0.33];
- _pictrl ctrlSetText _primveh;
- };
- _txtctrl ctrlSetTextColor [1, 1, 1, 1];
- _txtctrl ctrlSetText "Tab";
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement