Extract mod selector into its own mod.

This commit is contained in:
Paul Chote
2014-03-23 17:07:10 +13:00
parent fa775a88c1
commit c720cb0b41
36 changed files with 1507 additions and 279 deletions

View File

@@ -63,17 +63,11 @@ Container@INSTALL_PANEL:
WordWrap:true
Text:OpenRA can download these files (excluding music and videos) from the internet, or you can install from the original C&C CDs.
Font:Bold
Button@QUIT_BUTTON:
Button@BACK_BUTTON:
Y:149
Width:140
Height:35
Text:Quit
Button@MODS_BUTTON:
X:150
Y:149
Width:140
Height:35
Text:Change Mod
Text:Back
Button@DOWNLOAD_BUTTON:
X:350
Y:149

View File

@@ -86,24 +86,24 @@ Container@MENU_BACKGROUND:
Width:140
Height:35
Text:Multiplayer
Button@MODS_BUTTON:
X:300
Y:0
Width:140
Height:35
Text:Mods
Button@SETTINGS_BUTTON:
X:450
X:300
Y:0
Width:140
Height:35
Text:Settings
Button@EXTRAS_BUTTON:
X:600
X:450
Y:0
Width:140
Height:35
Text:Extras
Button@MODS_BUTTON:
X:600
Y:0
Width:140
Height:35
Text:Mods
Button@QUIT_BUTTON:
X:750
Y:0

View File

@@ -1,88 +0,0 @@
Container@MODS_PANEL:
Logic:ModBrowserLogic
X:(WINDOW_RIGHT - WIDTH)/2
Y:(WINDOW_BOTTOM - 500)/2
Width:740
Height:535
Children:
Label@TITLE:
Text:Select Mod
Width:740
Y:0-25
Font:BigBold
Contrast:true
Align:Center
Background@bg:
Width:740
Height:500
Background:panel-black
Children:
ScrollPanel@MOD_LIST:
X:15
Y:30
Width:710
Height:455
Children:
ScrollItem@MOD_TEMPLATE:
Width:PARENT_RIGHT-27
Height:25
X:2
Y:0
Visible:false
Children:
Label@TITLE:
X:10
Width:200
Height:25
Label@AUTHOR:
X:PARENT_RIGHT-300
Align:Center
Width:50
Height:25
Label@VERSION:
Width:140
X:PARENT_RIGHT-150
Align:Center
Height:25
Container@MOD_LABELS:
Width:710-25
Height:25
X:15
Y:5
Children:
Label@TITLE:
Width:125
Height:25
X:0
Y:0
Text:Title
Align:Center
Font:Bold
Label@AUTHOR:
X:PARENT_RIGHT-300
Align:Center
Width:50
Height:25
Text:Author
Font:Bold
Label@VERSION:
Width:140
X:PARENT_RIGHT-150
Align:Center
Height:25
Text:Version
Font:Bold
Button@BACK_BUTTON:
Key:escape
X:0
Y:499
Width:140
Height:35
Text:Back
Button@LOAD_BUTTON:
Key:return
X:600
Y:499
Width:140
Height:35
Text:Load Mod

BIN
mods/cnc/logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

View File

@@ -1,8 +1,8 @@
Metadata:
Title: Tiberian Dawn
Description: OpenRA Reimagining of the classic game
Description: Join the Global Defense Initiative or the Brotherhood of Nod in our\nrecreation of the classic game that started it all.\n\nTiberian Dawn modernizes the original Command & Conquer gameplay\nby introducing features from later games, including per-factory\nproduction queues, unit veterancy, and capturable tech structures.
Version: {DEV_VERSION}
Author: The OpenRA Developers
Author: the OpenRA Developers
Folders:
.
@@ -90,7 +90,6 @@ ChromeLayout:
mods/cnc/chrome/ingame-chat.yaml
mods/cnc/chrome/ingamemenu.yaml
mods/cnc/chrome/music.yaml
mods/cnc/chrome/modchooser.yaml
mods/cnc/chrome/settings.yaml
mods/cnc/chrome/credits.yaml
mods/cnc/chrome/cheats.yaml

