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

Method AddDrag

BG3Extender/Extender/Client/IMGUI/IMGUI.cpp:656–664  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

654
655
656lua::ImguiHandle TreeParent::AddDrag(char const* label, std::optional<float> value, std::optional<float> min, std::optional<float> max)
657{
658 auto e = AddChild<DragScalar>();
659 e->Label = label;
660 if (value) e->Value = glm::vec4(*value);
661 if (min) e->Min = glm::vec4(*min);
662 if (max) e->Max = glm::vec4(*max);
663 return e;
664}
665
666
667lua::ImguiHandle TreeParent::AddDragInt(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