Page MenuHomeFeedback Tracker

GetHiddenSelectionsMaterials returns HiddenSelectionsTextures
Closed, ResolvedPublic

Description

The GetHiddenSelectionsMaterials function is a copy paste of the GetHiddenSelectionsTextures function currently:

TStringArray GetHiddenSelectionsMaterials()
{

		string garden_type = this.GetType();
		TStringArray textures = new TStringArray;
		GetGame().ConfigGetTextArray( "CfgVehicles " + garden_type + " hiddenSelectionsTextures", textures );
		return textures;

}

Details

Severity
None
Resolution
Open
Reproducibility
N/A
Operating System
Windows 7
Category
General

Event Timeline

The correct implementation ready for copy paste

//! Returns the hiddenSelectionsMaterials array from the object's config
TStringArray GetHiddenSelectionsMaterials()
{
    string garden_type = this.GetType();
    TStringArray materials = new TStringArray;
    GetGame().ConfigGetTextArray( "CfgVehicles " + garden_type + " hiddenSelectionsMaterials", materials );
    return materials;
}
Unknown Object (User) added a subscriber: Unknown Object (User).Jun 22 2019, 1:03 PM
rVn closed this task as Resolved.Jun 24 2019, 3:12 PM
rVn claimed this task.

Thanks, fixed in next exp iteration