tested local
This commit is contained in:
@@ -6,18 +6,6 @@ if (!isClass _vehicleFlagsCfg) exitWith {
|
||||
["WARNING: Vehicle Flags: Vehicle Flags config not found. Vehicle Flags will not be available."] call BIS_fnc_error;
|
||||
};
|
||||
|
||||
// get texture pbo class
|
||||
private _texturePboName = getText(_vehicleFlagsCfg >> "texturePBOName");
|
||||
if (_texturePboName == "") exitWith {
|
||||
["WARNING: Vehicle Flags: Texture PBO definition is missing or a blank string! Vehicle Flags will not be available."] call BIS_fnc_error;
|
||||
};
|
||||
if (!isClass (configFile >> "CfgPatches" >> _texturePboName)) exitWith {
|
||||
[
|
||||
"WARNING: Vehicle Flags: Texture PBO not found (%1). Vehicle Flags will not be available.",
|
||||
_texturePboName
|
||||
] call BIS_fnc_error;
|
||||
};
|
||||
|
||||
private _baseClassesToApplyActionsFor =
|
||||
(_vehicleFlagsCfg >> "baseClassesToApplyActionsFor") call BIS_fnc_getCfgDataArray;
|
||||
private _flagCategoryCfgs = (_vehicleFlagsCfg >> "FlagCategories") call BIS_fnc_returnChildren;
|
||||
@@ -84,7 +72,7 @@ private _flagCategoryCfgs = (_vehicleFlagsCfg >> "FlagCategories") call BIS_fnc_
|
||||
////////////////////////////////////////////////////////////////////////
|
||||
// create action
|
||||
private _removeFlagAction = [
|
||||
_flagRootAction + "_removeflag", // id
|
||||
_rootActionID + "_removeflag", // id
|
||||
"Remove Flag", // displayed title
|
||||
"\A3\ui_f\data\map\markers\flags\nato_ca.paa", // flag icon
|
||||
{
|
||||
@@ -103,7 +91,7 @@ private _flagCategoryCfgs = (_vehicleFlagsCfg >> "FlagCategories") call BIS_fnc_
|
||||
[
|
||||
(_this select 0), // object
|
||||
0, // action 0 or self-action 1
|
||||
["ACE_MainActions", _flagActionID], // parent
|
||||
["ACE_MainActions", _rootActionID], // parent
|
||||
_removeFlagAction // action
|
||||
] call ace_interact_menu_fnc_addActionToObject;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user