Fix sharedLoadouts condition in onArsenalOpen, Fix save button logic

This commit is contained in:
Josuan Albin
2017-11-02 15:50:06 +01:00
parent 960e73d3bc
commit 0ffe21691a
2 changed files with 9 additions and 5 deletions

View File

@ -24,7 +24,7 @@ if !(GVAR(allowDefaultLoadouts)) then {
_buttonDefaultLoadoutsCtrl ctrlCommit 0;
};
if (!GVAR(allowSharedLoadouts) || {isMultiplayer}) then {
if !(GVAR(allowSharedLoadouts) || {isMultiplayer}) then {
private _buttonShareLoadoutsCtrl = _display displayCtrl IDC_buttonSharedLoadouts;
_buttonShareLoadoutsCtrl ctrlEnable false;
_buttonShareLoadoutsCtrl ctrlCommit 0;

View File

@ -32,8 +32,10 @@ switch (GVAR(currentLoadoutsTab)) do {
case IDC_buttonDefaultLoadouts: {
_loadButtonCtrl ctrlEnable true;
_loadButtonCtrl ctrlCommit 0;
{
_x ctrlEnable true;
_x ctrlCommit 0;
} foreach [_saveButtonCtrl, _loadButtonCtrl];
{
_x ctrlEnable false;
@ -45,8 +47,10 @@ switch (GVAR(currentLoadoutsTab)) do {
case IDC_buttonSharedLoadouts: {
_loadButtonCtrl ctrlEnable true;
_loadButtonCtrl ctrlCommit 0;
{
_x ctrlEnable true;
_x ctrlCommit 0;
} foreach [_saveButtonCtrl, _loadButtonCtrl];
{
_x ctrlEnable false;