Esempio n. 1
0
        public static bool Prefix()
        {
            // set default background color
            BackgroundColorManager.ResetBackgroundColor();

            // allow the original implementation to execute
            return(true);
        }
Esempio n. 2
0
        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();
            }
        }
Esempio n. 3
0
 public static bool Prefix()
 {
     BackgroundColorManager.Update();
     return(true);
 }