PurpleKingdomGames/roguelike-starterkit

ComponentGroup: Changing the Layout / Bounds has no effect

Closed this issue · 1 comments

Lots of good intentions in this class. You can add components and modify the layout and bounds.

Unfortunately, the layout / bounds are only applied during the add process while making the component entries, so changing those values on the fly has no effect.

Two ways forward perhaps:

  1. Reapply on update, possibly using a hashcode or something to decide if a new layout needs to be applied thus avoiding unnecessary updates
  2. An a method like reLayout that the user's can call to apply all the changes.

cc @hobnob

Technically this is done, however it needs the work in #70 to make it really useful.