mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
29 lines
686 B
Plaintext
29 lines
686 B
Plaintext
/**
|
|
* fn_handleUI_dropDownTriageCard.sqf
|
|
* @Descr: N/A
|
|
* @Author: Glowbal
|
|
*
|
|
* @Arguments: []
|
|
* @Return:
|
|
* @PublicAPI: false
|
|
*/
|
|
|
|
#include "script_component.hpp"
|
|
|
|
private ["_display","_pos","_ctrl","_curPos","_idc"];
|
|
disableSerialization;
|
|
_display = uiNamespace getVariable QGVAR(medicalMenu);
|
|
_pos = [ 0,0,0,0];
|
|
_curPos = ctrlPosition (_display displayCtrl 2002);
|
|
if ((_curPos select 0) == 0 && (_curPos select 1) == 0) then {
|
|
_pos = ctrlPosition (_display displayCtrl 2001);
|
|
};
|
|
|
|
for "_idc" from 2002 to 2006 step 1 do {
|
|
_pos set [1, (_pos select 1) + (_pos select 3)];
|
|
_ctrl = (_display displayCtrl _idc);
|
|
_ctrl ctrlSetPosition _pos;
|
|
_ctrl ctrlCommit 0;
|
|
};
|
|
|