Update group dialog

This commit is contained in:
ebaydayz
2016-10-28 20:10:10 -04:00
parent c2e63f63ae
commit dbb9e97efc
4 changed files with 8 additions and 10 deletions

View File

@@ -12,4 +12,6 @@ if (isNull _target or _target == player or player != leader group player) exitWi
[_target] join grpNull; [_target] join grpNull;
PVDZ_Server_UpdateGroup = [2,player,_targetUID]; PVDZ_Server_UpdateGroup = [2,player,_targetUID];
publicVariableServer "PVDZ_Server_UpdateGroup"; publicVariableServer "PVDZ_Server_UpdateGroup";
_myGroup call dayz_selectGroupMember; //update lbCurSel change

View File

@@ -35,7 +35,7 @@ while {!isNull findDisplay 80000} do {
_leaveButton ctrlShow true; _leaveButton ctrlShow true;
if (player == _leader) then {_disbandButton ctrlShow true}; if (player == _leader) then {_disbandButton ctrlShow true};
} else { } else {
{_x ctrlShow false} count [_disbandButton,_leaveButton]; {_x ctrlShow false} count [_disbandButton,_leaveButton,_kickButton,_promoteButton];
}; };
_hasInvite = false; _hasInvite = false;

View File

@@ -11,13 +11,9 @@ _group = group player;
_target = _uid call dayz_getPlayer; _target = _uid call dayz_getPlayer;
if (player == leader _group && {!isNull _target} && {_target != player}) then { if (player == leader _group && {!isNull _target} && {_target != player}) then {
if (local _group) then { _group selectLeader _target;
_group selectLeader _target; //group must be local _promoteButton ctrlShow false;
_promoteButton ctrlShow false; _disbandButton ctrlShow false;
_disbandButton ctrlShow false;
} else {
systemChat "Failed: Group must be local to do this";
};
} else { } else {
_promoteButton ctrlShow false; _promoteButton ctrlShow false;
}; };

View File

@@ -710,5 +710,5 @@ if (!isDedicated) then {
DZE_Quarantine = false; DZE_Quarantine = false;
DZE_InRadiationZone = false; DZE_InRadiationZone = false;
DZE_myVehicle = objNull; DZE_myVehicle = objNull;
dayz_groupNameTags = false; dayz_groupNameTags = true;
}; };