raeleus / skin-composer

Create skins for LibGDX scene2d.ui with a graphical interface.
MIT License
427 stars 34 forks source link

[FEATURE] actor reparenting #134

Closed mgood7123 closed 6 months ago

mgood7123 commented 1 year ago

example (with a drag-able actor tree)

assume we have the following table

Group
> Table
 > Cell (0,0)
  > Image
 > Cell (0,1)
  > Text

we duplicate the table, prompting for a name as well

Group
> Table // duplicate to Table1
 > Cell (0,0)
  > Image
 > Cell (0,1)
  > Text
> Table1
 > Cell (0,0)
  > Image
 > Cell (0,1)
  > Text

we then restructure the original table and reparent the cloned table

Group
> Table
 > Cell (0,0)
  // add Stack and reparent Image to Stack
  > Stack
   > Image
   // select and delete Cell (0,1) and then drag Table1 to Stack to reparent it as a child
   > Table1
    > Cell (0,0)
     > Image
    > Cell (0,1)
     > Text

this avoids needing to erase the scene/widget/layout and re-create from scratch in order to restructure

raeleus commented 6 months ago

I'm assuming this is a feature request for Scene Composer. I'm not planning on adding any new features to Scene Composer. It's hard for me to maintain considering it takes me half a year to respond to issues. Sorry!