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

Method SetFloat

Source/Scripting/scriptparams.cpp:439–443  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

437}
438
439void ScriptParam::SetFloat(float val) {
440 type_ = FLOAT;
441 f_val_ = val;
442 editor_.SetTextField();
443}
444
445void ScriptParam::SetString(const std::string &val) {
446 type_ = STRING;

Callers 5

ExecuteMethod · 0.45
DrawImGuiFunction · 0.45
ASSetFloatMethod · 0.45
ASAddFloatMethod · 0.45

Calls 1

SetTextFieldMethod · 0.80

Tested by

no test coverage detected