- remove debug load eye menu, since you can use debug action

- add button to warp back to solar system
This commit is contained in:
JohnCorby 2022-01-07 18:32:23 -08:00
parent 4173816acb
commit 6c3182a85f
2 changed files with 8 additions and 5 deletions

View File

@ -222,15 +222,11 @@ namespace QSB.Menus
CreateCommonPopups();
ClientButton = MenuApi.TitleScreen_MakeMenuOpenButton("CONNECT TO MULTIPLAYER", _ClientButtonIndex, IPPopup);
var loadEye = MenuApi.TitleScreen_MakeSceneLoadButton("debug load eye", _ClientButtonIndex + 1, SubmitActionLoadScene.LoadableScenes.EYE);
_loadingText = ClientButton.transform.GetChild(0).GetChild(1).GetComponent<Text>();
ResumeGameButton = GameObject.Find("MainMenuLayoutGroup/Button-ResumeGame");
NewGameButton = GameObject.Find("MainMenuLayoutGroup/Button-NewGame");
SetButtonActive(loadEye, QSBCore.DebugMode);
if (QSBCore.IsInMultiplayer)
{
SetButtonActive(ClientButton, false);

View File

@ -51,7 +51,7 @@ namespace QSB.Utility
* 7 - Warp to vessel
* 8 - Place warp core into vessel
* 9 - Load eye scene
* 0 -
* 0 - Load solar system scene
*/
if (Keyboard.current[Key.Numpad1].wasPressedThisFrame)
@ -98,6 +98,13 @@ namespace QSB.Utility
PlayerData.SaveWarpedToTheEye(60);
LoadManager.LoadSceneAsync(OWScene.EyeOfTheUniverse, true, LoadManager.FadeType.ToWhite);
}
if (Keyboard.current[Key.Numpad0].wasPressedThisFrame)
{
PlayerData._currentGameSave.warpedToTheEye = false;
PlayerData.SaveCurrentGame();
LoadManager.LoadSceneAsync(OWScene.SolarSystem, true, LoadManager.FadeType.ToBlack);
}
}
}
}