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

Method AddDragInt

BG3Extender/Extender/Client/IMGUI/IMGUI.cpp:667–675  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

665
666
667lua::ImguiHandle TreeParent::AddDragInt(char const* label, std::optional<int> value, std::optional<int> min, std::optional<int> max)
668{
669 auto e = AddChild<DragInt>();
670 e->Label = label;
671 if (value) e->Value = glm::ivec4(*value);
672 if (min) e->Min = glm::ivec4(*min);
673 if (max) e->Max = glm::ivec4(*max);
674 return e;
675}
676
677
678lua::ImguiHandle TreeParent::AddSlider(char const* label, std::optional<float> value, std::optional<float> min, std::optional<float> max)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected