-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Larger world creation menu UI and options menu UI #35157
Larger world creation menu UI and options menu UI #35157
Conversation
|
Yeah, I noticed the error too. How am I to resolve it? |
I'd suggest a width cap like other menus do, because having everything crammed to the left looks very ugly, especially on resolutions > 1080p. |
What other menus are you talking about? |
I think the crafting menu does some % width thing, would have to double check later. |
Many of the in-game menus: |
Ok, it seems I managed to make world creation menu and options menu larger and centered. Now it's the "undeclared use" of |
The prototype is inside a ifdef |
Well, this redrawing should be available for curses builds too. |
Windows curses uses SDL for its redering so it's fine there. There are only two options really:
|
Well, I can set a minimum horizontal size, but I'd prefer discard supporting that small resolution. Even the background theme on your pic with this resolution is distorted. |
So, the minimum would have to be 160. Until that's the case this PR is on ice I guess. PS: Didn't the Issue with the discussion on minimum screen resolution got stale closed?! |
Yes, it was. |
Summary
SUMMARY: Interface "Larger world creation menu UI and options UI"
Purpose of change
Make use of modern display resolution for world creation menu UI and options menu UI.
Information in world creation menu UI is very densely condensed, to the point of long mods name or long mods descriptions doesn't fit in the interface. This is because of hopelessly outdated 80x24 terminal size it was created for. So I decided to use all available free space.
Also I had to make options menu UI larger too as World Options tab is shown in the world creation menu.
Describe the solution
FULL_SCREEN_HEIGHT
andFULL_SCREEN_WIDTH
toTERMY
andTERMX
respectively for world creation menu UI and options menu UI;handle_redraw
function to get rid of graphical artifacts on main menu screen after exiting from world creation menu or options menu.Describe alternatives you've considered
None.
Testing
Started game, opened options menu directly, opened world creation menu, checked for world options, returned to main menu, checked if all is ok.
Additional context
World creation menu before:
![234](https://user-images.githubusercontent.com/11132525/67834137-10af3380-fb00-11e9-979b-140c01ee4509.png)
Options menu before: long names don't fit
![678](https://user-images.githubusercontent.com/11132525/67834180-2e7c9880-fb00-11e9-9694-f08a0fb57125.png)
World creation menu after: World Mods tab
![изображение](https://user-images.githubusercontent.com/11132525/67854491-e07c8a80-fb29-11e9-85c0-457b2584fe9b.png)
World creation menu after: World Options tab
![изображение](https://user-images.githubusercontent.com/11132525/67849698-76abb300-fb20-11e9-9166-5ebdd09c94b3.png)
World creation menu after: Finalize World tab
![изображение](https://user-images.githubusercontent.com/11132525/67854422-bb881780-fb29-11e9-9fb5-a323e99d119b.png)
Options menu after:
![изображение](https://user-images.githubusercontent.com/11132525/67841657-07c75d80-fb12-11e9-92c9-728a89e7d68a.png)