ACE3/addons/kestrel4500/functions/fnc_createKestrelDialog.sqf
jonpas 742626ff1a
General - Relative script_component.hpp includes (#9378)
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-09-12 20:58:10 +02:00

36 lines
699 B
Plaintext

#include "..\script_component.hpp"
/*
* Author: Ruthberg
* Opens the Kestrel 4500 dialog
*
* Arguments:
* None
*
* Return Value:
* None
*
* Example:
* call ace_kestrel4500_fnc_createKestrelDialog
*
* Public: No
*/
if (GVAR(Kestrel4500) || {underwater ACE_player} || {!(call FUNC(canShow))}) exitWith {false};
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;
};
[] call FUNC(updateDisplay);
}, 1, _this select 0] call CBA_fnc_addPerFrameHandler;
true