Files
OpenRA/mods/cnc/chrome/multiplayer-browser.yaml
RoosterDragon ca6aa5ebf1 Adjust widget sizes to ensure they accommodate the English translation text.
Some existing widget are too small to accommodate their text. Adjust their sizes to fit. Text can be rendered outside the widget bounds so visually this often has no impact, but adjusting this now will help in the future for checking translation text for other languages fit in their widgets.
2024-01-21 12:34:28 +02:00

265 lines
6.0 KiB
YAML

Container@MULTIPLAYER_PANEL:
Logic: MultiplayerLogic
X: (WINDOW_RIGHT - WIDTH) / 2
Y: (WINDOW_BOTTOM - HEIGHT) / 2
Width: 900
Height: 540
Children:
Label@TITLE:
Text: label-multiplayer-panel-title
Width: PARENT_RIGHT
Height: 25
Y: 0 - 34
Font: BigBold
Contrast: true
Align: Center
Background@bg:
Width: PARENT_RIGHT
Height: PARENT_BOTTOM
Background: panel-black
Children:
Container@LABEL_CONTAINER:
X: 15
Y: 6
Width: PARENT_RIGHT
Height: PARENT_BOTTOM
Children:
Label@NAME:
X: 5
Width: 355
Height: 25
Text: label-container-name
Align: Center
Font: Bold
Label@PLAYERS:
X: 390
Width: 85
Height: 25
Text: label-container-players
Font: Bold
Label@LOCATION:
X: 480
Width: 110
Height: 25
Text: label-container-location
Font: Bold
Label@STATUS:
X: 595
Width: 50
Height: 25
Text: label-container-status
Font: Bold
LogicTicker@NOTICE_WATCHER:
Container@NOTICE_CONTAINER:
X: 15
Y: 30
Width: 682
Height: 19
Children:
Background@bg:
Width: PARENT_RIGHT
Height: 20
Background: panel-black
Children:
Label@OUTDATED_VERSION_LABEL:
X: 5
Width: PARENT_RIGHT - 10
Height: 20
Align: Center
Text: label-bg-outdated-version
Font: TinyBold
Label@UNKNOWN_VERSION_LABEL:
X: 5
Width: PARENT_RIGHT - 10
Height: 20
Align: Center
Text: label-bg-unknown-version
Font: TinyBold
Label@PLAYTEST_AVAILABLE_LABEL:
X: 5
Width: PARENT_RIGHT - 10
Height: 20
Align: Center
Text: label-bg-playtest-available
Font: TinyBold
ScrollPanel@SERVER_LIST:
X: 15
Y: 30
Width: 682
Height: PARENT_BOTTOM - 75
TopBottomSpacing: 2
Children:
ScrollItem@HEADER_TEMPLATE:
Background: scrollheader
Width: PARENT_RIGHT - 27
Height: 20
X: 2
Visible: false
Children:
Label@LABEL:
Font: TinyBold
Width: PARENT_RIGHT
Height: 20
Align: Center
ScrollItem@SERVER_TEMPLATE:
Width: PARENT_RIGHT - 27
Height: 25
X: 2
EnableChildMouseOver: True
Children:
LabelWithTooltip@TITLE:
X: 5
Width: 345
Height: 25
TooltipContainer: TOOLTIP_CONTAINER
TooltipTemplate: SIMPLE_TOOLTIP
Image@PASSWORD_PROTECTED:
X: 372
Y: 6
Width: 12
Height: 13
ImageCollection: lobby-bits
TooltipContainer: TOOLTIP_CONTAINER
TooltipTemplate: SIMPLE_TOOLTIP
TooltipText: image-bg-password-protected-tooltip
Image@REQUIRES_AUTHENTICATION:
X: 372
Y: 6
Width: 12
Height: 13
ImageCollection: lobby-bits
TooltipContainer: TOOLTIP_CONTAINER
TooltipTemplate: SIMPLE_TOOLTIP
TooltipText: image-bg-requires-authentication-tooltip
LabelWithTooltip@PLAYERS:
X: 390
Width: 85
Height: 25
TooltipContainer: TOOLTIP_CONTAINER
TooltipTemplate: SIMPLE_TOOLTIP
Label@LOCATION:
X: 480
Width: 110
Height: 25
Label@STATUS:
X: 595
Width: 50
Height: 25
Label@PROGRESS_LABEL:
X: 15
Y: 31 + (PARENT_BOTTOM - 75 - HEIGHT) / 2
Width: 682
Height: 25
Font: Bold
Align: Center
Visible: false
Container@SELECTED_SERVER:
X: PARENT_RIGHT - WIDTH - 15
Y: 30
Width: 174
Height: 280
Children:
Background@MAP_BG:
Width: PARENT_RIGHT
Height: 174
Background: panel-gray
Children:
MapPreview@SELECTED_MAP_PREVIEW:
X: 1
Y: 1
Width: PARENT_RIGHT - 2
Height: PARENT_BOTTOM - 2
TooltipContainer: TOOLTIP_CONTAINER
LabelWithTooltip@SELECTED_MAP:
Y: 173
Width: PARENT_RIGHT
Height: 25
Font: Bold
Align: Center
TooltipContainer: TOOLTIP_CONTAINER
TooltipTemplate: SIMPLE_TOOLTIP
Label@SELECTED_IP:
Y: 188
Width: PARENT_RIGHT
Height: 25
Font: Tiny
Align: Center
Label@SELECTED_STATUS:
Y: 204
Width: PARENT_RIGHT
Height: 25
Font: TinyBold
Align: Center
Label@SELECTED_MOD_VERSION:
Y: 217
Width: PARENT_RIGHT
Height: 25
Font: Tiny
Align: Center
Label@SELECTED_PLAYERS:
Y: 230
Width: PARENT_RIGHT
Height: 25
Font: TinyBold
Align: Center
Container@CLIENT_LIST_CONTAINER:
Y: 240
Width: PARENT_RIGHT
Height: 230
Button@JOIN_BUTTON:
Key: return
Y: 255
Width: PARENT_RIGHT
Height: 25
Text: button-selected-server-join
DropDownButton@FILTERS_DROPDOWNBUTTON:
X: 15
Y: PARENT_BOTTOM - 40
Width: 152
Height: 25
Text: dropdownbutton-bg-filters
Button@RELOAD_BUTTON:
X: 172
Y: PARENT_BOTTOM - 40
Width: 26
Height: 25
Children:
Image@IMAGE_RELOAD:
X: 5
Y: 5
Width: 16
Height: 16
ImageCollection: reload-icon
ImageName: enabled
IgnoreMouseOver: True
Children:
LogicTicker@ANIMATION:
Label@PLAYER_COUNT:
X: 248
Y: PARENT_BOTTOM - 40
Width: 189
Height: 25
Align: Center
Font: Bold
Button@DIRECTCONNECT_BUTTON:
X: 487
Y: PARENT_BOTTOM - 40
Width: 100
Height: 25
Text: button-bg-directconnect
Button@CREATE_BUTTON:
X: 592
Y: PARENT_BOTTOM - 40
Width: 105
Height: 25
Text: button-bg-create
Button@BACK_BUTTON:
Key: escape
X: 0
Y: PARENT_BOTTOM - 1
Width: 140
Height: 35
Text: button-multiplayer-panel-back
TooltipContainer@TOOLTIP_CONTAINER: