public static bool Prefix() { // set default background color BackgroundColorManager.ResetBackgroundColor(); // allow the original implementation to execute return(true); }
public static void Postfix() { // set default background color if game is no longer running bool?running = XRL.Core.XRLCore.Core?.Game?.Running; if (running != null && !running.Value) { BackgroundColorManager.ResetBackgroundColor(); } }
public static bool Prefix() { BackgroundColorManager.Update(); return(true); }