Fix editor area/actor deselection bugs

This commit is contained in:
David Wilson
2024-01-27 14:58:51 +10:00
committed by Gustas
parent 0c22499534
commit d630a6ef7d
30 changed files with 503 additions and 443 deletions

View File

@@ -753,6 +753,9 @@ chrome-radar-gdi:
editor:
Inherits: ^Chrome
Regions:
select: 802, 170, 16, 16
tiles: 768, 170, 16, 16
overlays: 785, 170, 16, 16
actors: 802, 68, 16, 16
tools: 904, 68, 16, 16
history: 904, 51, 16, 16

View File

@@ -506,7 +506,7 @@ Container@EDITOR_WORLD_ROOT:
Label@AREA_EDIT_TITLE:
X: 6
Y: 7
Width: 265
Width: 278
Height: 24
Align: Center
Font: Bold
@@ -539,71 +539,43 @@ Container@EDITOR_WORLD_ROOT:
Text: label-filter-actors
Label@AREA_INFO_TITLE:
X: 15
Y: 150
Y: 139
Width: 281
Height: 24
Align: Center
Font: Bold
Text: label-area-info
Label@REGION_LABEL:
X: 15
Y: 175
Label@DIAGONAL_LABEL:
X: 6
Y: 171
Width: 55
Height: 20
Font: Bold
Align: Left
Text: label-selected-area-selected-region
Label@DIMENSION_LABEL:
X: 15
Y: 200
Width: 55
Height: 25
Font: Bold
Align: Left
Text: label-selected-area-dimension
Label@DIAGONAL_LABEL:
X: 15
Y: 225
Width: 55
Height: 25
Font: Bold
Align: Left
Text: label-selected-area-diagonal
Label@RESOURCE_LABEL:
X: 15
Y: 250
X: 6
Y: 193
Width: 55
Height: 25
Font: Bold
Align: Left
Text: label-selected-area-resources
Label@REGION_COUNTER_LABEL:
X: 150
Y: 175
Width: 55
Height: 22
Align: Left
Label@DIMENSION_COUNTER_LABEL:
X: 150
Y: 200
Width: 55
Height: 22
Align: Left
Label@DIAGONAL_COUNTER_LABEL:
X: 150
Y: 225
Y: 170
Width: 55
Height: 22
Align: Left
Label@RESOURCES_COUNTER_LABEL:
X: 150
Y: 250
Y: 195
Width: 55
Height: 22
Align: Left
Button@SELECTION_CANCEL_BUTTON:
X: 107
Y: 275
X: 211
Y: 222
Width: 75
Height: 25
Text: button-selection-cancel
@@ -618,7 +590,7 @@ Container@EDITOR_WORLD_ROOT:
Label@ACTOR_TYPE_LABEL:
X: 6
Y: 2
Width: 265
Width: 278
Height: 24
Align: Center
Font: Bold
@@ -720,8 +692,22 @@ Container@EDITOR_WORLD_ROOT:
Height: 25
ClickThrough: false
Children:
Button@SELECT_TAB:
Width: 49
Height: 25
Key: EditorSelectTab
TooltipTemplate: BUTTON_TOOLTIP
TooltipText: button-map-editor-tab-container-select.tooltip
TooltipContainer: TOOLTIP_CONTAINER
Children:
Image@ICON:
X: 20
Y: 5
ImageCollection: editor
ImageName: select
Button@TILES_TAB:
Width: 59
X: 49
Width: 48
Height: 25
Key: EditorTilesTab
TooltipTemplate: BUTTON_TOOLTIP
@@ -729,13 +715,13 @@ Container@EDITOR_WORLD_ROOT:
TooltipContainer: TOOLTIP_CONTAINER
Children:
Image@ICON:
X: 21
X: 16
Y: 5
ImageCollection: editor
ImageName: tiles
Button@OVERLAYS_TAB:
X: 58
Width: 59
X: 97
Width: 48
Height: 25
Key: EditorOverlaysTab
TooltipTemplate: BUTTON_TOOLTIP
@@ -743,13 +729,13 @@ Container@EDITOR_WORLD_ROOT:
TooltipContainer: TOOLTIP_CONTAINER
Children:
Image@ICON:
X: 21
X: 16
Y: 5
ImageCollection: editor
ImageName: overlays
Button@ACTORS_TAB:
X: 116
Width: 58
X: 145
Width: 48
Height: 25
Key: EditorActorsTab
TooltipTemplate: BUTTON_TOOLTIP
@@ -757,13 +743,13 @@ Container@EDITOR_WORLD_ROOT:
TooltipContainer: TOOLTIP_CONTAINER
Children:
Image@ICON:
X: 21
X: 16
Y: 5
ImageCollection: production-icons
ImageName: infantry
ImageCollection: editor
ImageName: actors
Button@TOOLS_TAB:
X: 173
Width: 59
X: 193
Width: 48
Height: 25
Key: EditorToolsTab
TooltipTemplate: BUTTON_TOOLTIP
@@ -771,13 +757,13 @@ Container@EDITOR_WORLD_ROOT:
TooltipContainer: TOOLTIP_CONTAINER
Children:
Image@ICON:
X: 21
X: 16
Y: 5
ImageCollection: editor
ImageName: tools
Button@HISTORY_TAB:
X: 231
Width: 59
X: 241
Width: 49
Height: 25
Key: EditorHistoryTab
TooltipTemplate: BUTTON_TOOLTIP
@@ -785,10 +771,10 @@ Container@EDITOR_WORLD_ROOT:
TooltipContainer: TOOLTIP_CONTAINER
Children:
Image@ICON:
X: 21
X: 16
Y: 5
ImageCollection: sidebar-bits
ImageName: production-tooltip-time
ImageCollection: editor
ImageName: history
Button@UNDO_BUTTON:
X: WINDOW_RIGHT - 764
Y: 5

