Skip to content

Add support for buttons in autosplitter settings - #949

Open
caeyo wants to merge 1 commit into
LiveSplit:masterfrom
caeyo:add-settings-buttons
Open

caeyo wants to merge 1 commit into
LiveSplit:masterfrom
caeyo:add-settings-buttons

Conversation

@caeyo

@caeyo caeyo commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

Adds a WidgetKind::Button and user_settings_add_button so autosplitters can have action buttons in the settings UI.

Hosts invoke clicks with invoke_settings_button(key).

The optional no-arg on_settings_button export should pull the key to match to a button via user_settings_get_button_key - this was intended to be the same buffer protocol as other implementations in this repo (like runtime_get_os). The alternative was for the host to write directly into guest memory to provide the key, but this added a fair amount of complexity that didn't align with existing patterns so I decided against it.

Related PRs to enable this functionality across the ecosystem:

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