MCPcopy Create free account
hub / github.com/Norbyte/bg3se / AddSliderInt

Method AddSliderInt

BG3Extender/Extender/Client/IMGUI/IMGUI.cpp:689–697  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

687
688
689lua::ImguiHandle TreeParent::AddSliderInt(char const* label, std::optional<int> value, std::optional<int> min, std::optional<int> max)
690{
691 auto e = AddChild<SliderInt>();
692 e->Label = label;
693 if (value) e->Value = glm::ivec4(*value);
694 if (min) e->Min = glm::ivec4(*min);
695 if (max) e->Max = glm::ivec4(*max);
696 return e;
697}
698
699
700lua::ImguiHandle TreeParent::AddInputScalar(char const* label, std::optional<float> value)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected