mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Medical GUI - Use selected color when triage category selected (#9495)
Show selected color for triage category
This commit is contained in:
parent
863d88ff41
commit
9ecb35250d
@ -22,6 +22,7 @@ params ["_display"];
|
||||
|
||||
private _ctrl = _display displayCtrl _idc;
|
||||
private _enable = GVAR(actions) findIf {_category == _x select 1 && {call (_x select 2)}} > -1;
|
||||
if (_category isEqualTo "triage") then {_enable = true};
|
||||
_ctrl ctrlEnable _enable;
|
||||
|
||||
private _selectedColor = [
|
||||
@ -36,6 +37,7 @@ params ["_display"];
|
||||
_color set [-1, 0.8]; // Mouseover change
|
||||
_ctrl ctrlSetActiveColor _color;
|
||||
} forEach [
|
||||
[IDC_TRIAGE, "triage"],
|
||||
[IDC_EXAMINE, "examine"],
|
||||
[IDC_BANDAGE, "bandage"],
|
||||
[IDC_MEDICATION, "medication"],
|
||||
|
Loading…
Reference in New Issue
Block a user