View File

@@ -74,8 +74,6 @@ label-actors-bg-categories = Filter:
label-actors-bg-owners = Owner:
label-area-selection = Area Selection
label-area-info = Area Info
label-selected-area-selected-region = Region:
label-selected-area-dimension = Dimensions:
label-selected-area-diagonal = Diagonal:
label-selected-area-resources= Resources:
label-copy-filters = Copy Filters
@@ -86,6 +84,9 @@ button-selection-cancel = Cancel
label-show-tile-grid = Show Tile Grid
label-show-buildable-area = Show Buildable Area
button-map-editor-tab-container-select =
.tooltip = Select
button-map-editor-tab-container-tiles =
.tooltip = Tiles

Binary file not shown.

Before

Width:  |  Height:  |  Size: 464 KiB

After

Width:  |  Height:  |  Size: 406 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 853 KiB

After

Width:  |  Height:  |  Size: 1017 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 178 KiB

After

Width:  |  Height:  |  Size: 166 KiB

View File

@@ -448,9 +448,9 @@ Container@EDITOR_WORLD_ROOT:
Height: WINDOW_BOTTOM - 458
Children:
Label@AREA_EDIT_TITLE:
X: 15
X: 6
Y: 16
Width: 281
Width: 298
Height: 24
Align: Center
Font: Bold
@@ -482,72 +482,44 @@ Container@EDITOR_WORLD_ROOT:
Height: 20
Text: label-filter-actors
Label@AREA_INFO_TITLE:
X: 15
Y: 150
Width: 281
X: 6
Y: 139
Width: 298
Height: 24
Align: Center
Font: Bold
Text: label-area-info
Label@REGION_LABEL:
X: 15
Y: 175
Width: 55
Height: 20
Font: Bold
Align: Left
Text: label-selected-area-selected-region
Label@DIMENSION_LABEL:
X: 15
Y: 200
Width: 55
Height: 25
Font: Bold
Align: Left
Text: label-selected-area-dimension
Label@DIAGONAL_LABEL:
X: 15
Y: 225
Y: 171
Width: 55
Height: 25
Height: 20
Font: Bold
Align: Left
Text: label-selected-area-diagonal
Label@RESOURCE_LABEL:
X: 15
Y: 250
Y: 193
Width: 55
Height: 25
Font: Bold
Align: Left
Text: label-selected-area-resources
Label@REGION_COUNTER_LABEL:
X: 150
Y: 175
Width: 55
Height: 22
Align: Left
Label@DIMENSION_COUNTER_LABEL:
X: 150
Y: 200
Width: 55
Height: 22
Align: Left
Label@DIAGONAL_COUNTER_LABEL:
X: 150
Y: 225
Y: 170
Width: 55
Height: 22
Align: Left
Label@RESOURCES_COUNTER_LABEL:
X: 150
Y: 250
Y: 195
Width: 55
Height: 22
Align: Left
Button@SELECTION_CANCEL_BUTTON:
X: 117
Y: 275
X: 222
Y: 222
Width: 75
Height: 25
Text: button-selection-cancel
@@ -660,9 +632,23 @@ Container@EDITOR_WORLD_ROOT:
Width: 292
Height: 25
Children:
Button@TILES_TAB:
Button@SELECT_TAB:
X: 0
Width: 58
Width: 49
Height: 25
Key: EditorSelectTab
TooltipTemplate: BUTTON_TOOLTIP
TooltipText: button-map-editor-tab-container-select.tooltip
TooltipContainer: TOOLTIP_CONTAINER
Children:
Image@ICON:
X: 20
Y: 5
ImageCollection: editor
ImageName: select
Button@TILES_TAB:
X: 49
Width: 49
Height: 25
Key: EditorTilesTab
TooltipTemplate: BUTTON_TOOLTIP
@@ -670,13 +656,13 @@ Container@EDITOR_WORLD_ROOT:
TooltipContainer: TOOLTIP_CONTAINER
Children:
Image@ICON:
X: 21
X: 17
Y: 5
ImageCollection: editor
ImageName: tiles
Button@OVERLAYS_TAB:
X: 58
Width: 58
X: 98
Width: 49
Height: 25
Key: EditorOverlaysTab
TooltipTemplate: BUTTON_TOOLTIP
@@ -684,13 +670,13 @@ Container@EDITOR_WORLD_ROOT:
TooltipContainer: TOOLTIP_CONTAINER
Children:
Image@ICON:
X: 21
X: 17
Y: 5
ImageCollection: editor
ImageName: overlays
Button@ACTORS_TAB:
X: 116
Width: 59
X: 147
Width: 48
Height: 25
Key: EditorActorsTab
TooltipTemplate: BUTTON_TOOLTIP
@@ -698,13 +684,13 @@ Container@EDITOR_WORLD_ROOT:
TooltipContainer: TOOLTIP_CONTAINER
Children:
Image@ICON:
X: 21
X: 16
Y: 5
ImageCollection: production-icons
ImageName: infantry
ImageCollection: editor
ImageName: actors
Button@TOOLS_TAB:
X: 175
Width: 58
X: 195
Width: 48
Height: 25
Key: EditorToolsTab
TooltipTemplate: BUTTON_TOOLTIP
@@ -712,13 +698,13 @@ Container@EDITOR_WORLD_ROOT:
TooltipContainer: TOOLTIP_CONTAINER
Children:
Image@ICON:
X: 21
X: 16
Y: 5
ImageCollection: editor
ImageName: tools
Button@HISTORY_TAB:
X: 233
Width: 58
X: 243
Width: 49
Height: 25
Key: EditorHistoryTab
TooltipTemplate: BUTTON_TOOLTIP
@@ -726,10 +712,10 @@ Container@EDITOR_WORLD_ROOT:
TooltipContainer: TOOLTIP_CONTAINER
Children:
Image@ICON:
X: 21
X: 17
Y: 5
ImageCollection: sidebar-bits
ImageName: production-tooltip-time
ImageCollection: editor
ImageName: history
MenuButton@OPTIONS_BUTTON:
Logic: MenuButtonsChromeLogic
MenuContainer: INGAME_MENU

