Skip to content

feat(sml): create an extended UserSetting integer ValueSelector#394

Open
RebeccaStevens wants to merge 1 commit into
satisfactorymodding:masterfrom
RebeccaStevens:enum-value-selector
Open

feat(sml): create an extended UserSetting integer ValueSelector#394
RebeccaStevens wants to merge 1 commit into
satisfactorymodding:masterfrom
RebeccaStevens:enum-value-selector

Conversation

@RebeccaStevens

@RebeccaStevens RebeccaStevens commented Oct 24, 2025

Copy link
Copy Markdown

The new USMLIntValueSelector extends the existing UFGUserSetting_IntSelector adding the ability for users to specify an enum to auto populate the values.

The new properties added only exist in the editor so there is minimal overhead and places for things to go wrong.

Known issue: If the enum is edited after being assigned to the selector, the values in the selector will not automatically update with the enum's new values.

Possible alternative: These changes could be put directly into the base UFGUserSetting_IntSelector class instead of a new class that extends it.

The new `USMLIntValueSelector` extends the existing `UFGUserSetting_IntSelector` adding the ability
for users to specify an enum to auto populate the values.
@budak7273

Copy link
Copy Markdown
Member

Delayed till after 3.12 since Mircea wants to investigate an asset action enum autofill selector approach instead of the subclass approach

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

2 participants