Add delete button to the map editor

(cherry picked from commit f820adab51734020600d9758c4b78a1f6585b133)
This commit is contained in:
Gustas
2024-12-20 18:16:53 +02:00
committed by Pavel Penev
parent 0566b6f787
commit c561509c82
7 changed files with 149 additions and 9 deletions

View File

@@ -634,7 +634,7 @@ Container@EDITOR_WORLD_ROOT:
Height: 25
Font: Bold
Align: Left
Text: label-copy-filters
Text: label-selection-filters
Checkbox@COPY_FILTER_TERRAIN_CHECKBOX:
X: 7
Y: 70
@@ -688,6 +688,13 @@ Container@EDITOR_WORLD_ROOT:
Width: 55
Height: 22
Align: Left
Button@SELECTION_DELETE_BUTTON:
X: 7
Y: 222
Width: 75
Height: 25
Text: button-delete-area.label
Font: Bold
Button@SELECTION_CANCEL_BUTTON:
X: 208
Y: 222

View File

@@ -66,7 +66,7 @@ label-area-selection = Area Selection
label-area-info = Area Info
label-selected-area-diagonal = Diagonal:
label-selected-area-resources = Resources:
label-copy-filters = Copy Filters
label-selection-filters = Filters
label-filter-terrain = Terrain
label-filter-resources = Resources
label-filter-actors = Actors
@@ -85,6 +85,9 @@ button-map-editor-tab-container-actors-tooltip = Actors
button-map-editor-tab-container-tools-tooltip = Tools
button-map-editor-tab-container-history-tooltip = History
button-delete-area =
.label = Delete
button-editor-world-root-copy =
.label = Copy
.tooltip = Copy the selected area

View File

@@ -600,7 +600,7 @@ Container@EDITOR_WORLD_ROOT:
Height: 25
Font: Bold
Align: Left
Text: label-copy-filters
Text: label-selection-filters
Checkbox@COPY_FILTER_TERRAIN_CHECKBOX:
X: 5
Y: 70
@@ -654,6 +654,13 @@ Container@EDITOR_WORLD_ROOT:
Width: 55
Height: 22
Align: Left
Button@SELECTION_DELETE_BUTTON:
X: 5
Y: 222
Width: 75
Height: 25
Text: button-delete-area.label
Font: Bold
Button@SELECTION_CANCEL_BUTTON:
X: 208
Y: 222

View File

@@ -62,7 +62,7 @@ label-area-selection = Area Selection
label-area-info = Area Info
label-selected-area-diagonal = Diagonal:
label-selected-area-resources = Resources:
label-copy-filters = Copy Filters
label-selection-filters = Filters
label-filter-terrain = Terrain
label-filter-resources = Resources
label-filter-actors = Actors
@@ -81,6 +81,9 @@ button-map-editor-tab-container-actors-tooltip = Actors
button-map-editor-tab-container-tools-tooltip = Tools
button-map-editor-tab-container-history-tooltip = History
button-delete-area =
.label = Delete
button-editor-world-root-options =
.label = Menu
.tooltip = Menu

View File

@@ -804,6 +804,7 @@ notification-copied-tiles =
## EditorDefaultBrush
notification-selected-area = Selected area { $x },{ $y } ({ $width },{ $height })
notification-removed-area = Removed area { $x },{ $y } ({ $width },{ $height })
notification-selected-actor = Selected actor { $id }
notification-cleared-selection = Cleared selection
notification-removed-actor = Removed { $name } ({ $id })