diff --git a/OpenRA.Mods.D2k/Widgets/Logic/D2kInstallLogic.cs b/OpenRA.Mods.D2k/Widgets/Logic/D2kInstallLogic.cs index 7f620676ba..b5ef8b5cc5 100644 --- a/OpenRA.Mods.D2k/Widgets/Logic/D2kInstallLogic.cs +++ b/OpenRA.Mods.D2k/Widgets/Logic/D2kInstallLogic.cs @@ -37,6 +37,16 @@ namespace OpenRA.Mods.D2k.Widgets.Logic Ui.OpenWindow("EXTRACT_GAMEFILES_PANEL", args); panel.Get("QUIT_BUTTON").OnClick = Game.Exit; + + panel.Get("MODS_BUTTON").OnClick = () => + { + Ui.OpenWindow("MODS_PANEL", new WidgetArgs() + { + { "onExit", () => {} }, + // Close this panel + { "onSwitch", Ui.CloseWindow }, + }); + }; } } } diff --git a/OpenRA.Mods.RA/Widgets/Logic/RAInstallLogic.cs b/OpenRA.Mods.RA/Widgets/Logic/RAInstallLogic.cs index aa1428bded..1a7ec18550 100644 --- a/OpenRA.Mods.RA/Widgets/Logic/RAInstallLogic.cs +++ b/OpenRA.Mods.RA/Widgets/Logic/RAInstallLogic.cs @@ -34,6 +34,16 @@ namespace OpenRA.Mods.RA.Widgets.Logic Ui.OpenWindow("INSTALL_FROMCD_PANEL", args); panel.Get("QUIT_BUTTON").OnClick = Game.Exit; + + panel.Get("MODS_BUTTON").OnClick = () => + { + Ui.OpenWindow("MODS_PANEL", new WidgetArgs() + { + { "onExit", () => {} }, + // Close this panel + { "onSwitch", Ui.CloseWindow }, + }); + }; } } } diff --git a/mods/d2k/chrome/gameinit.yaml b/mods/d2k/chrome/gameinit.yaml index 28cfb35b06..d847aa27fc 100644 --- a/mods/d2k/chrome/gameinit.yaml +++ b/mods/d2k/chrome/gameinit.yaml @@ -2,7 +2,7 @@ Background@INSTALL_PANEL: Logic:D2kInstallLogic X:(WINDOW_RIGHT - WIDTH)/2 Y:(WINDOW_BOTTOM - HEIGHT)/2 - Width:600 + Width:630 Height:350 Children: Label@TITLE: @@ -62,31 +62,38 @@ Background@INSTALL_PANEL: Height:25 Text: Put in your Dune 2000 CD and click "From CD" to extract game assets including music. Align:Center - Button@EXTRACT_BUTTON: - X:PARENT_RIGHT - 280 - Y:PARENT_BOTTOM - 45 - Width:100 - Height:25 - Text:Extract Data - Font:Bold - Button@COPY_BUTTON: - X:PARENT_RIGHT - 420 - Y:PARENT_BOTTOM - 45 - Width:90 - Height:25 - Text:From CD - Font:Bold Button@DOWNLOAD_BUTTON: - X:PARENT_RIGHT - 560 + X:20 Y:PARENT_BOTTOM - 45 - Width:120 + Width:110 Height:25 Text:Download Font:Bold - Button@QUIT_BUTTON: - X:PARENT_RIGHT - 140 + Button@COPY_BUTTON: + X:140 Y:PARENT_BOTTOM - 45 - Width:120 + Width:110 + Height:25 + Text:From CD + Font:Bold + Button@EXTRACT_BUTTON: + X:260 + Y:PARENT_BOTTOM - 45 + Width:110 + Height:25 + Text:Extract Data + 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: + X:PARENT_RIGHT - 130 + Y:PARENT_BOTTOM - 45 + Width:110 Height:25 Text:Quit Font:Bold diff --git a/mods/ra/chrome/gameinit.yaml b/mods/ra/chrome/gameinit.yaml index 41b0fba569..4f7d72e988 100644 --- a/mods/ra/chrome/gameinit.yaml +++ b/mods/ra/chrome/gameinit.yaml @@ -2,7 +2,7 @@ Background@INSTALL_PANEL: Logic:RAInstallLogic X:(WINDOW_RIGHT - WIDTH)/2 Y:(WINDOW_BOTTOM - HEIGHT)/2 - Width:500 + Width:510 Height:160 Children: Label@TITLE: @@ -28,23 +28,30 @@ Background@INSTALL_PANEL: Text:Content can be downloaded, or copied from the install CD. Align:Center Button@DOWNLOAD_BUTTON: - X:PARENT_RIGHT - 280 + X:20 Y:PARENT_BOTTOM - 45 - Width:120 + Width:110 Height:25 Text:Download Font:Bold Button@INSTALL_BUTTON: - X:PARENT_RIGHT - 420 + X:140 Y:PARENT_BOTTOM - 45 - Width:120 + Width:110 Height:25 Text:Use CD Font:Bold - Button@QUIT_BUTTON: - X:PARENT_RIGHT - 140 + Button@MODS_BUTTON: + X:PARENT_RIGHT - 250 Y:PARENT_BOTTOM - 45 - Width:120 + Width:110 + Height:25 + Text:Change Mod + Font:Bold + Button@QUIT_BUTTON: + X:PARENT_RIGHT - 130 + Y:PARENT_BOTTOM - 45 + Width:110 Height:25 Text:Quit Font:Bold