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