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 events for widget is mounted and unmounted from UI tree #1955

Open
eruvanos opened this issue Jan 16, 2024 · 0 comments
Open

Add events for widget is mounted and unmounted from UI tree #1955

eruvanos opened this issue Jan 16, 2024 · 0 comments
Assignees
Labels
enhancement gui Related to arcade GUI (sub module arcade.gui)
Milestone

Comments

@eruvanos
Copy link
Member

Enhancement request:

What should be added/changed?

Widgets should be able to know, when they are added or removed to the ui.

What would it help with?

This would be useful for widgets like UIDropdown or any other widget, that requires access to the UIManager

Options

I see two options in general:

A) widgets receive these events if they are mounted or removed to the uimanager itself or any of a connected child.
B) widgets receive these events if they are added or removed to any parent (this would not provide the requested improvements I think)

@eruvanos eruvanos self-assigned this Jan 16, 2024
@eruvanos eruvanos added enhancement gui Related to arcade GUI (sub module arcade.gui) labels Jan 16, 2024
@eruvanos eruvanos added this to the Future milestone Feb 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement gui Related to arcade GUI (sub module arcade.gui)
Projects
Status: Todo
Development

No branches or pull requests

1 participant