Interaction Menu - Add triage colors to icons at passengers list (#8366)

This commit is contained in:
Serg Vergun 2021-10-11 12:51:05 +03:00 committed by GitHub
parent 0b2b4d7397
commit af66a9881c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View File

@ -40,7 +40,7 @@ private _actions = [];
[
format ["%1", _unit],
[_unit, true] call EFUNC(common,getName),
_icon,
[_icon, "#FFFFFF"],
{
//statement (Run on hover) - reset the cache so we will insert actions immedietly when hovering over new unit
TRACE_2("Cleaning Cache",_target,vehicle _target);
@ -57,7 +57,8 @@ private _actions = [];
[_unit],
{[0, 0, 0]},
2,
[false,false,false,true,false] //add run on hover (4th bit true)
[false,false,false,true,false], //add run on hover (4th bit true)
{if (["ace_medical_gui"] call EFUNC(common,isModLoaded)) then {call EFUNC(medical_gui,modifyActionTriageLevel)}}
] call EFUNC(interact_menu,createAction),
[],
_unit

View File

@ -13,7 +13,7 @@
* None
*
* Example:
* [cursorObject, player, [], []] call ace_interaction_fnc_modifyActionTriageLevel
* [cursorObject, player, [], []] call ace_medical_gui_fnc_modifyActionTriageLevel
*
* Public: No
*/