static void Prefix() { if (ModUtilities.IsOnMainMenu && !IGConsole.Shown) { var ver = new Version(PiTUNG.FrameworkVersion.Major, PiTUNG.FrameworkVersion.Minor, PiTUNG.FrameworkVersion.Build); string str = $"<b>PiTUNG v{ver} enabled!</b>\nLoaded mods: " + Bootstrapper.ModCount; if (UpdateChecker.IsUpdateAvailable) { ModUtilities.Graphics.DrawText("<b>Update available</b>", new Vector2(6, 36), Color.black); ModUtilities.Graphics.DrawText("<b><color=#00ff00>Update available</color></b>", new Vector2(5, 35), Color.white); } ModUtilities.Graphics.DrawText(str, new Vector2(5, 5), Color.white, true); ModsScreen.Instance.Draw(); } HologramManager.Draw(); foreach (var item in ElementsToBeDrawn) { item.Draw(); } ElementsToBeDrawn.Clear(); Mod.CallOnAllMods(o => o.OnGUI()); Components.CustomMenu.Instance.Draw(); ConfigMenu.Instance.Render(); IGConsole.Draw(); // Drawn last so that it stays on top }