Add a tab to the credits panel for mod-specific text.

Enabled by adding a ModCredits block to mod.yaml.
This commit is contained in:
Paul Chote
2018-06-02 15:57:25 +00:00
committed by reaperrr
parent 314169f2b0
commit e4dd78c5cd
5 changed files with 113 additions and 9 deletions

View File

@@ -17,15 +17,31 @@ Container@CREDITS_PANEL:
Height: 400
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: OpenRA
ScrollPanel@CREDITS_DISPLAY:
X: 15
Y: 15
Width: PARENT_RIGHT - 30
Height: PARENT_BOTTOM - 30
TopBottomSpacing: 18
TopBottomSpacing: 6
Children:
Label@CREDITS_TEMPLATE:
X: 8
Width: PARENT_RIGHT - 25
Height: 16
VAlign: Top
Button@BACK_BUTTON: