Files
OpenRA/mods/common/chrome/mainmenu-prompts.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

375 lines
9.6 KiB
YAML

Background@MAINMENU_INTRODUCTION_PROMPT:
Logic: IntroductionPromptLogic
X: (WINDOW_RIGHT - WIDTH) / 2
Y: (WINDOW_BOTTOM - HEIGHT) / 2
Width: 700
Height: 525
Children:
Label@PROMPT_TITLE:
Width: PARENT_RIGHT
Y: 20
Height: 25
Font: Bold
Align: Center
Text: label-mainmenu-introduction-prompt-title
Label@DESC_A:
Width: PARENT_RIGHT
Y: 50
Height: 16
Font: Regular
Align: Center
Text: label-mainmenu-introduction-prompt-desc-a
Label@DESC_B:
Width: PARENT_RIGHT
Y: 68
Height: 16
Font: Regular
Align: Center
Text: label-mainmenu-introduction-prompt-desc-b
ScrollPanel@SETTINGS_SCROLLPANEL:
X: 20
Y: 100
Width: PARENT_RIGHT - 40
Height: PARENT_BOTTOM - 155
CollapseHiddenChildren: True
TopBottomSpacing: 5
ItemSpacing: 10
ScrollBar: Hidden
Children:
Background@PROFILE_SECTION_HEADER:
X: 5
Width: PARENT_RIGHT - 10
Height: 13
Background: separator
ClickThrough: True
Children:
Label@LABEL:
Width: PARENT_RIGHT
Height: PARENT_BOTTOM
Font: TinyBold
Align: Center
Text: label-profile-section-header
Container@ROW:
Width: PARENT_RIGHT
Height: 50
Children:
Container@PLAYER_CONTAINER:
X: 10
Width: PARENT_RIGHT / 2 - 20
Children:
Label@PLAYER:
Width: PARENT_RIGHT
Height: 20
Text: label-player-container
TextField@PLAYERNAME:
Y: 25
Width: PARENT_RIGHT
Height: 25
MaxLength: 16
Text: Name
Container@PLAYERCOLOR_CONTAINER:
X: PARENT_RIGHT / 2 + 10
Width: PARENT_RIGHT / 2 - 20
Children:
Label@COLOR:
Width: PARENT_RIGHT
Height: 20
Text: label-playercolor-container-color
DropDownButton@PLAYERCOLOR:
Y: 25
Width: 75
Height: 25
IgnoreChildMouseOver: true
PanelAlign: Right
Children:
ColorBlock@COLORBLOCK:
X: 5
Y: 6
Width: PARENT_RIGHT - 35
Height: PARENT_BOTTOM - 12
Container@SPACER:
Background@INPUT_SECTION_HEADER:
X: 5
Width: PARENT_RIGHT - 10
Height: 13
Background: separator
ClickThrough: True
Children:
Label@LABEL:
Width: PARENT_RIGHT
Height: PARENT_BOTTOM
Font: TinyBold
Align: Center
Text: label-input-section-header
Container@ROW:
Width: PARENT_RIGHT
Height: 50
Children:
Container@MOUSE_CONTROL_CONTAINER:
X: 10
Width: PARENT_RIGHT / 2 - 20
Children:
Label@MOUSE_CONTROL_LABEL:
Width: PARENT_RIGHT
Height: 20
Font: Regular
Text: label-mouse-control-container
DropDownButton@MOUSE_CONTROL_DROPDOWN:
Y: 25
Width: PARENT_RIGHT
Height: 25
Font: Regular
Container@MOUSE_CONTROL_DESC_CLASSIC:
X: PARENT_RIGHT / 2 + 10
Width: PARENT_RIGHT / 2 - 20
Children:
LabelWithHighlight@DESC_SELECTION:
Width: PARENT_RIGHT
Height: 16
Font: Small
Text: label-mouse-control-desc-classic-selection
LabelWithHighlight@DESC_COMMANDS:
Y: 17
Width: PARENT_RIGHT
Height: 16
Font: Small
Text: label-mouse-control-desc-classic-commands
LabelWithHighlight@DESC_BUILDIGS:
Y: 34
Width: PARENT_RIGHT
Height: 16
Font: Small
Text: label-mouse-control-desc-classic-buildigs
LabelWithHighlight@DESC_SUPPORT:
Y: 51
Width: PARENT_RIGHT
Height: 16
Font: Small
Text: label-mouse-control-desc-classic-support
LabelWithHighlight@DESC_ZOOM:
Y: 68
Width: PARENT_RIGHT
Height: 16
Font: Small
Text: label-mouse-control-desc-classic-zoom
LabelWithHighlight@DESC_ZOOM_MODIFIER:
Y: 68
Width: PARENT_RIGHT
Height: 16
Font: Small
Text: label-mouse-control-desc-classic-zoom-modifier
LabelWithHighlight@DESC_SCROLL_RIGHT:
Y: 85
Width: PARENT_RIGHT
Height: 16
Font: Small
Text: label-mouse-control-desc-classic-scroll-right
LabelWithHighlight@DESC_SCROLL_MIDDLE:
Y: 85
Width: PARENT_RIGHT
Height: 16
Font: Small
Text: label-mouse-control-desc-classic-scroll-middle
Label@DESC_EDGESCROLL:
X: 9
Y: 102
Width: PARENT_RIGHT
Height: 16
Font: Small
Text: label-mouse-control-desc-classic-edgescroll
Container@MOUSE_CONTROL_DESC_MODERN:
X: PARENT_RIGHT / 2 + 10
Width: PARENT_RIGHT / 2 - 20
Children:
LabelWithHighlight@DESC_SELECTION:
Width: PARENT_RIGHT
Height: 16
Font: Small
Text: label-mouse-control-desc-modern-selection
LabelWithHighlight@DESC_COMMANDS:
Y: 17
Width: PARENT_RIGHT
Height: 16
Font: Small
Text: label-mouse-control-desc-modern-commands
LabelWithHighlight@DESC_BUILDIGS:
Y: 34
Width: PARENT_RIGHT
Height: 16
Font: Small
Text: label-mouse-control-desc-modern-buildigs
LabelWithHighlight@DESC_SUPPORT:
Y: 51
Width: PARENT_RIGHT
Height: 16
Font: Small
Text: label-mouse-control-desc-modern-support
LabelWithHighlight@DESC_ZOOM:
Y: 68
Width: PARENT_RIGHT
Height: 16
Font: Small
Text: label-mouse-control-desc-modern-zoom
LabelWithHighlight@DESC_ZOOM_MODIFIER:
Y: 68
Width: PARENT_RIGHT
Height: 16
Font: Small
Text: label-mouse-control-desc-modern-zoom-modifier
LabelWithHighlight@DESC_SCROLL_RIGHT:
Y: 85
Width: PARENT_RIGHT
Height: 16
Font: Small
Text: label-mouse-control-desc-modern-scroll-right
LabelWithHighlight@DESC_SCROLL_MIDDLE:
Y: 85
Width: PARENT_RIGHT
Height: 16
Font: Small
Text: label-mouse-control-desc-modern-scroll-middle
Label@DESC_EDGESCROLL:
X: 9
Y: 102
Width: PARENT_RIGHT
Height: 16
Font: Small
Text: label-mouse-control-desc-modern-edgescroll
Container@ROW:
Width: PARENT_RIGHT
Height: 20
Children:
Container@EDGESCROLL_CHECKBOX_CONTAINER:
X: 10
Width: PARENT_RIGHT / 2 - 20
Children:
Checkbox@EDGESCROLL_CHECKBOX:
Width: PARENT_RIGHT
Height: 20
Font: Regular
Text: checkbox-edgescroll-container
Container@SPACER:
Height: 30
Background@DISPLAY_SECTION_HEADER:
X: 5
Width: PARENT_RIGHT - 10
Height: 13
Background: separator
ClickThrough: True
Children:
Label@LABEL:
Width: PARENT_RIGHT
Height: PARENT_BOTTOM
Font: TinyBold
Align: Center
Text: label-display-section-header
Container@ROW:
Width: PARENT_RIGHT
Height: 50
Children:
Container@BATTLEFIELD_CAMERA_DROPDOWN_CONTAINER:
X: 10
Width: PARENT_RIGHT / 2 - 20
Children:
Label@BATTLEFIELD_CAMERA:
Width: PARENT_RIGHT
Height: 20
Text: label-battlefield-camera-dropdown-container
DropDownButton@BATTLEFIELD_CAMERA_DROPDOWN:
Y: 25
Width: PARENT_RIGHT
Height: 25
Font: Regular
Container@UI_SCALE_DROPDOWN_CONTAINER:
X: PARENT_RIGHT / 2 + 10
Width: PARENT_RIGHT / 2 - 20
Children:
Label@UI_SCALE:
Width: PARENT_RIGHT
Height: 20
Text: label-ui-scale-dropdown-container
DropDownButton@UI_SCALE_DROPDOWN:
Y: 25
Width: PARENT_RIGHT
Height: 25
Font: Regular
Container@ROW:
Width: PARENT_RIGHT
Height: 20
Children:
Container@CURSORDOUBLE_CHECKBOX_CONTAINER:
X: PARENT_RIGHT / 2 + 10
Width: PARENT_RIGHT / 2 - 20
Children:
Checkbox@CURSORDOUBLE_CHECKBOX:
Width: PARENT_RIGHT
Height: 20
Font: Regular
Text: checkbox-cursordouble-container
Button@CONTINUE_BUTTON:
X: PARENT_RIGHT - 180
Y: PARENT_BOTTOM - 45
Width: 160
Height: 25
Text: button-mainmenu-introduction-prompt-continue
Font: Bold
Key: return
Background@MAINMENU_SYSTEM_INFO_PROMPT:
Logic: SystemInfoPromptLogic
X: (WINDOW_RIGHT - WIDTH) / 2
Y: (WINDOW_BOTTOM - HEIGHT) / 2
Width: 600
Height: 430
Children:
Label@PROMPT_TITLE:
Width: PARENT_RIGHT
Y: 20
Height: 25
Font: Bold
Align: Center
Text: label-mainmenu-system-info-prompt-title
Label@PROMPT_TEXT_A:
X: 15
Y: 50
Width: PARENT_RIGHT - 30
Height: 16
Align: Center
Text: label-mainmenu-system-info-prompt-text-a
Label@PROMPT_TEXT_B:
X: 15
Y: 68
Width: PARENT_RIGHT - 30
Height: 16
Align: Center
Text: label-mainmenu-system-info-prompt-text-b
ScrollPanel@SYSINFO_DATA:
X: 20
Y: 98
Width: PARENT_RIGHT - 40
Height: 355 - 98 - 10
TopBottomSpacing: 4
ItemSpacing: 4
Children:
Label@DATA_TEMPLATE:
X: 8
Height: 13
VAlign: Top
Font: Small
Checkbox@SYSINFO_CHECKBOX:
X: 390
Y: 353
Width: 200
Height: 20
Font: Regular
Text: checkbox-mainmenu-system-info-prompt-sysinfo
Button@CONTINUE_BUTTON:
X: PARENT_RIGHT - WIDTH - 20
Y: PARENT_BOTTOM - 45
Width: 160
Height: 25
Text: button-mainmenu-system-info-prompt-continue
Font: Bold
Key: return