mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Change loadout deleted / unshared EH name, add said EH to unsharing
This commit is contained in:
@ -21,7 +21,7 @@ GVAR(lastSearchTextRight) = "";
|
||||
_unit setSpeaker _voice;
|
||||
}] call CBA_fnc_addEventHandler;
|
||||
|
||||
[QGVAR(sharedLoadoutDeleted), {
|
||||
[QGVAR(loadoutUnshared), {
|
||||
_x params ["_contentPanel" ,"_loadoutName"];
|
||||
|
||||
if (!(isNil QGVAR(currentLoadoutsTab)) && {GVAR(currentLoadoutsTab) == IDC_buttonSharedLoadouts}) then {
|
||||
|
@ -30,7 +30,7 @@ if (GVAR(currentLoadoutsTab) != IDC_buttonSharedLoadouts) then {
|
||||
_contentPanelCtrl lnbDeleteRow _contentPanelCursSel;
|
||||
_contentPanelCtrl lnbSetCurSelRow (_contentPanelCursSel);
|
||||
|
||||
[QGVAR(sharedLoadoutDeleted), [_contentPanelCtrl, _loadoutName]] call CBA_fnc_remoteEvent;
|
||||
[QGVAR(loadoutUnshared), [_contentPanelCtrl, _loadoutName]] call CBA_fnc_remoteEvent;
|
||||
|
||||
publicVariable QGVAR(sharedLoadoutsVars);
|
||||
[(findDisplay IDD_ace_arsenal), format ["Loadout '%1' was unshared", _loadoutName]] call FUNC(message); // TBL
|
||||
|
@ -9,7 +9,6 @@ private _contentPanelCtrl = _display displayCtrl IDC_contentPanel;
|
||||
private _curSel = lnbCurSelRow _contentPanelCtrl;
|
||||
private _loadoutName = _contentPanelCtrl lnbText [_curSel, 1];
|
||||
|
||||
|
||||
private _loadout = (GVAR(sharedLoadoutsNamespace) getVariable ((_contentPanelCtrl lnbText [_curSel, 0]) + (_contentPanelCtrl lnbText [_curSel, 1]))) select 2;
|
||||
GVAR(center) setUnitLoadout [[_contentPanelCtrl getVariable _loadoutName, _loadout] select (GVAR(currentLoadoutsTab) == IDC_buttonSharedLoadouts), true];
|
||||
|
||||
|
@ -19,6 +19,7 @@ if (_loadoutIndex > -1) then {
|
||||
GVAR(sharedLoadoutsVars) = GVAR(sharedLoadoutsVars) - [_loadoutVar];
|
||||
|
||||
_contentPanelCtrl lnbSetText [[_contentPanelCursSel, 0], ""];
|
||||
[QGVAR(loadoutUnshared), [_contentPanelCtrl, _loadoutName]] call CBA_fnc_remoteEvent;
|
||||
|
||||
} else {
|
||||
GVAR(sharedLoadoutsNamespace) setVariable [_loadoutVar, [_profileName ,_loadoutName , _loadoutData], true];
|
||||
|
Reference in New Issue
Block a user