mirror of
https://github.com/open-goal/jak-project
synced 2026-06-23 01:19:57 -04:00
f9a7fba6e2
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