2015-08-06 21:51:17 +00:00
|
|
|
/*
|
|
|
|
* Author: Glowbal
|
|
|
|
* Open the medical menu for target
|
|
|
|
*
|
|
|
|
* Arguments:
|
|
|
|
* 0: Target <OBJECT>
|
|
|
|
*
|
|
|
|
* Return Value:
|
|
|
|
* NONE
|
|
|
|
*
|
|
|
|
* Public: No
|
|
|
|
*/
|
|
|
|
|
2015-08-02 14:56:27 +00:00
|
|
|
#include "script_component.hpp"
|
|
|
|
|
2015-08-06 21:51:17 +00:00
|
|
|
private ["_interactionTarget"];
|
|
|
|
_interactionTarget = _this select 0;
|
|
|
|
|
|
|
|
if (dialog || isNull _interactionTarget) exitwith {
|
2015-08-02 14:56:27 +00:00
|
|
|
disableSerialization;
|
|
|
|
|
|
|
|
private "_display";
|
|
|
|
_display = uiNamespace getVariable QGVAR(medicalMenu);
|
|
|
|
if (!isnil "_display") then {
|
|
|
|
closeDialog 314412;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
GVAR(INTERACTION_TARGET) = _interactionTarget;
|
2015-08-06 21:51:17 +00:00
|
|
|
|
2015-08-02 14:56:27 +00:00
|
|
|
createDialog QGVAR(medicalMenu);
|
2015-08-06 21:51:17 +00:00
|
|
|
GVAR(lastOpenedOn) = ACE_time;
|