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

Method AddIntSetting

SampleFramework11/v1.02/Settings.cpp:656–666  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

654}
655
656void SettingsContainer::AddIntSetting(const char* name, const char* label, const char* group,
657 int32 initialVal, int32 minVal, int32 maxVal,
658 const char* helpText)
659{
660 Assert_(settings.find(name) == settings.end());
661 Assert_(tweakBar != nullptr);
662 IntSetting* setting = new IntSetting();
663 setting->Initialize(tweakBar, name, group, label, helpText, initialVal, minVal, maxVal);
664 settings[name] = setting;
665 allocatedSettings.push_back(setting);
666}
667
668void SettingsContainer::AddBoolSetting(const char* name, const char* label, const char* group,
669 bool32 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