PhaserEditor2D-v3 icon indicating copy to clipboard operation
PhaserEditor2D-v3 copied to clipboard

LayoutContainer support

Open PhaserEditor2D opened this issue 2 years ago • 2 comments

Implement a LayoutContainer game object for laying out the children.

Some ideas until now:

  • A LayoutContainer has a size.
  • A LayoutContainer has a LayoutManager (BorderLayout, AnchorLayout, CardLayout, ColumnLayout, RowLayout, ...).
  • Each child of a LayoutContainer may have a LayoutData related to the LayoutManager of the parent.
  • The layout managers can be plugged into the editor.

PhaserEditor2D avatar Feb 09 '23 09:02 PhaserEditor2D

if you intend to implement this, there might be a reference editor https://fairygui.com which I used extensively in other projects. It come with custom list/flexible layout/state management/timeline for animation etc.

Caveat: some of the implementations are expensive, might be better to separate them as plugins

davyzhang avatar Jul 16 '23 02:07 davyzhang

Thanks @davyzhang. I will take a look. I think I someone mentioned this tool some time ago.

PhaserEditor2D avatar Jul 16 '23 08:07 PhaserEditor2D