Skip to content

Commit

Permalink
Merge pull request #19 from Theadd/develop
Browse files Browse the repository at this point in the history
v2.2.2 with minor compatibility changes to match current game binaries
  • Loading branch information
Theadd authored Jun 3, 2023
2 parents 23b5fc5 + 5176d8e commit 39c759c
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 8 deletions.
2 changes: 0 additions & 2 deletions MainTools.cs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
4 changes: 2 additions & 2 deletions PluginInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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";

/// <summary>
/// Change REVISION value to force a reset of player preferences.
Expand All @@ -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";
}
}
2 changes: 1 addition & 1 deletion UI/Experimental/ScenarioEditorToolWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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; }
Expand Down
4 changes: 2 additions & 2 deletions UI/Profiling/MemoryProfilerToolWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.2.1.0
2.2.2.0

0 comments on commit 39c759c

Please sign in to comment.