View File

@@ -34,32 +34,37 @@ EditorPaste: V Ctrl
Platform:
OSX: V Meta
EditorTilesTab: E
EditorSelectTab: E
Description: Select Tab
Types: Editor
Contexts: Editor
EditorTilesTab: R
Description: Tiles Tab
Types: Editor
Contexts: Editor
EditorOverlaysTab: R
EditorOverlaysTab: T
Description: Overlays Tab
Types: Editor
Contexts: Editor
EditorActorsTab: T
EditorActorsTab: Y
Description: Actors Tab
Types: Editor
Contexts: Editor
EditorToolsTab: Y
EditorToolsTab: U
Description: Tools Tab
Types: Editor
Contexts: Editor
EditorHistoryTab: U
EditorHistoryTab: I
Description: History Tab
Types: Editor
Contexts: Editor
EditorSettingsTab: I
EditorSettingsTab: O
Description: Settings Tab
Types: Editor
Contexts: Editor

View File

@@ -74,8 +74,6 @@ label-actors-bg-categories = Filter:
label-actors-bg-owners = Owner:
label-area-selection = Area Selection
label-area-info = Area Info
label-selected-area-selected-region = Region:
label-selected-area-dimension = Dimensions:
label-selected-area-diagonal = Diagonal:
label-selected-area-resources= Resources:
label-copy-filters = Copy Filters
@@ -86,6 +84,9 @@ button-selection-cancel = Cancel
label-show-tile-grid = Show Tile Grid
label-show-buildable-area = Show Buildable Area
button-map-editor-tab-container-select =
.tooltip = Select
button-map-editor-tab-container-tiles =
.tooltip = Tiles

