diff --git a/editor/src/main/com/mbrlabs/mundus/editor/plugin/CellImpl.kt b/editor/src/main/com/mbrlabs/mundus/editor/plugin/CellImpl.kt index 8455ba576..303200364 100644 --- a/editor/src/main/com/mbrlabs/mundus/editor/plugin/CellImpl.kt +++ b/editor/src/main/com/mbrlabs/mundus/editor/plugin/CellImpl.kt @@ -28,4 +28,8 @@ open class CellImpl(private vararg val cells: com.badlogic.gdx.scenes.scene2d.ui return this } + + override fun delete() { + cells.forEach { it.actor.remove() } + } } diff --git a/plugin-api/src/com/mbrlabs/mundus/pluginapi/ui/Cell.java b/plugin-api/src/com/mbrlabs/mundus/pluginapi/ui/Cell.java index 9fa6896a3..1f20fbf20 100644 --- a/plugin-api/src/com/mbrlabs/mundus/pluginapi/ui/Cell.java +++ b/plugin-api/src/com/mbrlabs/mundus/pluginapi/ui/Cell.java @@ -7,4 +7,6 @@ public interface Cell { Cell setPad(float top, float right, float bottom, float left); Cell grow(); + + void delete(); }