2015-08-06 21:51:17 +00:00
|
|
|
/*
|
|
|
|
* Author: Glowbal
|
|
|
|
* Update the category icons
|
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:
|
2015-10-13 07:01:59 +00:00
|
|
|
* [] call ace_medical_menu_fnc_updateIcons
|
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
|
|
|
#define START_IDC 111
|
|
|
|
#define END_IDC 118
|
|
|
|
|
2015-08-02 14:56:27 +00:00
|
|
|
disableSerialization;
|
|
|
|
|
2016-06-13 10:49:35 +00:00
|
|
|
private _display = uiNamespace getVariable QGVAR(medicalMenu);
|
|
|
|
private _options = ["triage" , "examine", "bandage", "medication", "airway", "advanced", "drag", "toggle"];
|
2015-08-02 14:56:27 +00:00
|
|
|
|
2015-08-07 03:37:41 +00:00
|
|
|
for "_idc" from START_IDC to END_IDC step 1 do {
|
2016-06-13 10:49:35 +00:00
|
|
|
private _amount = [ACE_player, GVAR(INTERACTION_TARGET), _options select (_idc - START_IDC)] call FUNC(getTreatmentOptions);
|
2015-08-07 03:37:41 +00:00
|
|
|
if ((count _amount) > 0 || _idc == START_IDC || _idc == END_IDC) then {
|
|
|
|
(_display displayCtrl _idc) ctrlSettextColor [1, 1, 1, 1];
|
2015-08-02 14:56:27 +00:00
|
|
|
} else {
|
2015-08-07 03:37:41 +00:00
|
|
|
(_display displayCtrl _idc) ctrlSettextColor [0.4, 0.4, 0.4, 1];
|
2015-08-02 14:56:27 +00:00
|
|
|
};
|
2015-08-07 03:37:41 +00:00
|
|
|
};
|