Files
jak-project/game/graphics
ZedB0T f9a7fba6e2 Support identical imgui controller labels (#4290)
ImGUI does have ways to make sure the Internal IDs are unique and
separate from the display label, however I still thought that appending
a count to the end of the name was more clear/understandable.

If you add `ImGui::PushID(i);` Into the loop it appends i to the end of
the internal ID without modifying the display label. The other
alternative would be to use a syntax like
`ImGui::Button((controller_name + "##option1").c_str());` etc....

https://github.com/ocornut/imgui/blob/master/docs/FAQ.md#q-how-can-i-have-multiple-widgets-with-the-same-label


In both cases I think just adding a number that increments communicates
that its a different controller cleaner to the user.

Closes #4289
2026-06-22 19:59:21 -04:00
..
2026-04-20 03:19:08 +02:00
2025-03-02 16:36:22 -05:00
2026-04-20 03:19:08 +02:00