BIN
mods/cnc/preview.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 86 KiB

View File

@@ -48,19 +48,12 @@ Background@INSTALL_PANEL:
Height:25
Text:From CD
Font:Bold
Button@MODS_BUTTON:
X:PARENT_RIGHT - 250
Y:PARENT_BOTTOM - 45
Width:110
Height:25
Text:Change Mod
Font:Bold
Button@QUIT_BUTTON:
Button@BACK_BUTTON:
X:PARENT_RIGHT - 130
Y:PARENT_BOTTOM - 45
Width:110
Height:25
Text:Quit
Text:Back
Font:Bold
Background@INSTALL_DOWNLOAD_PANEL:

View File

@@ -39,27 +39,27 @@ Container@MAINMENU:
Height:30
Text:Multiplayer
Font:Bold
Button@MODS_BUTTON:
X:PARENT_RIGHT/2-WIDTH/2
Y:140
Width:140
Height:30
Text:Mods
Font:Bold
Button@SETTINGS_BUTTON:
X:PARENT_RIGHT/2-WIDTH/2
Y:180
Y:140
Width:140
Height:30
Text:Settings
Font:Bold
Button@EXTRAS_BUTTON:
X:PARENT_RIGHT/2-WIDTH/2
Y:220
Y:180
Width:140
Height:30
Text:Extras
Font:Bold
Button@MODS_BUTTON:
X:PARENT_RIGHT/2-WIDTH/2
Y:220
Width:140
Height:30
Text:Mods
Font:Bold
Button@QUIT_BUTTON:
X:PARENT_RIGHT/2-WIDTH/2
Y:260

BIN
mods/d2k/logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

View File

@@ -1,8 +1,8 @@
Metadata:
Title: Dune 2000
Description: OpenRA Reimagining of the classic game
Description: Three great houses fight for the precious spice, melange.\nHe who controls the spice controls the universe!\n\nOur work in progress Dune 2000 recreation brings modern\ngameplay improvements into the Dune universe.\n\nFuture versions of OpenRA will incorporate more of the missing\nunique features from this classic game.
Version: {DEV_VERSION}
Author: The OpenRA Developers
Author: the OpenRA Developers
Folders:
.
@@ -80,7 +80,6 @@ ChromeLayout:
mods/ra/chrome/directconnect.yaml
mods/ra/chrome/replaybrowser.yaml
mods/d2k/chrome/dropdowns.yaml
mods/ra/chrome/modchooser.yaml
mods/ra/chrome/cheats.yaml
mods/ra/chrome/musicplayer.yaml
mods/d2k/chrome/tooltips.yaml

BIN
mods/d2k/preview.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 58 KiB

BIN
mods/modchooser/chrome.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 78 KiB

136
mods/modchooser/chrome.yaml Normal file
View File

