Closed mihal190 closed 1 year ago
Having a different hiddenselection
for each value will create an issue to ensure that all other hiddenselection
are cleared meanwhile.
A counter proposition would be to allow to provide an array of hiddenselections
and an array of textures
.
class Gloves
{
label = "Gloves";
values[] = {"OverLord_Black","Mechanix_Red"};
hiddenselections[] = {"Glove_OverLord", "Glove_Mechanix" };
class OverLord_Black {label = "OR";textures[] = { "sgu_sof_2\data\gloves\ORB.paa", "" }; };
class Mechanix_Red {label = "MX";texture[] = { "", "sgu_sof_2\data\gloves\MXR.paa" }; };
};
Right now my code looks like this:
And it's only useable for chaning textures, i wonder if we can improve it to switch models with hidden selections
with this setup i should be able to completly hide unwatned gloves with hidden selections, keeping configs and optimized. Hiddenselection inside sub-class should overwrite default one