2017-12-22 09:19:30 +00:00
|
|
|
#include "script_component.hpp"
|
2017-12-22 08:39:01 +00:00
|
|
|
|
2017-12-22 09:19:30 +00:00
|
|
|
params ["_display"];
|
|
|
|
|
|
|
|
private _ctrlButtonAbort = _display displayCtrl 104;
|
|
|
|
_ctrlButtonAbort ctrlSetText localize LSTRING(Mission);
|
2017-12-22 20:41:13 +00:00
|
|
|
_ctrlButtonAbort ctrlSetTooltip localize LSTRING(ReturnToArsenal);
|
|
|
|
|
2017-12-22 18:44:31 +00:00
|
|
|
_ctrlButtonAbort ctrlSetEventHandler ["ButtonClick", {
|
|
|
|
params ["_control"];
|
|
|
|
ctrlParent _control closeDisplay 2;
|
|
|
|
{[player, player, true] call FUNC(openBox)} call CBA_fnc_execNextFrame;
|
|
|
|
true
|
|
|
|
} call EFUNC(common,codeToString)];
|
2017-12-22 08:39:01 +00:00
|
|
|
|
2017-12-22 09:19:30 +00:00
|
|
|
true
|