@@ -0,0 +1,136 @@
panel-header: chrome.png
background: 3,515,58,58
border-r: 61,515,3,58
border-l: 0,515,3,58
border-b: 3,573,58,3
border-t: 3,512,58,3
corner-tl: 0,512,3,3
corner-tr: 61,512,3,3
corner-bl: 0,573,3,3
corner-br: 61,573,3,3
panel-bg: chrome.png
background: 67,515,58,58
border-r: 125,515,3,58
border-l: 64,515,3,58
border-b: 67,573,58,3
border-t: 67,512,58,3
corner-tl: 64,512,3,3
corner-tr: 125,512,3,3
corner-bl: 64,573,3,3
corner-br: 125,573,3,3
panel-thinborder: chrome.png
background: 3,515,58,58
border-r: 61,515,2,58
border-l: 1,515,2,58
border-b: 3,573,58,2
border-t: 3,513,58,2
corner-tl: 1,513,2,2
corner-tr: 61,513,2,2
corner-bl: 1,573,2,2
corner-br: 61,573,2,2
button: chrome.png
background: 138,522,44,44
border-r: 182,522,10,44
border-l: 128,522,10,44
border-b: 138,566,44,10
border-t: 138,512,44,10
corner-tl: 128,512,10,10
corner-tr: 182,512,10,10
corner-bl: 128,566,10,10
corner-br: 182,566,10,10
button-hover: chrome.png
background: 202,522,44,44
border-r: 246,522,10,44
border-l: 192,522,10,44
border-b: 202,566,44,10
border-t: 202,512,44,10
corner-tl: 192,512,10,10
corner-tr: 246,512,10,10
corner-bl: 192,566,10,10
corner-br: 246,566,10,10
# Copy of button
button-disabled: chrome.png
background: 138,522,44,44
border-r: 182,522,10,44
border-l: 128,522,10,44
border-b: 138,566,44,10
border-t: 138,512,44,10
corner-tl: 128,512,10,10
corner-tr: 182,512,10,10
corner-bl: 128,566,10,10
corner-br: 182,566,10,10
# Copy of button-highlighted-hover
button-pressed: chrome.png
background: 330,522,44,44
border-r: 374,522,10,44
border-l: 320,522,10,44
border-b: 330,566,44,10
border-t: 330,512,44,10
corner-tl: 320,512,10,10
corner-tr: 374,512,10,10
corner-bl: 320,566,10,10
corner-br: 374,566,10,10
button-highlighted: chrome.png
background: 266,522,44,44
border-r: 310,522,10,44
border-l: 256,522,10,44
border-b: 266,566,44,10
border-t: 266,512,44,10
corner-tl: 256,512,10,10
corner-tr: 310,512,10,10
corner-bl: 256,566,10,10
corner-br: 310,566,10,10
button-highlighted-hover: chrome.png
background: 330,522,44,44
border-r: 374,522,10,44
border-l: 320,522,10,44
border-b: 330,566,44,10
border-t: 330,512,44,10
corner-tl: 320,512,10,10
corner-tr: 374,512,10,10
corner-bl: 320,566,10,10
corner-br: 374,566,10,10
# Copy of button-mod-highlighted-hover
button-highlighted-pressed: chrome.png
background: 330,522,44,44
border-r: 374,522,10,44
border-l: 320,522,10,44
border-b: 330,566,44,10
border-t: 330,512,44,10
corner-tl: 320,512,10,10
corner-tr: 374,512,10,10
corner-bl: 320,566,10,10
corner-br: 374,566,10,10
# Copy of button-mod-highlighted
button-highlighted-disabled: chrome.png
background: 266,522,44,44
border-r: 310,522,10,44
border-l: 256,522,10,44
border-b: 266,566,44,10
border-t: 266,512,44,10
corner-tl: 256,512,10,10
corner-tr: 310,512,10,10
corner-bl: 256,566,10,10
corner-br: 310,566,10,10
panel-rule: chrome.png
border-t: 64,512,64,2
background: chrome.png
background:0,0,1024,480
modchooser: chrome.png
logo: 0,576,280,128
leftarrow:384,512,20,64
rightarrow:404,512,20,64

BIN
mods/modchooser/cursor.pal Normal file

Binary file not shown.

BIN
mods/modchooser/cursor.shp Normal file

Binary file not shown.

View File

@@ -0,0 +1,9 @@
Palettes:
cursor: cursor.pal
Cursors:
cursor.shp: cursor
default:
start:0
x: -4
y: -7

View File

