Files
OpenRA/mods/cnc/chrome/credits.yaml
RoosterDragon 833e6bd652 Fix CreditsLogic to word-wrap the text.
This allows the text to be word-wrapped automatically, rather than the current approach of manually wrapping the source text.
2024-09-20 23:23:34 +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-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: label-openra
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 - 24 - 2 * 8
Height: 16
VAlign: Top
WordWrap: true
Button@BACK_BUTTON:
Y: PARENT_BOTTOM - 1
Width: 140
Height: 35
Text: button-back
Key: escape