Skip to content

add world edit and delete - #558

Merged
Purdze merged 4 commits into
masterfrom
world-edit-delete
Sep 14, 2026
Merged

Purdze merged 4 commits into
masterfrom
world-edit-delete

Conversation

@Purdze

@Purdze Purdze commented Sep 10, 2026 •

Copy link
Copy Markdown
Collaborator

Screen::EditWorld and Screen::ConfirmDeleteWorld, both carrying a folder name, checked against EditWorldScreen.

The server screens destructure an index straight out of the screen field, which works because an index is Copy. A folder name is not, so both builders match on a reference and clone, the way the disconnect screen already does.

Edit World is laid out as vanilla's centred column: 5 between every element, 20-unit spacers above the name label and above the Save row, title at 15. Rename rewrites the sidecar display name and leaves the directory alone, which is why name and folder are separate fields. Save is inactive while the name is blank, and Enter saves while the field is focused. The create screen's name field is reused, so it is seeded on entry and gets a focus target arm.

The delete confirm is a shared ConfirmScreen builder in helpers, now used by the server list too, so both show vanilla's centred question and warning with Delete and Cancel side by side.

Open world folder is live and follows the resource pack button, a detached spawn with no error surfaced.

Make backup and open backups folder ship disabled with tooltips. Optimize ships permanently disabled, since it is a data fixer pass over Anvil chunks and the save format here has no upgrader or data version. Reset icon keeps its own file exists condition rather than a tooltip, so it starts working on its own once icons land.

Delete runs inline. A world is one small file until a server writes terrain into it, and there is no thread plus completion signal pattern in the menu to copy. TODO left for the layer that makes worlds large.

Both operations log failures. The toast system lives on the in-game state and the menu never pumps it, so there is nothing to raise; the create path already logs the same way.

@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 create-world-screen to master September 14, 2026 20:40
@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 8d0e8cf into master Sep 14, 2026
10 checks passed
@Purdze
Purdze deleted the world-edit-delete branch September 14, 2026 20:56
@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