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 controls for reflected List UI #152

Merged
merged 5 commits into from
Oct 10, 2023

Conversation

B-Reif
Copy link
Contributor

@B-Reif B-Reif commented Oct 4, 2023

This PR adds a set of buttons beneath each element in a reflected List to support adding a new element at that index, removing that element, and moving the element up or down. It also adds a label for the element's index.

image

image image image image

These controls are also supported in multi-edit:
image

Internally, this PR also adds functions for drawing these control button 'icons' (the +, -, and arrows). In the future I'd like to reuse these for other controls like hash map entries. It also abstracts some functions to share logic between single lists and multi-list editing.

@jakobhellermann
Copy link
Owner

nice, thanks a lot!

@jakobhellermann jakobhellermann merged commit 8bf0a63 into jakobhellermann:main Oct 10, 2023
1 check passed
@B-Reif B-Reif deleted the list-remove branch October 10, 2023 19:16
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.

2 participants