MCPcopy Create free account
hub / github.com/WolfireGames/overgrowth / ASAddIntCheckbox

Method ASAddIntCheckbox

Source/Scripting/scriptparams.cpp:234–238  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

232}
233
234void ScriptParams::ASAddIntCheckbox(const std::string &key, bool default_val) {
235 ASAddInt(key, default_val);
236 ScriptParam &sp = parameter_map_[key];
237 sp.editor().SetCheckbox();
238}
239
240void ScriptParams::ASAddFloat(const std::string &key, float default_val) {
241 if (parameter_map_.find(key) != parameter_map_.end()) {

Callers 3

InitializeMethod · 0.80
InitializeMethod · 0.80
SetFromDescMethod · 0.80

Calls 1

SetCheckboxMethod · 0.80

Tested by

no test coverage detected