mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
36 lines
756 B
Plaintext
36 lines
756 B
Plaintext
#include "script_component.hpp"
|
|
/*
|
|
* Author: Gundy
|
|
*
|
|
* Description:
|
|
* Initiates the closing of currently open interface
|
|
*
|
|
* Arguments:
|
|
* NONE
|
|
*
|
|
* Return Value:
|
|
* TRUE <BOOL>
|
|
*
|
|
* Example:
|
|
* [] call ace_bft_devices_fnc_ifClose;
|
|
*
|
|
* Public: No
|
|
*/
|
|
|
|
|
|
if !(I_CLOSED) then {
|
|
// [_ifType,_displayName,_player,_playerKilledEhId,_vehicle,_vehicleGetOutEhId]
|
|
private _displayName = I_GET_NAME;
|
|
private _display = uiNamespace getVariable [_displayName,displayNull];
|
|
|
|
if !(isNull _display) then {
|
|
_display closeDisplay 0;
|
|
// only call ifOnUnload for displays (dialogs call ifOnUnload themselves when they close)
|
|
if !(I_GET_ISDIALOG) then {
|
|
[] call FUNC(ifOnUnload);
|
|
};
|
|
};
|
|
};
|
|
|
|
true
|