Skip to content

Add support for buttons in autosplitter settings - #137

Open
caeyo wants to merge 2 commits into
LiveSplit:masterfrom
caeyo:add-settings-buttons
Open

Add support for buttons in autosplitter settings#137
caeyo wants to merge 2 commits into
LiveSplit:masterfrom
caeyo:add-settings-buttons

Conversation

@caeyo

@caeyo caeyo commented Aug 14, 2026

Copy link
Copy Markdown

Implements support for buttons to be added by LiveSplit/livesplit-core#949.

  • Adds export_settings_buttons!() so authors opt in to the on_settings_button export (pulls the key, then dispatches)
  • Adds settings::gui::add_button(key, description, on_click) to register a host button and a guest handler in one call
  • Adds #[derive(Gui)] support for Button fields with #[button(on_click = ...)]

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