mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
## Bug fixes - "Orphaned" signalscope reticles are disabled instead of being stuck on screen when a signal is disabled (fixes #925 )
This commit is contained in:
commit
3a0eabfe99
@ -0,0 +1,20 @@
|
|||||||
|
using HarmonyLib;
|
||||||
|
|
||||||
|
namespace NewHorizons.Patches.SignalPatches
|
||||||
|
{
|
||||||
|
[HarmonyPatch(typeof(SignalscopeReticleController))]
|
||||||
|
public static class SignalScopeReticleControllerPatches
|
||||||
|
{
|
||||||
|
[HarmonyPostfix]
|
||||||
|
[HarmonyPatch(nameof(SignalscopeReticleController.UpdateBrackets))]
|
||||||
|
public static void SignalscopeReticleController_UpdateBrackets(SignalscopeReticleController __instance)
|
||||||
|
{
|
||||||
|
var listSignals = Locator.GetAudioSignals();
|
||||||
|
for (int i = listSignals.Count; i < __instance._clonedLeftBrackets.Count; i++)
|
||||||
|
{
|
||||||
|
__instance._clonedLeftBrackets[i].enabled = false;
|
||||||
|
__instance._clonedRightBrackets[i].enabled = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user