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

Unified API to make UI components draggable #401

Open
Nibba2018 opened this issue Mar 29, 2021 · 1 comment
Open

Unified API to make UI components draggable #401

Nibba2018 opened this issue Mar 29, 2021 · 1 comment
Assignees

Comments

@Nibba2018
Copy link
Member

Many UI components such as Panel2D, ComboBox2D, TabUI etc implement boiler plate code to make themselves draggable. It would be helpful and cleaner to have a separate common method, preferably part of the base UI class to replace the said boiler plate code.

Describe the solution you'd like
A common UI method that helps replace the boiler plate code for making UI components draggable.

Additional context
Here's one such implementation for ComboBox2D. A similar implementation is done for TabUI as well.

@skoudoro
Copy link
Contributor

I agree, I think this is part of creating a layout system.

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

No branches or pull requests

3 participants