MCPcopy Create free account
hub / github.com/TheRealMJP/BakingLab / AddEnumSetting

Method AddEnumSetting

SampleFramework11/v1.02/Settings.cpp:679–689  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

677}
678
679void SettingsContainer::AddEnumSetting(const char* name, const char* label, const char* group,
680 uint32 initialVal, uint32 numValues,
681 const char* const* valueLabels, const char* helpText)
682{
683 Assert_(settings.find(name) == settings.end());
684 Assert_(tweakBar != nullptr);
685 EnumSetting* setting = new EnumSetting();
686 setting->Initialize(tweakBar, name, group, label, helpText, initialVal, numValues, valueLabels);
687 settings[name] = setting;
688 allocatedSettings.push_back(setting);
689}
690
691void SettingsContainer::AddDirectionSetting(const char* name, const char* label, const char* group,
692 Float3 initialVal, const char* helpText)

Callers

nothing calls this directly

Calls 3

endMethod · 0.80
InitializeMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected