Update ui_selectSlot.sqf

This commit is contained in:
worldwidesorrow
2020-07-29 15:31:18 -05:00
committed by GitHub
parent 422b38f2ff
commit d23ced902a

View File

@@ -19,8 +19,7 @@ if (_button == 1) then {
_item = gearSlotData _control; _item = gearSlotData _control;
if ( //No right click action if ( //No right click action
(!DZE_SelfTransfuse && {_item in ["ItemBloodbag","wholeBloodBagANEG","wholeBloodBagAPOS","wholeBloodBagBNEG","wholeBloodBagBPOS","wholeBloodBagABNEG","wholeBloodBagABPOS","wholeBloodBagONEG","wholeBloodBagOPOS"]}) or (!DZE_SelfTransfuse && {_item in ["ItemBloodbag","wholeBloodBagANEG","wholeBloodBagAPOS","wholeBloodBagBNEG","wholeBloodBagBPOS","wholeBloodBagABNEG","wholeBloodBagABPOS","wholeBloodBagONEG","wholeBloodBagOPOS"]})
(!dayz_groupSystem && {_item == "ItemRadio"})
) exitWith {}; ) exitWith {};
if (mouseOverCarry) then { if (mouseOverCarry) then {
@@ -40,6 +39,7 @@ if (_button == 1) then {
_cfgActions = _conf >> "ItemActions"; _cfgActions = _conf >> "ItemActions";
_numActions = (count _cfgActions); _numActions = (count _cfgActions);
_height = 0; _height = 0;
if (!dayz_groupSystem && {_item == "ItemRadio"}) then {_numActions = 1;}; // Used to bypass the group action when not enabled.
//Populate Menu //Populate Menu
for "_i" from 0 to (_numActions - 1) do for "_i" from 0 to (_numActions - 1) do