Files
OpenRA/mods/cnc/chrome/connection.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

173 lines
3.4 KiB
YAML

Container@CONNECTING_PANEL:
Logic: ConnectionLogic
X: (WINDOW_RIGHT - WIDTH) / 2
Y: (WINDOW_BOTTOM - 90) / 2
Width: 370
Height: 125
Children:
Label@CONNECTING_TITLE:
Width: PARENT_RIGHT
Height: 25
Y: 0 - 34
Font: BigBold
Contrast: true
Align: Center
Text: label-connecting-panel-title
Background@bg:
Width: 370
Height: 90
Background: panel-black
Children:
Label@CONNECTING_DESC:
Y: (PARENT_BOTTOM - HEIGHT) / 2
Width: PARENT_RIGHT
Height: 25
Text: label-bg-connecting-desc
Font: Bold
Align: Center
Button@ABORT_BUTTON:
Key: escape
Y: 89
Width: 140
Height: 35
Text: button-connecting-panel-abort
Container@CONNECTIONFAILED_PANEL:
Logic: ConnectionFailedLogic
X: (WINDOW_RIGHT - WIDTH) / 2
Y: (WINDOW_BOTTOM - 90) / 2
Width: 370
Height: 129
Children:
LogicTicker@CONNECTION_FAILED_TICKER:
Label@TITLE:
Width: PARENT_RIGHT
Height: 25
Y: 0 - 34
Font: BigBold
Contrast: true
Align: Center
Background@CONNECTION_BACKGROUND:
Width: 370
Height: 85
Background: panel-black
Children:
Label@CONNECTING_DESC:
Y: 16
Width: PARENT_RIGHT
Height: 25
Text: label-connection-background-connecting-desc
Font: Bold
Align: Center
Label@CONNECTION_ERROR:
Y: 41
Width: PARENT_RIGHT
Height: 25
Align: Center
Font: Bold
Label@PASSWORD_LABEL:
X: 40
Y: 80
Width: 95
Height: 25
Align: Right
Text: label-connection-background-password
Font: Bold
PasswordField@PASSWORD:
X: 140
Y: 80
Width: 155
MaxLength: 20
Height: 25
Button@ABORT_BUTTON:
Key: escape
Y: 84
Width: 140
Height: 35
Text: button-connectionfailed-panel-abort
Button@QUIT_BUTTON:
Key: escape
Y: 84
Width: 140
Height: 35
Text: button-connectionfailed-panel-quit
Button@RETRY_BUTTON:
Key: return
X: 230
Y: 84
Width: 140
Height: 35
Text: button-connectionfailed-panel-retry
Container@CONNECTION_SWITCHMOD_PANEL:
Logic: ConnectionSwitchModLogic
X: (WINDOW_RIGHT - WIDTH) / 2
Y: (WINDOW_BOTTOM - 90) / 2
Width: 370
Height: 134
Children:
Label@TITLE:
Width: PARENT_RIGHT
Height: 25
Y: 0 - 34
Font: BigBold
Contrast: true
Align: Center
Text: label-connection-switchmod-panel-title
Background@CONNECTION_BACKGROUND:
Width: 370
Height: 120
Background: panel-black
Children:
Label@DESC:
Y: 16
Width: PARENT_RIGHT
Height: 25
Text: label-connection-background-desc
Font: Bold
Align: Center
Container@MOD_CONTAINER:
X: 0
Y: 42
Width: PARENT_RIGHT
Children:
RGBASprite@MOD_ICON:
Y: 4
Width: 32
Height: 32
Label@MOD_TITLE:
X: 37
Y: 1
Width: PARENT_RIGHT - 37
Height: 25
Font: Bold
Align: Left
Label@MOD_VERSION:
X: 37
Y: 16
Width: PARENT_RIGHT - 37
Height: 25
Font: Tiny
Align: Left
Label@DESC2:
Y: 81
Width: PARENT_RIGHT
Height: 25
Text: label-connection-background-desc2
Font: Bold
Align: Center
Button@ABORT_BUTTON:
Key: escape
Y: 119
Width: 140
Height: 35
Text: button-connection-switchmod-panel-abort
Button@SWITCH_BUTTON:
Key: return
X: 230
Y: 119
Width: 140
Height: 35
Text: button-connection-switchmod-panel-switch