Skip to content

Commit

Permalink
remove prop placer (and all debug menu stuff actually) (#1015)
Browse files Browse the repository at this point in the history
resolves #1013 

this also removes the other submenu, which had to do with ship logs, but
it was all empty methods for 3 years :D
so that means no more debug submenus which means debug menu is now
useless so bye bye debug menu
  • Loading branch information
xen-42 authored Jan 6, 2025
2 parents 3b29e25 + 46af557 commit 8e76ba9
Show file tree
Hide file tree
Showing 11 changed files with 15 additions and 1,202 deletions.
1 change: 1 addition & 0 deletions NewHorizons/Builder/Props/DetailBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ private static void SceneManager_sceneUnloaded(Scene scene)
_detailInfoToCorrespondingSpawnedGameObject.Clear();
}

// i dont like how this is just a random collection in this class but quantum guy uses it :(
public static GameObject GetSpawnedGameObjectByDetailInfo(DetailInfo detail)
{
if (!_detailInfoToCorrespondingSpawnedGameObject.ContainsKey(detail))
Expand Down
1 change: 0 additions & 1 deletion NewHorizons/External/SerializableData/MVector2.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#region

using NewHorizons.Utility.DebugTools.Menu;
using NewHorizons.Utility.OWML;
using Newtonsoft.Json;
using System;
Expand Down
5 changes: 0 additions & 5 deletions NewHorizons/Main.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
using NewHorizons.Streaming;
using NewHorizons.Utility;
using NewHorizons.Utility.DebugTools;
using NewHorizons.Utility.DebugTools.Menu;
using NewHorizons.Utility.Files;
using NewHorizons.Utility.OuterWilds;
using NewHorizons.Utility.OWML;
Expand Down Expand Up @@ -142,7 +141,6 @@ public override void Configure(IModConfig config)
if (currentScene == "SolarSystem")
{
DebugReload.UpdateReloadButton();
DebugMenu.UpdatePauseMenuButton();
}

if (VerboseLogs) NHLogger.UpdateLogLevel(NHLogger.LogType.Verbose);
Expand Down Expand Up @@ -291,7 +289,6 @@ public override void SetupPauseMenu(IPauseMenuManager pauseMenu)
{
base.SetupPauseMenu(pauseMenu);
DebugReload.InitializePauseMenu(pauseMenu);
DebugMenu.InitializePauseMenu(pauseMenu);
}

public void OnDestroy()
Expand Down Expand Up @@ -622,8 +619,6 @@ private void OnSystemReady(bool shouldWarpInFromShip, bool shouldWarpInFromVesse
}

Locator.GetPlayerBody().gameObject.AddComponent<DebugRaycaster>();
Locator.GetPlayerBody().gameObject.AddComponent<DebugPropPlacer>();
Locator.GetPlayerBody().gameObject.AddComponent<DebugMenu>();
Locator.GetPlayerBody().gameObject.AddComponent<PlayerShipAtmosphereDetectorFix>();
if (HasDLC) Locator.GetPlayerBody().gameObject.AddComponent<LanternExtinguisher>();

Expand Down
312 changes: 0 additions & 312 deletions NewHorizons/Utility/DebugTools/DebugPropPlacer.cs

This file was deleted.

Loading

0 comments on commit 8e76ba9

Please sign in to comment.