CleverRaven / Cataclysm-DDA

Cataclysm - Dark Days Ahead. A turn-based survival game set in a post-apocalyptic world.
http://cataclysmdda.org
Other
9.95k stars 4.08k forks source link

ImGui: QueryYN doesn't highlight selected option #73583

Open Brambor opened 1 month ago

Brambor commented 1 month ago

Describe the bug

image

Pressing left selects yes, and pressing right selects no. But there is no graphical difference whatsoever.

Attach save file

N/A

Steps to reproduce

  1. Open the Keybindings menu, change something, then close OR save "Save and Quit" from a game OR press ESC on launch OR etc.
  2. Yes No query pops up
  3. press left and enter
  4. check that the YES was selected (keybinding is changed / game is saved and quit)
  5. press right and enter
  6. check that the NO was selected (the popup is cancelled)

Expected behavior

It used to highlight, no? Even after ImGui was implemented. Anyway, highlight the selected option.

Screenshots

No response

Versions and configuration

This happens only after merging the new ImGui provided by @ katemonster33 in https://github.com/katemonster33/Cataclysm-DDA/tree/imgui_v1.90.4 .

Additional context

Not pinging katemonster33, I heard they don't like it.

katemonster33 commented 1 month ago

That's odd. Did this start recently for you? I will try and reproduce this when I get a minute

Brambor commented 1 month ago

That's odd. Did this start recently for you? I will try and reproduce this when I get a minute

Cannot say when it started. It's something I have to actively observe to notice.

katemonster33 commented 1 month ago

Screenshot_20240508_215002-1 tried it on bleeding-edge latest experimental. can not reproduce

Brambor commented 1 month ago

Ok, will try tomorrow too. Thanks for your service!

PatrikLundell commented 1 month ago

It could be that it's an issue with a particular (set of) instance, so I'd suggest to @Brambor to test the same thing that was done for the image in the report. If it remains, explain which instance it it (i.e. what you did to bring it up). It would also be useful to try the quit popup @katemonster33 tried, in case it's something tied to the platform used.

Brambor commented 1 month ago

I see. I have been playing with https://github.com/katemonster33/Cataclysm-DDA/tree/imgui_v1.90.4 merged. My bad. Sorry to drag you into this. When I throw it out, the selection works as expected.

Are there any fixes I have reverted by using it @katemonster33? If it is very little time, could you update it, pretty please?

katemonster33 commented 1 month ago

@Brambor so is this problem new? Or was that branch always like that? It could be a regression in ImGui.

Brambor commented 1 month ago

I think it wasn't always like that. I will try when I have time. Since I hate bugs / love to eradicate them, maybe I will make time soon. Maybe now.

Brambor commented 1 month ago

I did find out that it worked on https://github.com/katemonster33/Cataclysm-DDA/tree/imgui_v1.90.4 but it doesn't work now merging that branch. And it doesn't work when that branch is merged into / rebased onto e37e4719. I didn't bisect any further... yet.

Brambor commented 1 month ago

I found it @katemonster33. The culprit is e746932688 from

after which merging https://github.com/katemonster33/Cataclysm-DDA/tree/imgui_v1.90.4 will break the highlight.

If merging the new ImGui before that, that is 67f2fb9a3f and earlier, the highlight works.

Note to self: the next time, be smarter about bisecting.

Brambor commented 1 month ago

Removing the invalid label. I am new to the meaning of labels and how people interpret them.

github-actions[bot] commented 3 weeks ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. Please do not bump or comment on this issue unless you are actively working on it. Stale issues, and stale issues that are closed are still considered.