mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Reset color
This commit is contained in:
parent
09ffa4b2bc
commit
a2639993fa
@ -30,6 +30,7 @@ namespace NewHorizons.Handlers
|
||||
ambientLight.transform.SetParent(planetRoot.transform, true);
|
||||
|
||||
InitSubtitles();
|
||||
TitleScreenColourHandler.ResetColour();
|
||||
AudioTypeHandler.Init();
|
||||
|
||||
// Load player data for fact and persistent condition checking
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
using HarmonyLib;
|
||||
using NewHorizons.Utility.Files;
|
||||
using NewHorizons.Utility.OWML;
|
||||
using System.Linq;
|
||||
using UnityEngine;
|
||||
using UnityEngine.SceneManagement;
|
||||
@ -12,6 +13,7 @@ namespace NewHorizons.Handlers.TitleScreen
|
||||
{
|
||||
public static void SetColour(Color colour)
|
||||
{
|
||||
NHLogger.LogVerbose("Setting title screen colour to " + colour.ToString());
|
||||
colour.a = 1;
|
||||
var buttons = GameObject.FindObjectOfType<TitleScreenManager>()._mainMenu.GetComponentsInChildren<Text>();
|
||||
var footer = GameObject.Find("TitleMenu/TitleCanvas/FooterBlock").GetComponentsInChildren<Text>();
|
||||
@ -25,6 +27,11 @@ namespace NewHorizons.Handlers.TitleScreen
|
||||
GameObject.FindObjectOfType<TitleAnimRenderer>()._logoMaterialClone.mainTexture = logo;
|
||||
}
|
||||
|
||||
public static void ResetColour()
|
||||
{
|
||||
_mainMenuColour = null;
|
||||
}
|
||||
|
||||
[HarmonyPrefix]
|
||||
[HarmonyPatch(typeof(UIStyleApplier), nameof(UIStyleApplier.ChangeColors))]
|
||||
public static bool UIStyleApplier_ChangeColors(UIStyleApplier __instance, UIElementState state)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user