Minor arsenal fixes (#6025)

* Change "ok" to "apply" while in 3DEN

* Move execNextFrame from initBox's action to openBox

This was done in order to avoid crashes on custom actions
This commit is contained in:
Josuan Albin 2018-01-06 01:30:33 +01:00 committed by jonpas
parent dbe6a04e8a
commit 3839f2f5fc
3 changed files with 8 additions and 3 deletions

View File

@ -44,7 +44,7 @@ if (_global && {isMultiplayer} && {{_object in _x} count GVAR(EHIDArray) == 0})
{
params ["_target", "_player"];
[{[_this select 0, _this select 1] call FUNC(openBox)}, [_target, _player]] call CBA_fnc_execNextFrame;
[_target, _player] call FUNC(openBox);
},
{
params ["_target", "_player"];

View File

@ -259,7 +259,7 @@ if (is3DEN) then {
];
_buttonCloseCtrl = _display displayCtrl IDC_menuBarClose;
_buttonCloseCtrl ctrlSetText (localize "STR_DISP_OK");
_buttonCloseCtrl ctrlSetText (localize "str_ui_debug_but_apply");
};
//--------------- Prepare the left panel

View File

@ -50,4 +50,9 @@ if (_mode) then {
};
GVAR(center) = _center;
_displayToUse createDisplay QGVAR(display);
if (is3DEN) then {
_displayToUse createDisplay QGVAR(display);
} else {
[{(_this select 0) createDisplay (_this select 1)}, [_displayToUse, QGVAR(display)]] call CBA_fnc_execNextFrame;
};