Tweak some UI Yaml files

- Increase space of some elements to fit their text.
- Remove editor text that aren't translation keys. The text will be set in code anyway.
- Remove some unused elements.
- Provide a translation key for the port separator, to avoid log warnings.
This commit is contained in:
RoosterDragon
2024-04-05 18:44:43 +01:00
committed by Gustas
parent 150e28a672
commit 377bb4b6cc
5 changed files with 8 additions and 49 deletions

View File

@@ -526,7 +526,6 @@ Container@EDITOR_WORLD_ROOT:
Width: 30
Height: 25
Align: Left
Text: 85
Label@MODE_LABEL:
X: 6
Y: 102
@@ -558,7 +557,6 @@ Container@EDITOR_WORLD_ROOT:
Width: 30
Height: 25
Align: Left
Text: 2
Visible: false
DropDownButton@FLIP_NUM_SIDES_DROPDOWN:
X: 129
@@ -585,7 +583,6 @@ Container@EDITOR_WORLD_ROOT:
Width: 30
Height: 25
Align: Left
Text: 0
Visible: false
Container@HISTORY_WIDGETS:
Logic: HistoryLogLogic
@@ -651,7 +648,7 @@ Container@EDITOR_WORLD_ROOT:
Label@AREA_FILTERS_LABEL:
X: 6
Y: 36
Width: 55
Width: 150
Height: 25
Font: Bold
Align: Left
@@ -685,7 +682,7 @@ Container@EDITOR_WORLD_ROOT:
Label@DIAGONAL_LABEL:
X: 6
Y: 171
Width: 55
Width: 120
Height: 20
Font: Bold
Align: Left
@@ -693,7 +690,7 @@ Container@EDITOR_WORLD_ROOT:
Label@RESOURCE_LABEL:
X: 6
Y: 193
Width: 55
Width: 120
Height: 25
Font: Bold
Align: Left
@@ -1004,16 +1001,3 @@ ScrollPanel@CATEGORY_FILTER_PANEL:
Width: PARENT_RIGHT - 29
Height: 20
Visible: false
ScrollPanel@OVERLAY_PANEL:
Width: 140
Height: 80
ItemSpacing: 5
TopBottomSpacing: 0
Children:
Checkbox@CATEGORY_TEMPLATE:
X: 5
Y: 5
Width: PARENT_RIGHT - 29
Height: 20
Visible: false

View File

@@ -72,29 +72,6 @@ Background@BUTTON_TOOLTIP_FACTIONSUFFIX:
Font: TinyBold
VAlign: Top
Background@BUTTON_WITH_DESC_HIGHLIGHT_TOOLTIP:
Logic: ButtonTooltipLogic
Background: panel-black
Height: 26
Children:
Label@LABEL:
X: 5
Y: 1
Height: 23
Font: Bold
Label@HOTKEY:
Y: 1
Visible: false
TextColor: FFFF00
Height: 23
Font: Bold
LabelWithHighlight@DESC:
X: 5
Y: 26
Height: 12
Font: TinyBold
VAlign: Top
Background@BUTTON_WITH_DESC_HIGHLIGHT_TOOLTIP_FACTIONSUFFIX:
Logic: ButtonTooltipLogic, AddFactionSuffixLogic
Background: panel-black

View File

@@ -485,7 +485,6 @@ Container@EDITOR_WORLD_ROOT:
Width: 30
Height: 25
Align: Left
Text: 85
Label@MODE_LABEL:
X: 6
Y: 102
@@ -517,7 +516,6 @@ Container@EDITOR_WORLD_ROOT:
Width: 30
Height: 25
Align: Left
Text: 2
Visible: false
DropDownButton@FLIP_NUM_SIDES_DROPDOWN:
X: 129
@@ -544,7 +542,6 @@ Container@EDITOR_WORLD_ROOT:
Width: 30
Height: 25
Align: Left
Text: 0
Visible: false
Container@HISTORY_WIDGETS:
X: WINDOW_RIGHT - 320
@@ -599,7 +596,7 @@ Container@EDITOR_WORLD_ROOT:
Label@AREA_FILTERS_LABEL:
X: 15
Y: 45
Width: 55
Width: 150
Height: 25
Font: Bold
Align: Left
@@ -633,7 +630,7 @@ Container@EDITOR_WORLD_ROOT:
Label@DIAGONAL_LABEL:
X: 15
Y: 171
Width: 55
Width: 120
Height: 20
Font: Bold
Align: Left
@@ -641,7 +638,7 @@ Container@EDITOR_WORLD_ROOT:
Label@RESOURCE_LABEL:
X: 15
Y: 193
Width: 55
Width: 120
Height: 25
Font: Bold
Align: Left

View File

@@ -32,7 +32,7 @@ Background@DIRECTCONNECT_PANEL:
Width: 10
Height: 25
Align: Center
Text: :
Text: label-directconnect-panel-port
TextField@PORT:
X: 370
Y: 60

View File

@@ -386,6 +386,7 @@ button-multiplayer-createserver-panel-create = Create
## multiplayer-directconnect.yaml
label-directconnect-panel-title = Connect to Server
label-directconnect-panel-address = Server Address:
label-directconnect-panel-port = :
button-directconnect-panel-join = Join
## playerprofile.yaml