示例#1
0
        public void FastUpdateAfter()
        {
            if (Global.Config.RunLuaDuringTurbo && Has <LuaConsole>())
            {
                LuaConsole.ResumeScripts(true);
            }

            GlobalWin.API.NewFrame();

            var afterList = _tools.Where(t => !t.UpdateBefore);

            foreach (var tool in afterList)
            {
                if (!tool.IsDisposed ||
                    (tool is RamWatch && Global.Config.DisplayRamWatch))                        // RAM Watch hack, on screen display should run even if RAM Watch is closed
                {
                    tool.FastUpdate();
                }
            }

            if (Global.Config.RunLuaDuringTurbo && Has <LuaConsole>())
            {
                LuaConsole.LuaImp.EndLuaDrawing();
            }
        }
示例#2
0
        public void UpdateToolsAfter(bool fromLua = false)
        {
            if (!fromLua && Has <LuaConsole>())
            {
                LuaConsole.ResumeScripts(true);
            }

            GlobalWin.Tools.UpdateAfter();

            if (Has <LuaConsole>())
            {
                if (!fromLua)
                {
                    LuaConsole.LuaImp.EndLuaDrawing();
                }
            }
        }
示例#3
0
        public void FastUpdateAfter()
        {
            if (Global.Config.RunLuaDuringTurbo && Has <LuaConsole>())
            {
                LuaConsole.ResumeScripts(true);
            }

            var afterList = _tools.Where(x => !x.UpdateBefore);

            foreach (var tool in afterList)
            {
                if (!tool.IsDisposed ||
                    (tool is RamWatch && Global.Config.DisplayRamWatch))                     // Ram Watch hack, on screen display should run even if Ram Watch is closed
                {
                    tool.FastUpdate();
                }
            }
        }