diff --git a/MainTools.cs b/MainTools.cs index e34ca6a..2007f39 100644 --- a/MainTools.cs +++ b/MainTools.cs @@ -1,5 +1,3 @@ -// IGNORE, SKIPPING CURRENT RELEASE #--ref ${BepInExRoot}/plugins/UniverseLib.Mono.dll - using System; using Modding.Humankind.DevTools; using Modding.Humankind.DevTools.DeveloperTools.UI; diff --git a/PluginInfo.cs b/PluginInfo.cs index 968b261..826b8aa 100644 --- a/PluginInfo.cs +++ b/PluginInfo.cs @@ -4,7 +4,7 @@ internal static class PluginInfo { public const string PLUGIN_GUID = "DevTools.Humankind.GUITools"; public const string PLUGIN_NAME = "GUITools"; - public const string PLUGIN_VERSION = "2.2.1.0"; + public const string PLUGIN_VERSION = "2.2.2.0"; /// /// Change REVISION value to force a reset of player preferences. @@ -13,7 +13,7 @@ internal static class PluginInfo public const string DISPLAY_NAME = "GUI Tools"; public const string FULL_DISPLAY_NAME = "HUMANKIND GUI Tools"; - public const string MOD_IO_URL_TEXT = "humankind.mod.io/gui-tools"; + public const string MOD_IO_URL_TEXT = "mod.io/g/humankind/m/gui-tools"; public const string MOD_IO_URL = "https://mod.io/g/humankind/m/gui-tools"; } } diff --git a/UI/Experimental/ScenarioEditorToolWindow.cs b/UI/Experimental/ScenarioEditorToolWindow.cs index c6958a6..d3f6ea9 100644 --- a/UI/Experimental/ScenarioEditorToolWindow.cs +++ b/UI/Experimental/ScenarioEditorToolWindow.cs @@ -75,7 +75,7 @@ public override void OnDrawUI() private int _currentEmpireIndex = -1; private int _currentAnimalGroupIndex = -1; private Vector2 _scenarioDefinitionScrollPosition; - private Vector2 _toolbarScrollPosition; + // private Vector2 _toolbarScrollPosition; private StaticGrid _editorTabsGrid; private GUIStyle CustomContainerStyle { get; set; } diff --git a/UI/Profiling/MemoryProfilerToolWindow.cs b/UI/Profiling/MemoryProfilerToolWindow.cs index 95f843a..04969ce 100644 --- a/UI/Profiling/MemoryProfilerToolWindow.cs +++ b/UI/Profiling/MemoryProfilerToolWindow.cs @@ -109,13 +109,13 @@ private void CaptureMemoryDump() GC.Collect(); int sceneCount = SceneManager.sceneCount; for (int index = 0; index < sceneCount; ++index) - this.memoryAnalyzer.StartAnalyze((object)SceneManager.GetSceneAt(index)); + this.memoryAnalyzer.AddRootObject((object)SceneManager.GetSceneAt(index)); WeakReference[] objects; Profiler.GetObjectsForMemoryAnalysis(out objects); foreach (WeakReference weakReference in objects) { if (weakReference.IsAlive) - this.memoryAnalyzer.StartAnalyze(weakReference.Target); + this.memoryAnalyzer.AddRootObject(weakReference.Target); } this.capturing = true; GC.Collect(); diff --git a/VERSION b/VERSION index 38c130d..5626b2f 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -2.2.1.0 +2.2.2.0