vchelaru / Gum

Flexible layout tool for creating UI on any platform
http://gumui.net/
MIT License
134 stars 27 forks source link

Copying instance defined in base should paste in the derived with variables copied from the base. #139

Closed vchelaru closed 8 months ago

vchelaru commented 8 months ago
  1. Create BaseComponent
  2. Add a ColoredRectangle to BaseComponent
  3. Move the ColoredRectangle around and change its color
  4. Create DerivedComponent which inherits from BaseComponent
  5. Select DerivedComponent's ColoredRectangleInstance (the one defined in BaseComponent)
  6. Copy/paste

Observe - the values set in BaseComponent on ColoredRectangleInstance do not apply to the newly-created rectangle instance in derived Expected - the values set on base should show up in derived.

Additional info:

The copied state should include any variables set on the current instances in any base elements.