Skip to content

add world list screen - #556

Merged
Purdze merged 10 commits into
masterfrom
world-list-screen
Sep 14, 2026
Merged

Purdze merged 10 commits into
masterfrom
world-list-screen

Conversation

@Purdze

@Purdze Purdze commented Sep 10, 2026 •

Copy link
Copy Markdown
Collaborator

Screen::WorldList plus ui/menu/worlds.rs, checked against SelectWorldScreen and WorldSelectionList.

The scrollbar draw and the wheel clamp were private helpers in the friends screen, with a near copy open coded in the server list. They move into shared helpers along with the nine slice wrapper they depend on, rather than gaining a third copy. The server list's inline copy is left alone as a separate cleanup. The search box hint is shared with the resource pack screen the same way.

World geometry lives in the new module rather than growing the shared constant block, which is sized for the server list: row 270 against 305, header 49 against 33. Entry height 36 does match and is reused. The footer grid uses vanilla's 8 unit column spacing with the shared 4 between rows.

Row content is display name, then folder and short local date time, then the info line from LevelSummary.createInfo. A world that has never been opened shows the folder alone, as vanilla does for an unset timestamp. Hardcore renders red in place of the game mode. Hover dims the icon square only; selection outlines the whole row.

Search filters case insensitively on display name or folder. Selection keys on the folder name, not a row index, because filtering rebuilds rows every frame and an index would reselect a different world as you type.

Play and Re-Create ship disabled with tooltips. Tooltips do their own hit test, since the shared button helper folds the enabled flag into its return value.

Enables Singleplayer on both title screens. Empty saves show a plain empty list here; jumping straight to the create screen lands with that screen.

@Purdze
Purdze added this pull request to stack #559 September 10, 2026 21:29
@github-actions github-actions Bot added the merge conflict Conflicts with the base branch and needs a merge label Sep 14, 2026
Base automatically changed from world-storage to master September 14, 2026 19:47
@github-actions github-actions Bot removed the merge conflict Conflicts with the base branch and needs a merge label Sep 14, 2026
@Purdze
Purdze merged commit 4c47567 into master Sep 14, 2026
10 checks passed
@Purdze
Purdze deleted the world-list-screen branch September 14, 2026 20:14
@Purdze Purdze mentioned this pull request Oct 25, 2026
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.

1 participant