public void UpdateToolsAfter(bool fromLua = false) { if (!fromLua && Has <LuaConsole>()) { LuaConsole.ResumeScripts(true); } GlobalWin.Tools.UpdateAfter(); if (Has <LuaConsole>()) { if (!fromLua) { LuaConsole.EndLuaDrawing(); } } }
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(); } } if (Global.Config.RunLuaDuringTurbo && Has <LuaConsole>()) { LuaConsole.EndLuaDrawing(); } }