Skip to content

Add the multiplayer save button dynamically - #87

Open
Belonit wants to merge 3 commits into
mainfrom
multiplayer-save-button
Open

Belonit wants to merge 3 commits into
mainfrom
multiplayer-save-button

Conversation

@Belonit

@Belonit Belonit commented Oct 4, 2026

Copy link
Copy Markdown
Member

Add the save button to the game's existing multiplayer pause menu instead of replacing the entire dialog resource. The button is created before the game initializes its UI, keeping the usual appearance and save behavior. Remove the old dialog resource and unused UI code.

  • Only add the button when the spawner is enabled with -SPAWN.
  • Add [Settings] ShowSaveGameButton in spawn.ini, defaulting to yes. Set it to no to skip adding the button and moving the abort button.
  • Keep an existing save button if another extension already provides one.

Not tested yet

@Belonit
Belonit marked this pull request as draft October 4, 2026 10:37
@github-actions

github-actions Bot commented Oct 4, 2026 •

Copy link
Copy Markdown

Nightly build for this pull request:

This comment is automatic and is meant to allow guests to get latest nightly builds for this pull request without registering. It is updated on every successful build.

@Metadorius Metadorius left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why?

@Belonit

Belonit commented Oct 4, 2026

Copy link
Copy Markdown
Member Author

why?

To add the save button without replacing the entire multiplayer options dialog resource.
This saves changes made by other mods

@Metadorius

Copy link
Copy Markdown
Member

what changes made by other mods, specifically? I do not know of any

@Belonit

Belonit commented Oct 4, 2026

Copy link
Copy Markdown
Member Author

what changes made by other mods, specifically? I do not know of any

I don’t have a specific example
The main reason is to avoid maintaining a copy of the entire dialog resource just to add one button
Allowing other changes to the resource is an additional benefit

@Belonit
Belonit marked this pull request as ready for review October 6, 2026 11:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants