Reimplement ingame map downloading.

This commit is contained in:
Paul Chote
2014-03-13 12:43:42 +13:00
parent 6b199d3376
commit c3ba27ef6c
7 changed files with 563 additions and 67 deletions

View File

@@ -5,32 +5,141 @@ Container@LOBBY_MAP_PREVIEW:
Width:194
Height:250
Children:
Background@MAP_BG:
Container@MAP_AVAILABLE:
Width:PARENT_RIGHT
Height:194
Background:panel-gray
Height:PARENT_BOTTOM
Children:
MapPreview@MAP_PREVIEW:
X:1
Y:1
Width:PARENT_RIGHT-2
Height:PARENT_BOTTOM-2
TooltipContainer:TOOLTIP_CONTAINER
Label@MAP_TITLE:
Y:197
Background@MAP_BG:
Width:PARENT_RIGHT
Height:194
Background:panel-gray
Children:
MapPreview@MAP_PREVIEW:
X:1
Y:1
Width:PARENT_RIGHT-2
Height:PARENT_BOTTOM-2
TooltipContainer:TOOLTIP_CONTAINER
Label@MAP_TITLE:
Y:197
Width:PARENT_RIGHT
Height:25
Font:Bold
Align:Center
Label@MAP_TYPE:
Y:212
Width:PARENT_RIGHT
Height:25
Font:TinyBold
Align:Center
Label@MAP_AUTHOR:
Y:225
Width:PARENT_RIGHT
Height:25
Font:Tiny
Align:Center
Container@MAP_DOWNLOADABLE:
Width:PARENT_RIGHT
Height:25
Font:Bold
Align:Center
Label@MAP_TYPE:
Y:212
Height:PARENT_BOTTOM
Children:
Background@MAP_BG:
Width:PARENT_RIGHT
Height:164
Background:panel-gray
Children:
MapPreview@MAP_PREVIEW:
X:1
Y:1
Width:PARENT_RIGHT-2
Height:PARENT_BOTTOM-2
TooltipContainer:TOOLTIP_CONTAINER
Label@MAP_TITLE:
Y:167
Width:PARENT_RIGHT
Height:25
Font:Bold
Align:Center
Label@MAP_TYPE:
Y:184
Width:PARENT_RIGHT
Height:25
Font:TinyBold
Align:Center
Label@MAP_AUTHOR:
Y:197
Width:PARENT_RIGHT
Height:25
Font:Tiny
Align:Center
Button@MAP_INSTALL:
Y:224
Width:PARENT_RIGHT
Height:25
Text:Install Map
Container@MAP_PROGRESS:
Width:PARENT_RIGHT
Height:25
Font:TinyBold
Align:Center
Label@MAP_AUTHOR:
Y:225
Width:PARENT_RIGHT
Height:25
Font:Tiny
Align:Center
Height:PARENT_BOTTOM
Children:
Background@MAP_BG:
Width:PARENT_RIGHT
Height:164
Background:panel-gray
Children:
MapPreview@MAP_PREVIEW:
X:1
Y:1
Width:PARENT_RIGHT-2
Height:PARENT_BOTTOM-2
TooltipContainer:TOOLTIP_CONTAINER
Label@MAP_TITLE:
Y:167
Width:PARENT_RIGHT
Height:25
Font:Bold
Align:Center
Label@MAP_STATUS_SEARCHING:
Y:197
Width:PARENT_RIGHT
Height:25
Font:Tiny
Align:Center
Text: Searching OpenRA Resource Center...
Container@MAP_STATUS_UNAVAILABLE:
Width:PARENT_RIGHT
Children:
Label@a:
Y:184
Width:PARENT_RIGHT
Height:25
Font:Tiny
Align:Center
Text:This map was not found on the
Label@b:
Y:197
Width:PARENT_RIGHT
Height:25
Font:Tiny
Align:Center
Text:OpenRA Resource Center
Label@MAP_STATUS_ERROR:
Y:197
Width:PARENT_RIGHT
Height:25
Font:Tiny
Align:Center
Text:An error occurred during installation
Label@MAP_STATUS_DOWNLOADING:
Y:197
Width:PARENT_RIGHT
Height:25
Font:Tiny
Align:Center
ProgressBar@MAP_PROGRESSBAR:
Y:224
Width:PARENT_RIGHT
Height:25
Indeterminate:True
Button@MAP_RETRY:
Y:224
Width:PARENT_RIGHT
Height:25

