Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImGui: QueryYN doesn't highlight selected option #73583

Open
Brambor opened this issue May 8, 2024 · 11 comments
Open

ImGui: QueryYN doesn't highlight selected option #73583

Brambor opened this issue May 8, 2024 · 11 comments
Labels
ImGui Anything related to the new ImGui UI for SDL/tiles or ImTui for curses builds Info / User Interface Game - player communication, menus, etc.

Comments

@Brambor
Copy link
Contributor

Brambor commented May 8, 2024

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 8998865
  • 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 Brambor added (S1 - Need confirmation) Report waiting on confirmation of reproducibility Info / User Interface Game - player communication, menus, etc. ImGui Anything related to the new ImGui UI for SDL/tiles or ImTui for curses builds labels May 8, 2024
@katemonster33
Copy link
Contributor

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

@Brambor
Copy link
Contributor Author

Brambor commented May 8, 2024

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
Copy link
Contributor

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

@Brambor
Copy link
Contributor Author

Brambor commented May 9, 2024

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

@PatrikLundell
Copy link
Contributor

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
Copy link
Contributor Author

Brambor commented May 9, 2024

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 Brambor added (S4 - Invalid) wontfix / can't reproduce / notabug and removed (S1 - Need confirmation) Report waiting on confirmation of reproducibility labels May 9, 2024
@katemonster33
Copy link
Contributor

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

@Brambor
Copy link
Contributor Author

Brambor commented May 10, 2024

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
Copy link
Contributor Author

Brambor commented May 11, 2024

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 e37e471. I didn't bisect any further... yet.

@Brambor
Copy link
Contributor Author

Brambor commented May 11, 2024

I found it @katemonster33.
The culprit is e746932 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 67f2fb9 and earlier, the highlight works.

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

@Brambor Brambor removed the (S4 - Invalid) wontfix / can't reproduce / notabug label May 13, 2024
@Brambor
Copy link
Contributor Author

Brambor commented May 13, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ImGui Anything related to the new ImGui UI for SDL/tiles or ImTui for curses builds Info / User Interface Game - player communication, menus, etc.
Projects
None yet
Development

No branches or pull requests

3 participants