MCPcopy Create free account
hub / github.com/TheRealMJP/Shadows / AddIntSetting

Method AddIntSetting

Shadows/SampleFramework11/Settings.cpp:488–498  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

486}
487
488void SettingsContainer::AddIntSetting(const char* name, const char* label, const char* group,
489 int32 initialVal, int32 minVal, int32 maxVal,
490 const char* helpText)
491{
492 Assert_(settings.find(name) == settings.end());
493 Assert_(tweakBar != nullptr);
494 IntSetting* setting = new IntSetting();
495 setting->Initialize(tweakBar, name, group, label, helpText, initialVal, minVal, maxVal);
496 settings[name] = setting;
497 allocatedSettings.push_back(setting);
498}
499
500void SettingsContainer::AddBoolSetting(const char* name, const char* label, const char* group,
501 bool32 initialVal, const char* helpText)

Callers

nothing calls this directly

Calls 1

InitializeMethod · 0.45

Tested by

no test coverage detected