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

Method AddSlider

BG3Extender/Extender/Client/IMGUI/IMGUI.cpp:678–686  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

676
677
678lua::ImguiHandle TreeParent::AddSlider(char const* label, std::optional<float> value, std::optional<float> min, std::optional<float> max)
679{
680 auto e = AddChild<SliderScalar>();
681 e->Label = label;
682 if (value) e->Value = glm::vec4(*value);
683 if (min) e->Min = glm::vec4(*min);
684 if (max) e->Max = glm::vec4(*max);
685 return e;
686}
687
688
689lua::ImguiHandle TreeParent::AddSliderInt(char const* label, std::optional<int> value, std::optional<int> min, std::optional<int> max)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected