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

55 lines
1.1 KiB
YAML

Container@CREDITS_PANEL:
Logic: CreditsLogic
X: (WINDOW_RIGHT - WIDTH) / 2
Y: (WINDOW_BOTTOM - HEIGHT) / 2
Width: 410
Height: 435
Children:
Label@CREDITS_TITLE:
Width: PARENT_RIGHT
Height: 25
Y: 0 - 34
Font: BigBold
Contrast: true
Align: Center
Text: label-credits-panel-title
Background@bg:
Width: PARENT_RIGHT
Height: PARENT_BOTTOM
Background: panel-black
Children:
Container@TAB_CONTAINER:
Visible: False
X: 15
Y: 15
Width: PARENT_RIGHT - 30
Height: 34
Children:
Button@MOD_TAB:
Width: 140
Height: 35
Button@ENGINE_TAB:
X: 150
Width: 140
Height: 35
Text: button-tab-container-engine
ScrollPanel@CREDITS_DISPLAY:
X: 15
Y: 15
Width: PARENT_RIGHT - 30
Height: PARENT_BOTTOM - 30
TopBottomSpacing: 8
Children:
Label@CREDITS_TEMPLATE:
X: 8
Width: PARENT_RIGHT - 25
Height: 16
VAlign: Top
Button@BACK_BUTTON:
Y: PARENT_BOTTOM - 1
Width: 140
Height: 35
Text: button-credits-panel-back
Key: escape