View File

@@ -5,32 +5,143 @@ Container@LOBBY_MAP_PREVIEW:
Width:214
Height:250
Children:
Background@MAP_BG:
Container@MAP_AVAILABLE:
Width:PARENT_RIGHT
Height:214
Background:dialog3
Height:PARENT_BOTTOM
Children:
MapPreview@MAP_PREVIEW:
X:2
Y:2
Width:210
Height:210
TooltipContainer:TOOLTIP_CONTAINER
Label@MAP_TITLE:
Y:215
Background@MAP_BG:
Width:PARENT_RIGHT
Height:214
Background:dialog3
Children:
MapPreview@MAP_PREVIEW:
X:1
Y:1
Width:PARENT_RIGHT-2
Height:PARENT_BOTTOM-2
TooltipContainer:TOOLTIP_CONTAINER
Label@MAP_TITLE:
Y:215
Width:PARENT_RIGHT
Height:25
Font:Bold
Align:Center
Label@MAP_TYPE:
Y:232
Width:PARENT_RIGHT
Height:25
Font:TinyBold
Align:Center
Label@MAP_AUTHOR:
Y:245
Width:PARENT_RIGHT
Height:25
Font:Tiny
Align:Center
Container@MAP_DOWNLOADABLE:
Width:PARENT_RIGHT
Height:25
Font:Bold
Align:Center
Label@MAP_TYPE:
Y:230
Height:PARENT_BOTTOM
Children:
Background@MAP_BG:
Width:PARENT_RIGHT
Height:182
Background:dialog3
Children:
MapPreview@MAP_PREVIEW:
X:1
Y:1
Width:PARENT_RIGHT-2
Height:PARENT_BOTTOM-2
TooltipContainer:TOOLTIP_CONTAINER
Label@MAP_TITLE:
Y:185
Width:PARENT_RIGHT
Height:25
Font:Bold
Align:Center
Label@MAP_TYPE:
Y:202
Width:PARENT_RIGHT
Height:25
Font:TinyBold
Align:Center
Label@MAP_AUTHOR:
Y:215
Width:PARENT_RIGHT
Height:25
Font:Tiny
Align:Center
Button@MAP_INSTALL:
Y:242
Width:PARENT_RIGHT
Height:25
Font:Bold
Text:Install Map
Container@MAP_PROGRESS:
Width:PARENT_RIGHT
Height:25
Font:TinyBold
Align:Center
Label@MAP_AUTHOR:
Y:243
Width:PARENT_RIGHT
Height:25
Font:Tiny
Align:Center
Height:PARENT_BOTTOM
Children:
Background@MAP_BG:
Width:PARENT_RIGHT
Height:182
Background:dialog3
Children:
MapPreview@MAP_PREVIEW:
X:1
Y:1
Width:PARENT_RIGHT-2
Height:PARENT_BOTTOM-2
TooltipContainer:TOOLTIP_CONTAINER
Label@MAP_TITLE:
Y:185
Width:PARENT_RIGHT
Height:25
Font:Bold
Align:Center
Label@MAP_STATUS_SEARCHING:
Y:215
Width:PARENT_RIGHT
Height:25
Font:Tiny
Align:Center
Text: Searching OpenRA Resource Center...
Container@MAP_STATUS_UNAVAILABLE:
Width:PARENT_RIGHT
Children:
Label@a:
Y:202
Width:PARENT_RIGHT
Height:25
Font:Tiny
Align:Center
Text:This map was not found on the
Label@b:
Y:215
Width:PARENT_RIGHT
Height:25
Font:Tiny
Align:Center
Text:OpenRA Resource Center
Label@MAP_STATUS_ERROR:
Y:215
Width:PARENT_RIGHT
Height:25
Font:Tiny
Align:Center
Text:An error occurred during installation
Label@MAP_STATUS_DOWNLOADING:
Y:215
Width:PARENT_RIGHT
Height:25
Font:Tiny
Align:Center
ProgressBar@MAP_PROGRESSBAR:
Y:242
Width:PARENT_RIGHT
Height:25
Indeterminate:True
Button@MAP_RETRY:
Y:242
Width:PARENT_RIGHT
Height:25
Font:Bold