@@ -0,0 +1,21 @@
# General dumping-ground for UI element sizes, etc.
Metrics:
ButtonDepth: 0
ButtonFont: Bold
ButtonTextColor: 255,255,255
ButtonTextColorDisabled: 128,128,128
ButtonTextContrast: false
ButtonTextContrastColor: 0,0,0
CheckboxPressedState: true
HotkeyFont: Regular
HotkeyColor: 255,255,255
HotkeyColorDisabled: 128,128,128
TextfieldFont: Regular
TextfieldColor: 255,255,255
TextfieldColorDisabled: 128,128,128
TextFont: Regular
TextColor: 255,255,255
TextContrast: false
TextContrastColor: 0,0,0
ColorPickerRemapIndices: 176, 178, 180, 182, 184, 186, 189, 191, 177, 179, 181, 183, 185, 187, 188, 190

51
mods/modchooser/mod.yaml Normal file
View File

@@ -0,0 +1,51 @@
Metadata:
Title: Mod Chooser
Version: {DEV_VERSION}
Author: The OpenRA Developers
Folders:
.
./mods/modchooser
Cursors:
mods/modchooser/cursors.yaml
Chrome:
mods/modchooser/chrome.yaml
Assemblies:
mods/ra/OpenRA.Mods.RA.dll
ChromeLayout:
mods/modchooser/modchooser.yaml
Notifications:
mods/modchooser/notifications.yaml
LoadScreen: ModChooserLoadScreen
ChromeMetrics:
mods/modchooser/metrics.yaml
Fonts:
Regular:
Font:FreeSans.ttf
Size:14
Bold:
Font:FreeSansBold.ttf
Size:14
BigBold:
Font:FreeSansBold.ttf
Size:24
MediumBold:
Font:FreeSansBold.ttf
Size:18
Tiny:
Font:FreeSans.ttf
Size:10
TinyBold:
Font:FreeSansBold.ttf
Size:10
Packages:
LobbyDefaults:

View File

@@ -0,0 +1,160 @@
Background@MODCHOOSER:
Logic:ModBrowserLogic
Background: background
Width:WINDOW_RIGHT
Height:WINDOW_BOTTOM
Children:
Container:
X:(WINDOW_RIGHT - WIDTH)/2
Y:(WINDOW_BOTTOM - 500)/2
Width:750
Height:550-4-32
Children:
Background@bg:
Y:69
Width:PARENT_RIGHT
Height:PARENT_BOTTOM - 69
Background:panel-bg
Children:
Label:
X:53
Y:30
Align:Left
Font:MediumBold
Text:Choose your Battlefield:
Container@MOD_LIST:
X:53
Y:60
Width:PARENT_RIGHT-106
Height:150
Children:
Button@MOD_TEMPLATE:
X:16
Width:114
Height:114
TooltipContainer:TOOLTIP_CONTAINER
IgnoreChildMouseOver:true
Children:
Container@MOD_NO_LOGO:
Width:PARENT_RIGHT
Height:PARENT_BOTTOM
Children:
Label@A:
Width:PARENT_RIGHT
Height:PARENT_BOTTOM-20
Text:Missing or
Align:center
Label@B:
Y:20
Width:PARENT_RIGHT
Height:PARENT_BOTTOM-20
Text:invalid logo
Align:center
RGBASprite@MOD_LOGO:
X:9
Y:9
Button@PREV_MOD:
X:15
Y:60+41-16
Width:25
Height:64
IgnoreChildMouseOver:true
Children:
Image:
X:2
ImageCollection:modchooser
ImageName:leftarrow
Button@NEXT_MOD:
X:PARENT_RIGHT - WIDTH - 20
Y:60+41-16
Width:25
Height:64
IgnoreChildMouseOver:true
Children:
Image:
X:3
ImageCollection:modchooser
ImageName:rightarrow
Background@RULE:
X:53
Y:PARENT_BOTTOM - 249
Width:PARENT_RIGHT-106
Height:150
Background:panel-rule
Label@MOD_TITLE:
X:PARENT_RIGHT - 53 - 140 - 170
Y:PARENT_BOTTOM-220
Align:Left
Font:Bold
Label@MOD_AUTHOR:
X:PARENT_RIGHT - 53 - 140 - 170
Y:PARENT_BOTTOM-205
Align:Left
Font:TinyBold
Label@MOD_VERSION:
X:PARENT_RIGHT - 53 - 140 - 170
Y:PARENT_BOTTOM-192
Align:Left
Font:Tiny
Label@MOD_DESC:
X:PARENT_RIGHT - 53 - 140 - 170
Y:PARENT_BOTTOM-175
Align:Left
VAlign:Top
Font:Tiny
Background@PREVIEW:
X:53
Y:PARENT_BOTTOM - 25 - HEIGHT
Width:300
Height:200
Background:panel-thinborder
Children:
Label:
Width:PARENT_RIGHT
Height:PARENT_BOTTOM
Text:Missing or invalid preview
Align:Center
RGBASprite@MOD_PREVIEW:
X:2
Y:2
Button@LOAD_BUTTON:
Background:button-highlighted
Key:return
X:PARENT_RIGHT - 53 - WIDTH - 170
Y:PARENT_BOTTOM - 25 - HEIGHT
Width:140
Height:35
Text:Load Mod
Button@QUIT_BUTTON:
Background:button-highlighted
X:PARENT_RIGHT - 53 - WIDTH
Y:PARENT_BOTTOM - 25 - HEIGHT
Width:140
Height:35
Text:Quit
Background@header:
Width:PARENT_RIGHT
Height:72
Background:panel-header
Children:
Image:
X:(PARENT_RIGHT - WIDTH)/2
Y:0-28
Width:280
ImageCollection:modchooser
ImageName:logo
TooltipContainer@TOOLTIP_CONTAINER:
Background@BUTTON_TOOLTIP:
Logic:ButtonTooltipLogic
Background:panel-thinborder
Height:25
Children:
Label@LABEL:
X:5
Height:23
Font:Bold
Label@HOTKEY:
TextColor:255,255,0
Height:23
Font:Bold

