Пример #1
0
        public static bool Prefix()
        {
            // set default background color
            BackgroundColorManager.ResetBackgroundColor();

            // allow the original implementation to execute
            return(true);
        }
Пример #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();
            }
        }
Пример #3
0
 public static bool Prefix()
 {
     BackgroundColorManager.Update();
     return(true);
 }