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>
44 lines
1.0 KiB
Plaintext
44 lines
1.0 KiB
Plaintext
#include "..\script_component.hpp"
|
|
/*
|
|
* Author: Glowbal, mharis001
|
|
* Displays the triage card for the target.
|
|
*
|
|
* Arguments:
|
|
* 0: Target <OBJECT>
|
|
*
|
|
* Return Value:
|
|
* None
|
|
*
|
|
* Example:
|
|
* [_target] call ace_medical_gui_fnc_displayTriageCard
|
|
*
|
|
* Public: No
|
|
*/
|
|
|
|
params ["_target"];
|
|
|
|
createDialog QGVAR(RscTriageCard);
|
|
private _display = uiNamespace getVariable [QGVAR(RscTriageCard), displayNull];
|
|
|
|
// Set global target variable for triage buttons
|
|
GVAR(target) = _target;
|
|
|
|
// Initially hide the triage select buttons
|
|
[_display] call FUNC(toggleTriageSelect);
|
|
|
|
[{
|
|
params ["_args", "_pfhID"];
|
|
_args params ["_display", "_target"];
|
|
|
|
if (isNull _display) exitWith {
|
|
[_pfhID] call CBA_fnc_removePerFrameHandler;
|
|
};
|
|
|
|
// Update triage card
|
|
private _ctrlTriageCard = _display displayCtrl IDC_TRIAGE_CARD;
|
|
[_ctrlTriageCard, _target] call FUNC(updateTriageCard);
|
|
|
|
// Update triage status
|
|
[_display, _target] call FUNC(updateTriageStatus);
|
|
}, 0, [_display, _target]] call CBA_fnc_addPerFrameHandler;
|