Skip to content

Add the multiplayer save button dynamically - #87

Merged
Belonit merged 1 commit into
mainfrom
multiplayer-save-button
Oct 12, 2026
Merged

Belonit merged 1 commit 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.

  • Add [Settings] ShowMPSaveGameButton 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.
  • Match the existing button size and spacing, placing save after game controls and moving abort down only after the save button is successfully created.

@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
@Belonit
Belonit force-pushed the multiplayer-save-button branch from f05accf to 7496c8e Compare October 12, 2026 06:51
@Belonit
Belonit force-pushed the multiplayer-save-button branch from 7496c8e to c208d21 Compare October 12, 2026 07:58
@Belonit
Belonit merged commit 7e91b7e into main Oct 12, 2026
3 checks passed
@Belonit
Belonit deleted the multiplayer-save-button branch October 12, 2026 07:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants