Skip to content

Add flags editor#1993

Merged
colinator27 merged 1 commit intoUnderminersTeam:masterfrom
luizzeroxis:flags-editor
Jan 20, 2025
Merged

Add flags editor#1993
colinator27 merged 1 commit intoUnderminersTeam:masterfrom
luizzeroxis:flags-editor

Conversation

@luizzeroxis
Copy link
Copy Markdown
Contributor

Description

Added a FlagsBox that display all possible flag values of a field as checkboxes. They are hidden in an Expander initially to not create clutter. The TextBox, as it existed before, is still there, so the old method of changing flags still works. If there's unrecognized flags, it'll display the number, and the checkboxes won't override it, simply adding or removing flags normally.

The FlagsBox was added to general info, the sound editor and the room editor.

Example:

image

Caveats

Alright, the Expander is a bit a ugly. But what isn't ugly in this, huh? I tried a ComboBox design, but modifying these built in controls is complicated.

Notes

Fixes #75.

@github-actions
Copy link
Copy Markdown

Copy link
Copy Markdown
Member

@colinator27 colinator27 left a comment

Choose a reason for hiding this comment

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

Tested locally and looks good!

@colinator27 colinator27 merged commit 38933d1 into UnderminersTeam:master Jan 20, 2025
@luizzeroxis luizzeroxis deleted the flags-editor branch March 19, 2025 21:56
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.

A better editor for the flag fields

2 participants