summaryrefslogtreecommitdiff
path: root/StormLib/src/SFileAttributes.cpp
diff options
context:
space:
mode:
authorPhilip Dubé <159546+serprex@users.noreply.github.com>2026-06-19 15:03:46 +0000
committerGitHub <noreply@github.com>2026-06-19 15:03:46 +0000
commit00a51c65076e0306910ea78fc86c89beb26da71e (patch)
tree2e0d9e47ead74d4870d7777bf0306d028e9505e1 /StormLib/src/SFileAttributes.cpp
parent497d34570b16e195665dcdf626cf187f0a705708 (diff)
fix imgui id conflicts (#6764) (#6771)
ImGui derives a control's ID from its visible label, and the menu search page renders every widget in a single scope. Randomizer options that share a label with an enhancement (e.g. "Blue Fire Arrows") therefore produced an ID conflict on the search page. Append a "##Randomizer" suffix to randomizer widget labels so their ImGui ID is unique. The option's own name is left untouched since it is used as a serialization key (spoiler logs, settings lookup); only the menu widget gets the suffix. SliderInt/SliderFloat draw their label themselves via ImGui::Text/CalcTextSize, which (unlike ImGui's labeled widgets) don't strip a "##" suffix, so add a visibleLabel with the suffix chopped off for display while keeping the full label for the unique ID. Co-authored-by: briaguya <70942617+briaguya0@users.noreply.github.com> Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
Diffstat (limited to 'StormLib/src/SFileAttributes.cpp')
0 files changed, 0 insertions, 0 deletions