mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
742626ff1a
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
31 lines
600 B
Plaintext
31 lines
600 B
Plaintext
#include "..\script_component.hpp"
|
|
/*
|
|
* Author: Glowbal
|
|
* Opens the Medical Menu for given target.
|
|
*
|
|
* Arguments:
|
|
* 0: Target <OBJECT>
|
|
*
|
|
* Return Value:
|
|
* None
|
|
*
|
|
* Example:
|
|
* [ACE_player] call ace_medical_gui_fnc_openMenu
|
|
*
|
|
* Public: No
|
|
*/
|
|
|
|
params ["_target"];
|
|
|
|
if (dialog || {isNull _target}) exitWith {
|
|
private _display = uiNamespace getVariable [QGVAR(menuDisplay), displayNull];
|
|
if (!isNull _display) then {closeDialog 0};
|
|
};
|
|
|
|
// Store current target
|
|
GVAR(target) = _target;
|
|
|
|
// Create the menu display
|
|
createDialog "ACE_Medical_Menu";
|
|
GVAR(lastOpenedOn) = CBA_missionTime;
|