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

Method GetStyleVar

BG3Extender/Extender/Client/IMGUI/IMGUI.cpp:359–368  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

357
358
359std::optional<float> StyledRenderable::GetStyleVar(GuiStyleVar var)
360{
361 for (auto& kv : StyleVars) {
362 if (kv.Key == var) {
363 return kv.Value.x;
364 }
365 }
366
367 return {};
368}
369
370
371void StyledRenderable::SetStyleVar(GuiStyleVar var, float value, std::optional<float> value2)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected