Skip to content

feat: the mods screens show more rows and longer lines on a large window - #1666

Open
zabka14 wants to merge 1 commit into
OpenReliant:mainfrom
zabka14:feat/larger-mods-screen
Open

zabka14 wants to merge 1 commit into
OpenReliant:mainfrom
zabka14:feat/larger-mods-screen

Conversation

@zabka14

@zabka14 zabka14 commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

On a large window, the mods screen, GET MODS and GAME MODES keep their frames where they are on the background, but draw what the frames hold smaller, as the server browser does. In a 1920 by 1080 window the list shows 13 rows instead of 9, and the panel fits longer lines: a mod's full name and version, and longer descriptions. The title and the settings screen's buttons keep their size. A 640 by 480 window looks as before.

  • mod_manager.Layout holds the frames, rows, arrows, panel lines, thumbnail box and buttons for a window, at the server browser's share (connection/layout.zig, now shareFor). Layout.backdrop is the full size layout, the screen's own constants.
  • The three screens take the window's size in their context, find the pointer on the smaller canvas for everything inside the frames, and fit the list's rows when the window changes.
  • Tests check that the full size layout is unchanged, that the frames stay in place to a pixel at 1920 by 1080, that the pointer finds a row where it is drawn, and that the list keeps its place when the window grows or shrinks.

Closes #1665

The mods screen, GET MODS and GAME MODES drew everything on the 640 by 480
canvas scaled to the window, so a large window only made the text bigger:
nine rows, and descriptions and long names cut short. Like the server
browser, their frames now stay where they are on the background while what
they hold is drawn smaller, so a 1920 by 1080 window shows 13 rows and the
panel fits longer lines. The title and the settings screen's buttons keep
their size.

Closes OpenReliant#1665
@zabka14

zabka14 commented Dec 2, 2026

Copy link
Copy Markdown
Contributor Author

Merge order: this pull request should be merged before #1664. Both change mod_catalogue.zig, and #1664 will be rebased on this one once it is merged.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Mods screens show more rows and longer lines on a large window

1 participant