Replace labels on Map Editor (copy, paste, undo, redo) buttons by glyphs

Icons are from https://github.com/twbs/icons
This commit is contained in:
xan2622
2026-01-18 14:28:01 +01:00
committed by Gustas Kažukauskas
parent e48a77b67a
commit 78873b8e00
20 changed files with 138 additions and 104 deletions

View File

@@ -762,6 +762,10 @@ editor:
tools: 904, 68, 16, 16
history: 904, 51, 16, 16
erase: 818, 170, 16, 16
copy: 835, 170, 16, 16
paste: 852, 170, 16, 16
undo: 869, 170, 16, 16
redo: 886, 170, 16, 16
encyclopedia:
Image: encyclopedia/scanlines.png

View File

@@ -259,16 +259,16 @@ Container@EDITOR_WORLD_ROOT:
MenuButton@OPTIONS_BUTTON:
Logic: MenuButtonsChromeLogic
Key: escape
X: WINDOW_WIDTH - 294 - WIDTH
Y: 5
Width: 30
X: 0
Y: 0
Width: 50
Height: 25
TooltipText: button-editor-world-root-options-tooltip
TooltipContainer: TOOLTIP_CONTAINER
Children:
Image:
X: 7
Y: 5
X: 17
Y: 4
ImageCollection: order-icons
ImageName: options
Background@TOOLS_BG:
@@ -785,67 +785,85 @@ Container@EDITOR_WORLD_ROOT:
Y: 5
ImageCollection: editor
ImageName: history
Button@UNDO_BUTTON:
X: WINDOW_WIDTH - 764
Y: 5
Height: 25
Width: 100
Text: button-editor-world-root-undo.label
Font: Bold
Key: EditorUndo
TooltipTemplate: BUTTON_TOOLTIP
TooltipText: button-editor-world-root-undo.tooltip
TooltipContainer: TOOLTIP_CONTAINER
Button@REDO_BUTTON:
X: WINDOW_WIDTH - 654
Y: 5
Height: 25
Width: 100
Text: button-editor-world-root-redo.label
Font: Bold
Key: EditorRedo
TooltipTemplate: BUTTON_TOOLTIP
TooltipText: button-editor-world-root-redo.tooltip
TooltipContainer: TOOLTIP_CONTAINER
Button@COPY_BUTTON:
X: WINDOW_WIDTH - 544
Y: 5
X: 50
Y: 0
Width: 50
Height: 25
Width: 100
Text: button-editor-world-root-copy.label
Font: Bold
Key: EditorCopy
TooltipTemplate: BUTTON_TOOLTIP
TooltipText: button-editor-world-root-copy.tooltip
TooltipText: button-editor-world-root-copy-tooltip
TooltipContainer: TOOLTIP_CONTAINER
Children:
Image@ICON:
X: 17
Y: 4
ImageCollection: editor
ImageName: copy
Button@PASTE_BUTTON:
X: WINDOW_WIDTH - 434
Y: 5
X: 100
Y: 0
Width: 50
Height: 25
Width: 100
Text: button-editor-world-root-paste.label
Font: Bold
Key: EditorPaste
TooltipTemplate: BUTTON_TOOLTIP
TooltipText: button-editor-world-root-paste.tooltip
TooltipText: button-editor-world-root-paste-tooltip
TooltipContainer: TOOLTIP_CONTAINER
Children:
Image@ICON:
X: 17
Y: 4
ImageCollection: editor
ImageName: paste
Button@UNDO_BUTTON:
X: 150
Y: 0
Width: 50
Height: 25
Key: EditorUndo
TooltipTemplate: BUTTON_TOOLTIP
TooltipText: button-editor-world-root-undo-tooltip
TooltipContainer: TOOLTIP_CONTAINER
Children:
Image@ICON:
X: 17
Y: 4
ImageCollection: editor
ImageName: undo
Button@REDO_BUTTON:
X: 200
Y: 0
Width: 50
Height: 25
Key: EditorRedo
TooltipTemplate: BUTTON_TOOLTIP
TooltipText: button-editor-world-root-redo-tooltip
TooltipContainer: TOOLTIP_CONTAINER
Children:
Image@ICON:
X: 17
Y: 4
ImageCollection: editor
ImageName: redo
DropDownButton@OVERLAY_BUTTON:
X: WINDOW_WIDTH - 914
Y: 5
X: 250
Y: 0
Width: 140
Height: 25
Text: dropdownbutton-editor-world-root-overlay-button
Font: Bold
Label@COORDINATE_LABEL:
X: 10
Width: 50
X: 400
Y: 0
Width: 100
Height: 25
Align: Left
Font: Bold
Contrast: true
Label@CASH_LABEL:
X: 125
Width: 50
X: 505
Y: 0
Width: 100
Height: 25
Align: Left
Font: Bold

View File

@@ -103,21 +103,13 @@ button-delete-actor =
.label = Delete
.tooltip = Remove the selected actor
button-editor-world-root-copy =
.label = Copy
.tooltip = Copy the selected area
button-editor-world-root-copy-tooltip = Copy the selected area
button-editor-world-root-paste =
.label = Paste
.tooltip = Paste the saved area
button-editor-world-root-paste-tooltip = Paste the saved area
button-editor-world-root-undo =
.label = Undo
.tooltip = Undo last step
button-editor-world-root-undo-tooltip = Undo last step
button-editor-world-root-redo =
.label = Redo
.tooltip = Redo last step
button-editor-world-root-redo-tooltip = Redo last step
dropdownbutton-editor-world-root-overlay-button = Overlays
button-select-categories-buttons-all = All

Binary file not shown.

Before

Width:  |  Height:  |  Size: 415 KiB

After

Width:  |  Height:  |  Size: 416 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 905 KiB

