mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Disable ship log builder for now
This commit is contained in:
parent
e3015b51e9
commit
085ddbf3d3
@ -13,6 +13,7 @@ namespace NewHorizons.Builder.General
|
|||||||
|
|
||||||
public static void Init()
|
public static void Init()
|
||||||
{
|
{
|
||||||
|
/*
|
||||||
var shipLogRoot = GameObject.Find("Ship_Body/Module_Cabin/Systems_Cabin/ShipLogPivot/ShipLog/ShipLogPivot/ShipLogCanvas");
|
var shipLogRoot = GameObject.Find("Ship_Body/Module_Cabin/Systems_Cabin/ShipLogPivot/ShipLog/ShipLogPivot/ShipLogCanvas");
|
||||||
var starChartLog = GameObject.Instantiate(shipLogRoot.transform.Find("DetectiveMode"), shipLogRoot.transform);
|
var starChartLog = GameObject.Instantiate(shipLogRoot.transform.Find("DetectiveMode"), shipLogRoot.transform);
|
||||||
starChartLog.transform.name = "StarChartMode";
|
starChartLog.transform.name = "StarChartMode";
|
||||||
@ -33,6 +34,7 @@ namespace NewHorizons.Builder.General
|
|||||||
StarChartMode._cardDict = new Dictionary<string, ShipLogEntryCard>();
|
StarChartMode._cardDict = new Dictionary<string, ShipLogEntryCard>();
|
||||||
StarChartMode._cardList = new List<ShipLogEntryCard>();
|
StarChartMode._cardList = new List<ShipLogEntryCard>();
|
||||||
StarChartMode._centerPromptList = detectiveMode.GetComponent<ShipLogDetectiveMode>()._centerPromptList;
|
StarChartMode._centerPromptList = detectiveMode.GetComponent<ShipLogDetectiveMode>()._centerPromptList;
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -339,28 +339,15 @@ namespace NewHorizons.Utility
|
|||||||
return (Locator.GetPlayerRulesetDetector()?.GetPlanetoidRuleset()?.GetGravityVolume() != null);
|
return (Locator.GetPlayerRulesetDetector()?.GetPlanetoidRuleset()?.GetGravityVolume() != null);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Replacing the entire method
|
|
||||||
public static bool OnShipLogControllerUpdate(ShipLogController __instance)
|
public static bool OnShipLogControllerUpdate(ShipLogController __instance)
|
||||||
{
|
{
|
||||||
if (__instance._exiting)
|
if (__instance._exiting
|
||||||
{
|
|| OWInput.GetInputMode() != InputMode.ShipComputer
|
||||||
if (__instance._canvasAnimator.IsComplete())
|
|| __instance._currentMode.AllowCancelInput() && OWInput.IsNewlyPressed(InputLibrary.cancel, InputMode.All)
|
||||||
{
|
|| ShipLogBuilder.StarChartMode == null)
|
||||||
__instance.enabled = false;
|
return true;
|
||||||
__instance._shipLogCanvas.gameObject.SetActive(false);
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
if (OWInput.GetInputMode() != InputMode.ShipComputer)
|
|
||||||
{
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
__instance._exitPrompt.SetVisibility(__instance._currentMode.AllowCancelInput());
|
__instance._exitPrompt.SetVisibility(__instance._currentMode.AllowCancelInput());
|
||||||
if (__instance._currentMode.AllowCancelInput() && OWInput.IsNewlyPressed(InputLibrary.cancel, InputMode.All))
|
|
||||||
{
|
|
||||||
__instance.ExitShipComputer();
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
__instance._currentMode.UpdateMode();
|
__instance._currentMode.UpdateMode();
|
||||||
if (__instance._currentMode.AllowModeSwap() && OWInput.IsNewlyPressed(InputLibrary.swapShipLogMode, InputMode.All))
|
if (__instance._currentMode.AllowModeSwap() && OWInput.IsNewlyPressed(InputLibrary.swapShipLogMode, InputMode.All))
|
||||||
{
|
{
|
||||||
@ -380,7 +367,6 @@ namespace NewHorizons.Utility
|
|||||||
__instance._currentMode.EnterMode(focusedEntryID, null);
|
__instance._currentMode.EnterMode(focusedEntryID, null);
|
||||||
__instance._oneShotSource.PlayOneShot(flag ? global::AudioType.ShipLogEnterDetectiveMode : global::AudioType.ShipLogEnterMapMode, 1f);
|
__instance._oneShotSource.PlayOneShot(flag ? global::AudioType.ShipLogEnterDetectiveMode : global::AudioType.ShipLogEnterMapMode, 1f);
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user