[Editor] Reorganize main menu bar
This commit is contained in:
@@ -10,51 +10,44 @@ class MainMenuView : View() {
|
|||||||
|
|
||||||
override val root = menubar {
|
override val root = menubar {
|
||||||
menu("File") {
|
menu("File") {
|
||||||
menu("New") {
|
item("New project...") {
|
||||||
item("Project...") {
|
action {
|
||||||
action {
|
mainController.createEmptyProject()
|
||||||
mainController.createEmptyProject()
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
item("Open project...") {
|
||||||
|
action {
|
||||||
|
mainController.openProject()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
menu("Project") {
|
||||||
|
enableWhen(projectContext.projectProperty.isNotNull)
|
||||||
|
|
||||||
|
menu("Create") {
|
||||||
item("Map...") {
|
item("Map...") {
|
||||||
enableWhen(projectContext.projectProperty.isNotNull)
|
|
||||||
action {
|
action {
|
||||||
mainController.createEmptyMap()
|
mainController.createEmptyMap()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
menu("Open") {
|
menu("Import") {
|
||||||
item("Project...") {
|
item("Tile Set...") {
|
||||||
action {
|
action {
|
||||||
mainController.openProject()
|
mainController.importTileSet()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
item("Image...") {
|
||||||
|
action {
|
||||||
|
mainController.importImage()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
menu("Project") {
|
|
||||||
item("Import Tile Set...") {
|
|
||||||
enableWhen(projectContext.projectProperty.isNotNull)
|
|
||||||
|
|
||||||
action {
|
|
||||||
mainController.importTileSet()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
item("Import Image...") {
|
|
||||||
enableWhen(projectContext.projectProperty.isNotNull)
|
|
||||||
|
|
||||||
action {
|
|
||||||
mainController.importImage()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
menu("Edit") {
|
|
||||||
item("Undo")
|
|
||||||
item("Redo")
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user