After

Width:  |  Height:  |  Size: 858 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 170 KiB

After

Width:  |  Height:  |  Size: 170 KiB

View File

@@ -765,62 +765,78 @@ Container@EDITOR_WORLD_ROOT:
Y: 5
ImageCollection: editor
ImageName: history
Button@UNDO_BUTTON:
X: 70
Height: 25
Width: 70
Text: button-editor-world-root-undo.label
Font: Bold
Key: EditorUndo
TooltipTemplate: BUTTON_TOOLTIP
TooltipText: button-editor-world-root-undo.tooltip
TooltipContainer: TOOLTIP_CONTAINER
Button@REDO_BUTTON:
X: 150
Height: 25
Width: 70
Text: button-editor-world-root-redo.label
Font: Bold
Key: EditorRedo
TooltipTemplate: BUTTON_TOOLTIP
TooltipText: button-editor-world-root-redo.tooltip
TooltipContainer: TOOLTIP_CONTAINER
Button@COPY_BUTTON:
X: 230
X: 60
Width: 50
Height: 25
Text: button-editor-world-root-copy.label
Width: 70
Font: Bold
Key: EditorCopy
TooltipTemplate: BUTTON_TOOLTIP
TooltipText: button-editor-world-root-copy.tooltip
TooltipText: button-editor-world-root-copy-tooltip
TooltipContainer: TOOLTIP_CONTAINER
Children:
Image@ICON:
X: 17
Y: 5
ImageCollection: editor
ImageName: copy
Button@PASTE_BUTTON:
X: 310
Width: 70
X: 110
Width: 50
Height: 25
Text: button-editor-world-root-paste.label
Font: Bold
Key: EditorPaste
TooltipTemplate: BUTTON_TOOLTIP
TooltipText: button-editor-world-root-paste.tooltip
TooltipText: button-editor-world-root-paste-tooltip
TooltipContainer: TOOLTIP_CONTAINER
Children:
Image@ICON:
X: 17
Y: 4
ImageCollection: editor
ImageName: paste
Button@UNDO_BUTTON:
X: 160
Width: 50
Height: 25
Key: EditorUndo
TooltipTemplate: BUTTON_TOOLTIP
TooltipText: button-editor-world-root-undo-tooltip
TooltipContainer: TOOLTIP_CONTAINER
Children:
Image@ICON:
X: 17
Y: 4
ImageCollection: editor
ImageName: undo
Button@REDO_BUTTON:
X: 210
Width: 50
Height: 25
Key: EditorRedo
TooltipTemplate: BUTTON_TOOLTIP
TooltipText: button-editor-world-root-redo-tooltip
TooltipContainer: TOOLTIP_CONTAINER
Children:
Image@ICON:
X: 17
Y: 4
ImageCollection: editor
ImageName: redo
DropDownButton@OVERLAY_BUTTON:
X: 390
X: 260
Width: 140
Height: 25
Text: dropdownbutton-editor-world-root-overlay-button
Font: Bold
Label@COORDINATE_LABEL:
X: 540
Width: 50
X: 410
Width: 100
Height: 25
Align: Left
Font: Bold
Contrast: true
Label@CASH_LABEL:
X: 655
Width: 50
X: 515
Width: 100
Height: 25
Align: Left
Font: Bold

View File

@@ -103,21 +103,13 @@ button-editor-world-root-options =
.label = Menu
.tooltip = Menu
button-editor-world-root-copy =
.label = Copy
.tooltip = Copy the selected area
button-editor-world-root-copy-tooltip = Copy the selected area
button-editor-world-root-paste =
.label = Paste
.tooltip = Paste the saved area
button-editor-world-root-paste-tooltip = Paste the saved area
button-editor-world-root-undo =
.label = Undo
.tooltip = Undo last step
button-editor-world-root-undo-tooltip = Undo last step
button-editor-world-root-redo =
.label = Redo
.tooltip = Redo last step
button-editor-world-root-redo-tooltip = Redo last step
dropdownbutton-editor-world-root-overlay-button = Overlays
button-select-categories-buttons-all = All

View File

@@ -547,3 +547,7 @@ editor:
tools: 34, 144, 16, 16
history: 136, 51, 16, 16
erase: 67, 144, 16, 16
copy: 84, 144, 16, 16
paste: 101, 144, 16, 16
undo: 118, 144, 16, 16
redo: 135, 144, 16, 16

Binary file not shown.

Before

Width:  |  Height:  |  Size: 50 KiB

After

Width:  |  Height:  |  Size: 52 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 85 KiB

After

Width:  |  Height:  |  Size: 86 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 28 KiB

After

Width:  |  Height:  |  Size: 28 KiB

View File

@@ -667,3 +667,7 @@ editor:
tools: 136, 68, 16, 16
history: 136, 51, 16, 16
erase: 50, 187, 16, 16
copy: 67, 187, 16, 16
paste: 84, 187, 16, 16
undo: 101, 187, 16, 16
redo: 118, 187, 16, 16

Binary file not shown.

Before

Width:  |  Height:  |  Size: 78 KiB

After

Width:  |  Height:  |  Size: 79 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 131 KiB

After

Width:  |  Height:  |  Size: 136 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 36 KiB

After

Width:  |  Height:  |  Size: 37 KiB

View File

@@ -798,3 +798,7 @@ editor:
tools: 34, 144, 16, 16
history: 136, 51, 16, 16
erase: 67, 144, 16, 16
copy: 84, 144, 16, 16
paste: 101, 144, 16, 16
undo: 118, 144, 16, 16
redo: 135, 144, 16, 16

Binary file not shown.

Before

Width:  |  Height:  |  Size: 36 KiB

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 63 KiB

After

Width:  |  Height:  |  Size: 68 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 19 KiB