diff --git a/Makefile b/Makefile index 9d381cc05d..d216d0f6e6 100644 --- a/Makefile +++ b/Makefile @@ -313,12 +313,11 @@ dependencies: $(os-dependencies) all-dependencies: cli-dependencies windows-dependencies osx-dependencies -version: mods/ra/mod.yaml mods/cnc/mod.yaml mods/d2k/mod.yaml mods/ts/mod.yaml mods/modchooser/mod.yaml mods/all/mod.yaml +version: mods/ra/mod.yaml mods/cnc/mod.yaml mods/d2k/mod.yaml mods/ts/mod.yaml mods/modcontent/mod.yaml mods/all/mod.yaml @for i in $? ; do \ awk '{sub("Version:.*$$","Version: $(VERSION)"); print $0}' $${i} > $${i}.tmp && \ - awk '{sub("\tmodchooser:.*$$","\tmodchooser: $(VERSION)"); print $0}' $${i}.tmp > $${i}.tmp2 && \ - awk '{sub("/[^/]*: User$$", "/$(VERSION): User"); print $0}' $${i}.tmp2 > $${i} && \ - rm $${i}.tmp $${i}.tmp2; \ + awk '{sub("/[^/]*: User$$", "/$(VERSION): User"); print $0}' $${i}.tmp > $${i} && \ + rm $${i}.tmp; \ done docs: utility mods version @@ -344,7 +343,7 @@ install-core: default @$(CP_R) mods/ra "$(DATA_INSTALL_DIR)/mods/" @$(CP_R) mods/d2k "$(DATA_INSTALL_DIR)/mods/" @$(INSTALL_PROGRAM) $(mod_d2k_TARGET) "$(DATA_INSTALL_DIR)/mods/d2k" - @$(CP_R) mods/modchooser "$(DATA_INSTALL_DIR)/mods/" + @$(CP_R) mods/modcontent "$(DATA_INSTALL_DIR)/mods/" @$(INSTALL_DATA) "global mix database.dat" "$(DATA_INSTALL_DIR)/global mix database.dat" @$(INSTALL_DATA) "GeoLite2-Country.mmdb.gz" "$(DATA_INSTALL_DIR)/GeoLite2-Country.mmdb.gz" diff --git a/OpenRA.Mods.Common/LoadScreens/ModContentLoadScreen.cs b/OpenRA.Mods.Common/LoadScreens/ModContentLoadScreen.cs index a5b190edaf..e860e65bc5 100644 --- a/OpenRA.Mods.Common/LoadScreens/ModContentLoadScreen.cs +++ b/OpenRA.Mods.Common/LoadScreens/ModContentLoadScreen.cs @@ -56,7 +56,7 @@ namespace OpenRA.Mods.Common.LoadScreens var content = selectedMod.Get(Game.ModData.ObjectCreator); - Ui.LoadWidget("MODCHOOSER_BACKGROUND", Ui.Root, new WidgetArgs()); + Ui.LoadWidget("MODCONTENT_BACKGROUND", Ui.Root, new WidgetArgs()); if (!IsModInstalled(content)) { diff --git a/OpenRA.Mods.Common/ModContent.cs b/OpenRA.Mods.Common/ModContent.cs index 5481875ced..9f32c42bcf 100644 --- a/OpenRA.Mods.Common/ModContent.cs +++ b/OpenRA.Mods.Common/ModContent.cs @@ -85,7 +85,7 @@ namespace OpenRA public readonly string InstallPromptMessage; public readonly string QuickDownload; public readonly string HeaderMessage; - public readonly string ContentInstallerMod = "modchooser"; + public readonly string ContentInstallerMod = "modcontent"; [FieldLoader.LoadUsing("LoadPackages")] public readonly Dictionary Packages = new Dictionary(); diff --git a/OpenRA.Mods.Common/Widgets/Logic/MainMenuLogic.cs b/OpenRA.Mods.Common/Widgets/Logic/MainMenuLogic.cs index f7a6d22308..b54119ff00 100644 --- a/OpenRA.Mods.Common/Widgets/Logic/MainMenuLogic.cs +++ b/OpenRA.Mods.Common/Widgets/Logic/MainMenuLogic.cs @@ -93,7 +93,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic // so we can't do this inside the input handler. Game.RunAfterTick(() => { - Game.InitializeMod("modchooser", new Arguments(new[] { "Content.Mod=" + modData.Manifest.Id })); + Game.InitializeMod("modcontent", new Arguments(new[] { "Content.Mod=" + modData.Manifest.Id })); }); }; @@ -287,7 +287,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic { // Send the mod and engine version to support version-filtered news (update prompts) newsURL += "?version={0}&mod={1}&modversion={2}".F( - Uri.EscapeUriString(Game.Mods["modchooser"].Metadata.Version), + Uri.EscapeUriString(Game.Mods["modcontent"].Metadata.Version), Uri.EscapeUriString(Game.ModData.Manifest.Id), Uri.EscapeUriString(Game.ModData.Manifest.Metadata.Version)); diff --git a/OpenRA.Mods.Common/Widgets/Logic/MultiplayerLogic.cs b/OpenRA.Mods.Common/Widgets/Logic/MultiplayerLogic.cs index bc006f4f80..d78a241b85 100644 --- a/OpenRA.Mods.Common/Widgets/Logic/MultiplayerLogic.cs +++ b/OpenRA.Mods.Common/Widgets/Logic/MultiplayerLogic.cs @@ -326,7 +326,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic }; var queryURL = services.ServerList + "games?version={0}&mod={1}&modversion={2}".F( - Uri.EscapeUriString(Game.Mods["modchooser"].Metadata.Version), + Uri.EscapeUriString(Game.Mods["modcontent"].Metadata.Version), Uri.EscapeUriString(Game.ModData.Manifest.Id), Uri.EscapeUriString(Game.ModData.Manifest.Metadata.Version)); diff --git a/make.ps1 b/make.ps1 index 176c670959..c829a8c789 100644 --- a/make.ps1 +++ b/make.ps1 @@ -74,16 +74,12 @@ function Version-Command if ($version -ne $null) { - $mods = @("mods/ra/mod.yaml", "mods/cnc/mod.yaml", "mods/d2k/mod.yaml", "mods/ts/mod.yaml", "mods/modchooser/mod.yaml", "mods/all/mod.yaml") + $mods = @("mods/ra/mod.yaml", "mods/cnc/mod.yaml", "mods/d2k/mod.yaml", "mods/ts/mod.yaml", "mods/modcontent/mod.yaml", "mods/all/mod.yaml") foreach ($mod in $mods) { $replacement = (gc $mod) -Replace "Version:.*", ("Version: {0}" -f $version) sc $mod $replacement - # The tab is a workaround for not replacing inside of "Packages:" - $replacement = (gc $mod) -Replace " modchooser:.*", (" modchooser: {0}" -f $version) - sc $mod $replacement - $prefix = $(gc $mod) | Where { $_.ToString().EndsWith(": User") } if ($prefix -and $prefix.LastIndexOf("/") -ne -1) { diff --git a/mods/modchooser/chrome.png b/mods/modcontent/chrome.png similarity index 100% rename from mods/modchooser/chrome.png rename to mods/modcontent/chrome.png diff --git a/mods/modchooser/chrome.yaml b/mods/modcontent/chrome.yaml similarity index 99% rename from mods/modchooser/chrome.yaml rename to mods/modcontent/chrome.yaml index cea14509ba..58d2169d52 100644 --- a/mods/modchooser/chrome.yaml +++ b/mods/modcontent/chrome.yaml @@ -155,7 +155,7 @@ panel-rule: chrome.png background: chrome.png background:0,0,1024,480 -modchooser: chrome.png +modcontent: chrome.png logo: 0,576,280,128 leftarrow:384,512,20,64 rightarrow:404,512,20,64 diff --git a/mods/modchooser/content.yaml b/mods/modcontent/content.yaml similarity index 99% rename from mods/modchooser/content.yaml rename to mods/modcontent/content.yaml index caee857ccf..dfe0da4a39 100644 --- a/mods/modchooser/content.yaml +++ b/mods/modcontent/content.yaml @@ -56,7 +56,7 @@ Background@CONTENT_PANEL: Y: 1 Width: 20 Height: 20 - ImageCollection: modchooser + ImageCollection: modcontent ImageName: cdicon TooltipContainer: TOOLTIP_CONTAINER TooltipTemplate: DISC_TOOLTIP @@ -341,7 +341,7 @@ Background@CONTENT_PROMPT_PANEL: Font: Bold Key: escape -Background@MODCHOOSER_BACKGROUND: +Background@MODCONTENT_BACKGROUND: Background: background Width: WINDOW_RIGHT Height: WINDOW_BOTTOM diff --git a/mods/modchooser/cursor.pal b/mods/modcontent/cursor.pal similarity index 100% rename from mods/modchooser/cursor.pal rename to mods/modcontent/cursor.pal diff --git a/mods/modchooser/cursor.shp b/mods/modcontent/cursor.shp similarity index 100% rename from mods/modchooser/cursor.shp rename to mods/modcontent/cursor.shp diff --git a/mods/modchooser/cursors.yaml b/mods/modcontent/cursors.yaml similarity index 100% rename from mods/modchooser/cursors.yaml rename to mods/modcontent/cursors.yaml diff --git a/mods/modchooser/metrics.yaml b/mods/modcontent/metrics.yaml similarity index 100% rename from mods/modchooser/metrics.yaml rename to mods/modcontent/metrics.yaml diff --git a/mods/modchooser/mod.yaml b/mods/modcontent/mod.yaml similarity index 77% rename from mods/modchooser/mod.yaml rename to mods/modcontent/mod.yaml index 488606e845..9b0fae66a3 100644 --- a/mods/modchooser/mod.yaml +++ b/mods/modcontent/mod.yaml @@ -6,30 +6,30 @@ Metadata: Packages: . - ./mods/modchooser: modchooser + ./mods/modcontent: modcontent ./mods/common: common Cursors: - modchooser|cursors.yaml + modcontent|cursors.yaml Chrome: - modchooser|chrome.yaml + modcontent|chrome.yaml Assemblies: common|OpenRA.Mods.Common.dll ChromeLayout: - modchooser|content.yaml + modcontent|content.yaml Notifications: - modchooser|notifications.yaml + modcontent|notifications.yaml LoadScreen: ModContentLoadScreen - Image: ./mods/modchooser/chrome.png + Image: ./mods/modcontent/chrome.png ChromeMetrics: common|metrics.yaml - modchooser|metrics.yaml + modcontent|metrics.yaml Fonts: Regular: diff --git a/mods/modchooser/notifications.yaml b/mods/modcontent/notifications.yaml similarity index 100% rename from mods/modchooser/notifications.yaml rename to mods/modcontent/notifications.yaml diff --git a/packaging/linux/openra.appdata.xml b/packaging/linux/openra.appdata.xml index 24cb4006f9..9a5c215115 100644 --- a/packaging/linux/openra.appdata.xml +++ b/packaging/linux/openra.appdata.xml @@ -26,10 +26,6 @@ - http://www.openra.net/images/appdata/modchooser.png - Mod selection screen - - http://www.openra.net/images/appdata/ingame-ra.png Red Alert mod diff --git a/packaging/package-all.sh b/packaging/package-all.sh index 84ed6591ac..a77aeee678 100755 --- a/packaging/package-all.sh +++ b/packaging/package-all.sh @@ -33,7 +33,7 @@ markdown Lua-API.md > Lua-API.html # List of files that are packaged on all platforms FILES=('OpenRA.Game.exe' 'OpenRA.Game.exe.config' 'OpenRA.Utility.exe' 'OpenRA.Server.exe' 'OpenRA.Platforms.Default.dll' \ -'lua' 'glsl' 'mods/common' 'mods/ra' 'mods/cnc' 'mods/d2k' 'mods/modchooser' \ +'lua' 'glsl' 'mods/common' 'mods/ra' 'mods/cnc' 'mods/d2k' 'mods/modcontent' \ 'AUTHORS' 'COPYING' 'README.html' 'CONTRIBUTING.html' 'DOCUMENTATION.html' 'CHANGELOG.html' \ 'global mix database.dat' 'GeoLite2-Country.mmdb.gz') diff --git a/packaging/windows/OpenRA.nsi b/packaging/windows/OpenRA.nsi index 3412c2e4d7..92d6d382d8 100644 --- a/packaging/windows/OpenRA.nsi +++ b/packaging/windows/OpenRA.nsi @@ -79,7 +79,7 @@ Section "Game" GAME File /r "${SRCDIR}\mods\cnc" File /r "${SRCDIR}\mods\d2k" File /r "${SRCDIR}\mods\ra" - File /r "${SRCDIR}\mods\modchooser" + File /r "${SRCDIR}\mods\modcontent" SetOutPath "$INSTDIR" File "${SRCDIR}\OpenRA.exe" diff --git a/utility.cmd b/utility.cmd index 0b2c92b9df..2a471885df 100644 --- a/utility.cmd +++ b/utility.cmd @@ -7,12 +7,6 @@ call OpenRA.Utility.exe echo Enter --exit to exit set /P mod=Please enter a modname: OpenRA.Utility.exe if /I "%mod%" EQU "--exit" (exit) -if /I "%mod%" EQU "modchooser" ( -echo. -echo Sorry, this mod isn't available at the moment! -echo. -goto choosemod -) if /I "%mod%" EQU "ra" (goto help) if /I "%mod%" EQU "cnc" (goto help) if /I "%mod%" EQU "ts" (goto help)