2015-08-06 21:51:17 +00:00
|
|
|
/*
|
|
|
|
* Author: Glowbal
|
|
|
|
* Handle the triage card display
|
2015-08-02 14:56:27 +00:00
|
|
|
*
|
2015-08-06 21:51:17 +00:00
|
|
|
* Arguments:
|
2015-08-07 03:37:41 +00:00
|
|
|
* None
|
2015-08-06 21:51:17 +00:00
|
|
|
*
|
|
|
|
* Return Value:
|
2015-08-07 03:37:41 +00:00
|
|
|
* None
|
|
|
|
*
|
|
|
|
* Example:
|
|
|
|
* [] call ace_medical_menu_handleUI_dropDownTriageCard
|
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
|
|
|
private ["_display", "_pos", "_ctrl", "_currentPos", "_idc"];
|
|
|
|
|
2015-08-02 14:56:27 +00:00
|
|
|
disableSerialization;
|
2015-08-07 03:37:41 +00:00
|
|
|
|
2015-08-02 14:56:27 +00:00
|
|
|
_display = uiNamespace getVariable QGVAR(medicalMenu);
|
2015-08-07 03:37:41 +00:00
|
|
|
_pos = [0, 0, 0, 0];
|
|
|
|
_currentPos = ctrlPosition (_display displayCtrl 2002);
|
|
|
|
_currentPos params ["_currentPosX", "_currentPosY"];
|
|
|
|
if (_currentPosX == 0 && _currentPosY == 0) then {
|
2015-08-02 14:56:27 +00:00
|
|
|
_pos = ctrlPosition (_display displayCtrl 2001);
|
|
|
|
};
|
|
|
|
|
|
|
|
for "_idc" from 2002 to 2006 step 1 do {
|
|
|
|
_pos set [1, (_pos select 1) + (_pos select 3)];
|
2015-08-07 03:37:41 +00:00
|
|
|
_ctrl = _display displayCtrl _idc;
|
2015-08-02 14:56:27 +00:00
|
|
|
_ctrl ctrlSetPosition _pos;
|
|
|
|
_ctrl ctrlCommit 0;
|
|
|
|
};
|