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

            // allow the original implementation to execute
            return(true);
        }
Exemplo 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();
            }
        }