mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
role icon for passengers
This commit is contained in:
parent
f84a936d95
commit
ac87a28daa
@ -23,15 +23,21 @@ private ["_actions"];
|
|||||||
_actions = [];
|
_actions = [];
|
||||||
|
|
||||||
{
|
{
|
||||||
private ["_unit"];
|
private ["_unit", "_icon"];
|
||||||
_unit = _x;
|
_unit = _x;
|
||||||
if ((_unit != _player) && {(getText (configFile >> "CfgVehicles" >> (typeOf _x) >> "simulation")) != "UAVPilot"}) then {
|
if ((_unit != _player) && {(getText (configFile >> "CfgVehicles" >> (typeOf _x) >> "simulation")) != "UAVPilot"}) then {
|
||||||
|
_icon = switch _unit do {
|
||||||
|
case (driver _vehicle): { QUOTE(A3\ui_f\data\IGUI\RscIngameUI\RscUnitInfo\role_driver_ca.paa) };
|
||||||
|
case (gunner _vehicle): { QUOTE(A3\ui_f\data\IGUI\RscIngameUI\RscUnitInfo\role_gunner_ca.paa) };
|
||||||
|
case (commander _vehicle): { QUOTE(A3\ui_f\data\IGUI\RscIngameUI\RscUnitInfo\role_commander_ca.paa) };
|
||||||
|
default { "" };
|
||||||
|
};
|
||||||
_actions pushBack
|
_actions pushBack
|
||||||
[
|
[
|
||||||
[
|
[
|
||||||
str(_unit),
|
str(_unit),
|
||||||
[_unit, true] call EFUNC(common,getName),
|
[_unit, true] call EFUNC(common,getName),
|
||||||
"",
|
_icon,
|
||||||
{},
|
{},
|
||||||
{true},
|
{true},
|
||||||
{_this call FUNC(addPassengerActions);},
|
{_this call FUNC(addPassengerActions);},
|
||||||
|
Loading…
Reference in New Issue
Block a user