CleverRaven / Cataclysm-DDA

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

ImGui Demo Screen. Center alignment of the window #72844

Closed IdleSol closed 5 months ago

IdleSol commented 7 months ago

Describe the bug

If you use a non-standard window size, you can get one like this:

test 2

Attach save file

N/A

Steps to reproduce

  1. Default options
  2. Enable ImGui
  3. Settings / Options / Graphics / Graphical display options / fullscreen = no
  4. Save changes, close the game and load again
  5. Change the size of the window, to an arbitrary size
  6. Settings / ImGui Demo Screen
  7. Check the position relative to the window borders

Expected behavior

N/A

Screenshots

No response

Versions and configuration

cdda-windows-tiles-x64-2024-04-05-0445

Additional context

@katemonster33

katemonster33 commented 7 months ago

yeah the code to show the Demo UI exists within the ImGui sources and has a hard-coded screen position. We could probably rewrite it to center itself. Or maybe just to fill the entire screen (would probably be best for small screens and Android)

github-actions[bot] commented 6 months 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.

alef commented 2 months ago

@katemonster33 done something similar to your suggestion in #75905