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

CGUI: MultipleComponents? #8

Open
WeAthFoLD opened this issue Dec 7, 2015 · 2 comments
Open

CGUI: MultipleComponents? #8

WeAthFoLD opened this issue Dec 7, 2015 · 2 comments

Comments

@WeAthFoLD
Copy link
Member

It's possibly nature to add multiple components of same name to one Widget, with different settings. This can be done by adding a child widget and attach the same Component to it but it's too tedious. Requires further checking.

@WeAthFoLD
Copy link
Member Author

UPDATE
Solution: For all component, add a constructor that takes a String as its custom id.

@WeAthFoLD
Copy link
Member Author

I guess it's more approriate to not use String AT ALL and use reference by class. That means that one Widget can hold more than 1 components of same type. That would be compact-breaking but worth the time anyways.

@WeAthFoLD WeAthFoLD reopened this May 10, 2016
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

1 participant