mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Rename share button to Unshare when loadout selected is shared
This commit is contained in:
@ -29,4 +29,5 @@ if (_loadoutIndex > -1) then {
|
||||
[QGVAR(loadoutShared), [_contentPanelCtrl, [_profileName ,_loadoutName , _loadoutData]]] call CBA_fnc_remoteEvent;
|
||||
};
|
||||
|
||||
_control ctrlSetText (["Share", "Unshare"] select ((_contentPanelCtrl lnbText [_contentPanelCursSel, 0]) != "")); // TBL
|
||||
publicVariable QGVAR(sharedLoadoutsVars);
|
||||
|
@ -17,6 +17,8 @@ if (_curSel == -1) exitWith {
|
||||
_saveButtonCtrl ctrlCommit 0;
|
||||
};
|
||||
|
||||
_shareButtonCtrl ctrlSetText "Share"; // TBL
|
||||
|
||||
{
|
||||
_x ctrlEnable false;
|
||||
_x ctrlCommit 0;
|
||||
@ -33,8 +35,10 @@ switch (GVAR(currentLoadoutsTab)) do {
|
||||
_loadButtonCtrl ctrlEnable true;
|
||||
_loadButtonCtrl ctrlCommit 0;
|
||||
|
||||
_shareButtonCtrl ctrlSetText (["Share", "Unshare"] select ((_control lnbText [_curSel, 0]) != "")); // TBL
|
||||
|
||||
{
|
||||
_x ctrlEnable (_curSel >= 0);
|
||||
_x ctrlEnable true;
|
||||
_x ctrlCommit 0;
|
||||
} foreach [_renameButtonCtrl, _deleteButtonCtrl];
|
||||
|
||||
|
Reference in New Issue
Block a user