View File

@@ -0,0 +1,5 @@
Sounds:
Notifications:
TabClick: button
ClickSound: button
ClickDisabledSound: scold2

View File

@@ -41,19 +41,12 @@ Background@INSTALL_PANEL:
Height:25
Text:Use CD
Font:Bold
Button@MODS_BUTTON:
X:PARENT_RIGHT - 250
Y:PARENT_BOTTOM - 45
Width:110
Height:25
Text:Change Mod
Font:Bold
Button@QUIT_BUTTON:
Button@BACK_BUTTON:
X:PARENT_RIGHT - 130
Y:PARENT_BOTTOM - 45
Width:110
Height:25
Text:Quit
Text:Back
Font:Bold
Background@INSTALL_DOWNLOAD_PANEL:

View File

@@ -52,27 +52,27 @@ Container@MAINMENU:
Height:30
Text:Multiplayer
Font:Bold
Button@MODS_BUTTON:
X:PARENT_RIGHT/2-WIDTH/2
Y:140
Width:140
Height:30
Text:Mods
Font:Bold
Button@SETTINGS_BUTTON:
X:PARENT_RIGHT/2-WIDTH/2
Y:180
Y:140
Width:140
Height:30
Text:Settings
Font:Bold
Button@EXTRAS_BUTTON:
X:PARENT_RIGHT/2-WIDTH/2
Y:220
Y:180
Width:140
Height:30
Text:Extras
Font:Bold
Button@MODS_BUTTON:
X:PARENT_RIGHT/2-WIDTH/2
Y:220
Width:140
Height:30
Text:Mods
Font:Bold
Button@QUIT_BUTTON:
X:PARENT_RIGHT/2-WIDTH/2
Y:260

View File

