11 GetGame().ConfigGetTextArray(
string.Format(
"CfgVehicles %1 hiddenSelections", type), m_HiddenSelections );
12 GetGame().ConfigGetTextArray(
string.Format(
"CfgVehicles %1 hiddenSelectionsTextures", type), m_HiddenSelectionsTextures );
13 GetGame().ConfigGetTextArray(
string.Format(
"CfgVehicles %1 hiddenSelectionsMaterials", type), m_HiddenSelectionsMaterials );
15 for (
int i = 0; i < m_HiddenSelections.Count(); ++i)
16 m_HiddenSelectionNameToIndex.Insert(m_HiddenSelections[i], i);
19 int GetHiddenSelectionIndex(
string selection)
22 if (m_HiddenSelectionNameToIndex.Find(selection, index))
30 return m_HiddenSelectionsTextures;
35 return m_HiddenSelectionsMaterials;
41 GetGame().ConfigGetTextArray(
string.Format(
"CfgVehicles %1 hiddenSelections", type), hiddenSelections );
42 return hiddenSelections;
45 static array<string> GetHiddenSelectionsTexturesConfig(
string type)
48 GetGame().ConfigGetTextArray(
string.Format(
"CfgVehicles %1 hiddenSelectionsTextures", type), hiddenSelectionsTextures );
49 return hiddenSelectionsTextures;
52 static array<string> GetHiddenSelectionsMaterialsConfig(
string type)
55 GetGame().ConfigGetTextArray(
string.Format(
"CfgVehicles %1 hiddenSelectionsMaterials", type), hiddenSelectionsMaterials );
56 return hiddenSelectionsMaterials;