Add content installation dialogs to modchooser

This commit is contained in:
Pavel Penev
2015-09-04 21:48:52 +03:00
parent cb0ccbac50
commit f0a2e58ccd
5 changed files with 89 additions and 1 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 78 KiB

After

Width:  |  Height:  |  Size: 79 KiB

View File

@@ -124,6 +124,28 @@ button-highlighted-disabled: chrome.png
corner-bl: 256,566,10,10
corner-br: 310,566,10,10
progressbar-bg: chrome.png
background: 453,565,56,6
border-r: 507,565,5,6
border-l: 448,565,5,6
border-b: 453,571,54,5
border-t: 453,560,54,5
corner-tl: 448,560,5,5
corner-tr: 507,560,5,5
corner-bl: 448,571,5,5
corner-br: 507,571,5,5
progressbar-thumb: chrome.png
background: 453,549,56,6
border-r: 507,549,5,6
border-l: 448,549,5,6
border-b: 453,555,54,5
border-t: 453,544,54,5
corner-tl: 448,544,5,5
corner-tr: 507,544,5,5
corner-bl: 448,555,5,5
corner-br: 507,555,5,5
panel-rule: chrome.png
border-t: 64,512,64,2

View File

@@ -0,0 +1,64 @@
Container@INSTALL_PANEL:
Logic: InstallLogic
X: (WINDOW_RIGHT - WIDTH)/2
Y: (WINDOW_BOTTOM - HEIGHT)/2
Width: 500
Height: 177
Children:
Background:
Width: PARENT_RIGHT
Height: PARENT_BOTTOM
Background: panel-bg
Background@RULE:
X: 30
Y: 50
Width: 440
Height:150
Background:panel-rule
Label@TITLE:
X: 0
Y: 12
Width: PARENT_RIGHT
Height: 25
Text: Install Assets
Align: Center
Font: MediumBold
Label@DESC1:
X: 0
Y: 65
Width: PARENT_RIGHT
Height: 25
Align: Center
Label@DESC2:
X: 0
Y: 85
Width: PARENT_RIGHT
Height: 25
Text: Content can be downloaded (if available), or copied from the install CD.
Align: Center
Button@DOWNLOAD_BUTTON:
X: 20
Y: PARENT_BOTTOM - 52
Background:button-highlighted
Width: 110
Height: 32
Text: Download
Font: Bold
Button@INSTALL_BUTTON:
X: 140
Y: PARENT_BOTTOM - 52
Background:button-highlighted
Width: 110
Height: 32
Text: Use CD
Font: Bold
Button@BACK_BUTTON:
X: PARENT_RIGHT - 130
Y: PARENT_BOTTOM - 52
Background:button-highlighted
Width: 110
Height: 32
Text: Back
Font: Bold
Key: escape

View File

@@ -3,11 +3,12 @@
Metrics:
ButtonDepth: 0
ButtonFont: Bold
ButtonBaseLine: 1
ButtonTextColor: 255,255,255
ButtonTextColorDisabled: 128,128,128
ButtonTextContrast: false
ButtonTextContrastColor: 0,0,0
ButtonBaseLine: 0
ButtonBaseLine: 2
CheckboxPressedState: true
HotkeyFont: Regular
HotkeyColor: 255,255,255

View File

@@ -19,6 +19,7 @@ Assemblies:
ChromeLayout:
./mods/modchooser/modchooser.yaml
./mods/modchooser/install.yaml
Notifications:
./mods/modchooser/notifications.yaml