Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add CustomPropertyUI #385

Merged
merged 5 commits into from
Aug 3, 2021
Merged

Add CustomPropertyUI #385

merged 5 commits into from
Aug 3, 2021

Conversation

skalarproduktraum
Copy link
Member

This PR adds the CustomPropertyUI class in order to enable Commands to add their own UI items to the property inspector.

Custom UI based on a Command's inputs can be added e.g. as (taken from GameOfLife3D)

node.metadata["sciview-inspector"] = CustomPropertyUI(
                this,
                listOf(
                    "starvation",
                    "suffocation",
                    "birth",
                    "connectedness",
                    "playSpeed",
                    "play",
                    "pause"
                )
            )

The result then is the following:
image

@skalarproduktraum skalarproduktraum added enhancement ui This issue contains a UI problem. labels Jun 23, 2021
@skalarproduktraum
Copy link
Member Author

@RuoshanLan Do you have any additional requests for this one? I'd otherwise merge it 👍

@RuoshanLan
Copy link

RuoshanLan commented Jul 29, 2021

@skalarproduktraum Currently not, please merge it, thanks! 👍

@skalarproduktraum skalarproduktraum merged commit a82d4d8 into master Aug 3, 2021
@skalarproduktraum skalarproduktraum deleted the custom-property-ui branch August 3, 2021 11:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement ui This issue contains a UI problem.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants