Repository navigation
add world edit and delete - #558
Merged
Merged
Conversation
Purdze
force-pushed
the
world-edit-delete
branch
from
September 14, 2026 20:14
3c35a26 to
42106de
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Screen::EditWorldandScreen::ConfirmDeleteWorld, both carrying a folder name, checked againstEditWorldScreen.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
ConfirmScreenbuilder 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.