Skip to content

Commit

Permalink
Delete on plugin Cell
Browse files Browse the repository at this point in the history
  • Loading branch information
Dgzt committed Jul 29, 2024
1 parent c02d334 commit 29cef6d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions editor/src/main/com/mbrlabs/mundus/editor/plugin/CellImpl.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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() }
}
}
2 changes: 2 additions & 0 deletions plugin-api/src/com/mbrlabs/mundus/pluginapi/ui/Cell.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,6 @@ public interface Cell {
Cell setPad(float top, float right, float bottom, float left);

Cell grow();

void delete();
}

0 comments on commit 29cef6d

Please sign in to comment.