LambdaInnovation / LambdaLib

Common library and utils behind LambdaInnovation mods
MIT License
13 stars 3 forks source link

CGUI: MultipleComponents? #8

Open WeAthFoLD opened 8 years ago

WeAthFoLD commented 8 years ago

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 commented 8 years ago

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

WeAthFoLD commented 8 years ago

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.