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

Preferences window taller than the main window (and possibly other dialogs are too?) #470

Open
NQNStudios opened this issue Nov 18, 2024 · 6 comments
Labels
bug dialogxml Affects the dialog system

Comments

@NQNStudios
Copy link
Collaborator

With UI scaling in play, having some dialogs be taller than the main game window poses a problem because the player might get important buttons cut off at the bottom of the screen when they thought they found a scale that fit. I know for sure this happens on my screens at 1.5x with the preferences window. The intro dialog is taller than the main window, but not by much, it's probably fine. I can't think of any others.

(Maybe scenarios can make text dialogs bigger than the window? that would be more thorny to fix.)

I think the goal should be for dialogs to be smaller than the main window generally. For preferences, we could achieve this with pagination. There's also room to make minor adjustments in row spacing, and the display alignment widget has extra padding.

Screenshot 2024-11-18 at 11 49 40 AM
@CelticMinstrel
Copy link
Member

CelticMinstrel commented Nov 19, 2024

I guess it makes sense to make a guideline to constrain dialogues to be not too much larger than the main window. I don't really want to force them to be the same size or smaller, though. Maybe they should never be higher than the width of the main window?

and the display alignment widget has extra padding.

I think it would look really bad without that extra padding though, so I wouldn't support removing it.

@CelticMinstrel CelticMinstrel added bug dialogxml Affects the dialog system labels Nov 19, 2024
@NQNStudios NQNStudios changed the title Preferences window taller than the main window (and possibly other dialogs?) Preferences window taller than the main window (and possibly other dialogs are too?) Nov 19, 2024
@NQNStudios
Copy link
Collaborator Author

NQNStudios commented Nov 19, 2024

Something really diabolical we could do--since we can tell how big the player's monitor is through SFML--would be to detect dialogs that are bigger than the screen, and stuff the controls in a paginated stack programatically 😆

@CelticMinstrel
Copy link
Member

That really is very diabolical. I don't think I like it…

@NQNStudios
Copy link
Collaborator Author

NQNStudios commented Nov 24, 2024

It's very bad when scale gets set to a point where you can no longer see the scale buttons in the preferences (because it's then impossible to reverse this state). One way to fix this (which makes it less of a big deal if some things don't fit on the screen) is to move the scale buttons up under the screen position widget. Which actually makes a lot of sense, scale and positioning being next to each other and the various miscellaneous on/off toggles below that with nothing mission-critical underneath.

@NQNStudios
Copy link
Collaborator Author

If I put the scale options at the very top, I can recover from setting my scale all the way to 4 (which is enormously larger than my screen.)

@CelticMinstrel
Copy link
Member

CelticMinstrel commented Nov 25, 2024

A size that's enormously larger than your screen shouldn't even be offered as an option.

Also, it's always possible to reverse the state by manually editing or resetting the preferences file. Not that that's acceptable for a state someone got into by selecting an option in the UI though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug dialogxml Affects the dialog system
Projects
None yet
Development

No branches or pull requests

2 participants