Cataclysm-DDA icon indicating copy to clipboard operation
Cataclysm-DDA copied to clipboard

ImGui: QueryYN doesn't highlight selected option

Open Brambor opened this issue 1 year ago • 11 comments

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 .

  • OS: Windows
    • OS Version: 10.0.19045.4291 (22H2)
  • Game Version: 0.G-9302-g8a974a2373 [64-bit] master was 89988655dc
  • Graphics Version: Tiles
  • Game Language: English [en]
  • Mods loaded: [ Dark Days Ahead [dda], Disable NPC Needs [no_npc_food], Portal Storms Ignore NPCs [personal_portal_storms], Slowdown Fungal Growth [no_fungal_growth] ]

Additional context

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

Brambor avatar May 08 '24 15:05 Brambor

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

katemonster33 avatar May 08 '24 16:05 katemonster33

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.

Brambor avatar May 08 '24 22:05 Brambor

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

katemonster33 avatar May 09 '24 01:05 katemonster33

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

Brambor avatar May 09 '24 02:05 Brambor

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.

PatrikLundell avatar May 09 '24 06:05 PatrikLundell

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?

Brambor avatar May 09 '24 11:05 Brambor

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

katemonster33 avatar May 09 '24 16:05 katemonster33

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 avatar May 10 '24 23:05 Brambor

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 avatar May 11 '24 13:05 Brambor

I found it @katemonster33. The culprit is e746932688 from

  • #72619

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 avatar May 11 '24 23:05 Brambor

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

Brambor avatar May 13 '24 20:05 Brambor

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.

github-actions[bot] avatar Jun 12 '24 20:06 github-actions[bot]