ACE3/addons/kestrel4500/functions/fnc_createKestrelDialog.sqf
ulteq 0315219cf2 Added new Kestrel4500 branch:
*TODO: Fix the dialog button actions (action="...") in RscTitles.hpp
2015-04-07 17:43:54 +02:00

22 lines
582 B
Plaintext

#include "script_component.hpp"
if (dialog) exitWith { false };
if (underwater ACE_player) exitWith { false };
if (!("ACE_Kestrel4500" in (uniformItems ACE_player)) && !("ACE_Kestrel4500" in (vestItems ACE_player))) exitWith { false };
GVAR(Kestrel4500_Overlay) = false;
3 cutText ["", "PLAIN"];
GVAR(Kestrel4500) = true;
createDialog 'Kestrel4500_Display';
[{
if (!dialog || !GVAR(Kestrel4500)) exitWith {
[_this select 1] call CBA_fnc_removePerFrameHandler;
};
[] call FUNC(updateDisplay);
}, 1, _this select 0] call CBA_fnc_addPerFrameHandler;
true