2015-08-06 21:51:17 +00:00
|
|
|
/*
|
|
|
|
* Author: Glowbal
|
|
|
|
* Open the medical menu for target
|
|
|
|
*
|
|
|
|
* Arguments:
|
|
|
|
* 0: Target <OBJECT>
|
|
|
|
*
|
|
|
|
* Return Value:
|
2015-08-19 18:32:46 +00:00
|
|
|
* If action was taken <BOOL>
|
2015-08-07 03:37:41 +00:00
|
|
|
*
|
|
|
|
* Example:
|
2015-10-13 07:01:59 +00:00
|
|
|
* [some_player] call ace_medical_menu_fnc_openMenu
|
2015-08-06 21:51:17 +00:00
|
|
|
*
|
|
|
|
* Public: No
|
|
|
|
*/
|
2015-08-02 14:56:27 +00:00
|
|
|
#include "script_component.hpp"
|
|
|
|
|
2015-08-07 03:37:41 +00:00
|
|
|
params ["_interactionTarget"];
|
2015-08-06 21:51:17 +00:00
|
|
|
|
2015-11-30 16:14:05 +00:00
|
|
|
if (dialog || {isNull _interactionTarget}) exitWith {
|
2015-08-19 18:32:46 +00:00
|
|
|
disableSerialization;
|
2015-08-02 14:56:27 +00:00
|
|
|
|
2016-06-13 10:49:35 +00:00
|
|
|
private _display = uiNamespace getVariable QGVAR(medicalMenu);
|
2015-08-19 18:32:46 +00:00
|
|
|
if (!isNil "_display") then {
|
|
|
|
closeDialog 314412;
|
|
|
|
};
|
2015-08-02 14:56:27 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
GVAR(INTERACTION_TARGET) = _interactionTarget;
|
2015-08-06 21:51:17 +00:00
|
|
|
|
2015-08-02 14:56:27 +00:00
|
|
|
createDialog QGVAR(medicalMenu);
|
2016-03-02 10:01:39 +00:00
|
|
|
GVAR(lastOpenedOn) = CBA_missionTime;
|
2015-08-19 18:32:46 +00:00
|
|
|
|
2015-08-22 20:33:15 +00:00
|
|
|
true
|