diff options
| author | briaguya <70942617+briaguya0@users.noreply.github.com> | 2026-06-17 22:52:58 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-06-18 02:52:58 +0000 |
| commit | 7925f27bffc42d34103c5be5ddf57982a3a1a611 (patch) | |
| tree | 310d8c66244ae971597359c1720a1094d1eca64b /soh/src/code/z_kaleido_scope_call.c | |
| parent | e93ea5b9192b0f3b55e5a7b333018e4976676a5c (diff) | |
fix imgui id conflicts (#6764)develop-ackbar
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: Claude Opus 4.8 <noreply@anthropic.com>
Diffstat (limited to 'soh/src/code/z_kaleido_scope_call.c')
0 files changed, 0 insertions, 0 deletions