View File

@@ -515,6 +515,9 @@ loadscreen-stripe:
editor:
Inherits: ^Glyphs
Regions:
select: 51, 144, 16, 16
tiles: 0, 144, 16, 16
overlays: 17, 144, 16, 16
actors: 34, 68, 16, 16
tools: 34, 144, 16, 16
history: 136, 51, 16, 16

Binary file not shown.

Before

Width:  |  Height:  |  Size: 52 KiB

After

Width:  |  Height:  |  Size: 48 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 82 KiB

After

Width:  |  Height:  |  Size: 89 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 28 KiB

After

Width:  |  Height:  |  Size: 26 KiB

View File

@@ -659,6 +659,9 @@ separator:
editor:
Inherits: ^Glyphs
Regions:
select: 34, 187, 16, 16
tiles: 0, 187, 16, 16
overlays: 17, 187, 16, 16
actors: 34, 68, 16, 16
tools: 136, 68, 16, 16
history: 136, 51, 16, 16

Binary file not shown.

Before

Width:  |  Height:  |  Size: 79 KiB

After

Width:  |  Height:  |  Size: 74 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 134 KiB

After

Width:  |  Height:  |  Size: 154 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 36 KiB

After

Width:  |  Height:  |  Size: 34 KiB

View File

@@ -790,6 +790,9 @@ loadscreen-stripe:
editor:
Inherits: ^Glyphs
Regions:
select: 51, 144, 16, 16
tiles: 0, 144, 16, 16
overlays: 17, 144, 16, 16
actors: 34, 68, 16, 16
tools: 34, 144, 16, 16
history: 136, 51, 16, 16

Binary file not shown.

Before

Width:  |  Height:  |  Size: 36 KiB

After

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 62 KiB

After

Width:  |  Height:  |  Size: 72 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 17 KiB