@@ -1,85 +0,0 @@
Background@MODS_PANEL:
Logic:ModBrowserLogic
Width:740
Height:500
X:(WINDOW_RIGHT - WIDTH)/2
Y:(WINDOW_BOTTOM - HEIGHT)/2
Children:
Label@TITLE:
Text:Select Mod
Y:20
Width:PARENT_RIGHT
Height:25
Font:Bold
Align:Center
ScrollPanel@MOD_LIST:
X:20
Y:70
Width:700
Height:PARENT_BOTTOM - 125
Children:
ScrollItem@MOD_TEMPLATE:
Width:PARENT_RIGHT-27
Height:25
X:2
Y:0
Visible:false
Children:
Label@TITLE:
X:10
Width:200
Height:25
Label@AUTHOR:
X:PARENT_RIGHT-300
Align:Center
Width:50
Height:25
Label@VERSION:
Width:140
X:PARENT_RIGHT-150
Align:Center
Height:25
Container@MOD_LABELS:
Width:710-25
Height:25
X:15
Y:45
Children:
Label@TITLE:
Width:125
Height:25
X:0
Y:0
Text:Title
Align:Center
Font:Bold
Label@AUTHOR:
X:PARENT_RIGHT-300
Align:Center
Width:50
Height:25
Text:Author
Font:Bold
Label@VERSION:
Width:140
X:PARENT_RIGHT-150
Align:Center
Height:25
Text:Version
Font:Bold
Button@BACK_BUTTON:
Key:escape
X:PARENT_RIGHT-180
Y:PARENT_BOTTOM-45
Width:160
Height:25
Font:Bold
Text:Cancel
Button@LOAD_BUTTON:
Key:return
X:PARENT_RIGHT-360
Y:PARENT_BOTTOM-45
Width:160
Height:25
Font:Bold
Text:Load Mod

BIN
mods/ra/logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

View File

@@ -1,8 +1,8 @@
Metadata:
Title: Red Alert
Description: OpenRA Reimagining of the classic game
Description: In a world where Hitler was assassinated and the Third Reich never\nexisted, the Soviet Union seeks power over all of Europe. Allied\nagainst this Evil Empire, the free world faces a Cold War turned hot.\n\nRed Alert fuses the quick and fun gameplay of the original\nC&C: Red Alert, with balance improvements and new gameplay\nfeatures inspired by modern RTS games.
Version: {DEV_VERSION}
Author: The OpenRA Developers
Author: the OpenRA Developers
Folders:
.
@@ -94,7 +94,6 @@ ChromeLayout:
mods/ra/chrome/directconnect.yaml
mods/ra/chrome/replaybrowser.yaml
mods/ra/chrome/dropdowns.yaml
mods/ra/chrome/modchooser.yaml
mods/ra/chrome/cheats.yaml
mods/ra/chrome/musicplayer.yaml
mods/ra/chrome/tooltips.yaml

BIN
mods/ra/preview.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

View File

@@ -41,19 +41,12 @@ Background@INSTALL_PANEL:
Height:25
Text:Use CD
Font:Bold
Button@MODS_BUTTON:
X:PARENT_RIGHT - 250
Y:PARENT_BOTTOM - 45
Width:110
Height:25
Text:Change Mod
Font:Bold
Button@QUIT_BUTTON:
Button@BACK_BUTTON:
X:PARENT_RIGHT - 130
Y:PARENT_BOTTOM - 45
Width:110
Height:25
Text:Quit
Text:Back
Font:Bold
Background@INSTALL_DOWNLOAD_PANEL:

View File

@@ -2,7 +2,7 @@ Metadata:
Title: Tiberian Sun
Description: Developer stub, not yet ready for release!
Version: {DEV_VERSION}
Author: The OpenRA Developers
Author: the OpenRA Developers
Folders:
.
@@ -119,7 +119,6 @@ ChromeLayout:
mods/ra/chrome/directconnect.yaml
mods/ra/chrome/replaybrowser.yaml
mods/ra/chrome/dropdowns.yaml
mods/ra/chrome/modchooser.yaml
mods/ra/chrome/cheats.yaml
mods/ra/chrome/musicplayer.yaml
mods/ra/chrome/tooltips.yaml