ACE3/addons/kestrel4500/functions/fnc_createKestrelDialog.sqf

36 lines
699 B
Plaintext
Raw Normal View History

#include "..\script_component.hpp"
2015-04-07 15:58:54 +00:00
/*
* Author: Ruthberg
* Opens the Kestrel 4500 dialog
*
* Arguments:
2015-08-13 23:55:54 +00:00
* None
2015-04-07 15:58:54 +00:00
*
* Return Value:
* None
2015-04-07 15:58:54 +00:00
*
* Example:
* call ace_kestrel4500_fnc_createKestrelDialog
2015-04-07 15:58:54 +00:00
*
* Public: No
*/
if (GVAR(Kestrel4500) || {underwater ACE_player} || {!(call FUNC(canShow))}) exitWith {false};
2015-04-08 09:25:15 +00:00
GVAR(Overlay) = false;
QGVAR(Layer) cutText ["", "PLAIN"];
GVAR(Kestrel4500) = true;
createDialog 'Kestrel4500_Display';
[{
if (!dialog || !GVAR(Kestrel4500)) exitWith {
GVAR(Kestrel4500) = false;
[_this select 1] call CBA_fnc_removePerFrameHandler;
};
2015-08-13 23:55:54 +00:00
[] call FUNC(updateDisplay);
}, 1, _this select 0] call CBA_fnc_addPerFrameHandler;
true