mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Show Vehicle Name/Icon for interaction
This commit is contained in:
parent
41489e271c
commit
0daa029622
@ -79,13 +79,24 @@ _recurseFnc = {
|
||||
private "_actionsCfg";
|
||||
_actionsCfg = configFile >> "CfgVehicles" >> _objectType >> "ACE_SelfActions";
|
||||
|
||||
private ["_baseDisplayName", "_baseIcon"];
|
||||
_baseDisplayName = "";
|
||||
_baseIcon = "";
|
||||
if (_objectType isKindOf "CAManBase") then {
|
||||
_baseDisplayName = "Self Actions";
|
||||
_baseIcon = "\a3\ui_f\data\IGUI\Cfg\Actions\eject_ca.paa";
|
||||
} else {
|
||||
_baseDisplayName = getText (configFile >> "CfgVehicles" >> _objectType >> "displayName");
|
||||
_baseIcon = getText (configFile >> "CfgVehicles" >> _objectType >> "Icon");
|
||||
};
|
||||
|
||||
// Create a master action to base on self action
|
||||
_actions = [
|
||||
[
|
||||
[
|
||||
"ACE_SelfActions",
|
||||
"Self Actions",
|
||||
"\a3\ui_f\data\IGUI\Cfg\Actions\eject_ca.paa",
|
||||
_baseDisplayName,
|
||||
_baseIcon,
|
||||
{
|
||||
// Dummy statement so it's not collapsed when there's no available actions
|
||||
true
|
||||
|
Loading…
Reference in New Issue
Block a user