diff --git a/src/Core/Input/CursorUnlocker.cs b/src/Core/Input/CursorUnlocker.cs index 419912f..7cb3d5c 100644 --- a/src/Core/Input/CursorUnlocker.cs +++ b/src/Core/Input/CursorUnlocker.cs @@ -89,7 +89,7 @@ namespace UnityExplorer.Core.Input public static void SetEventSystem() { - // temp disabled for new InputSystem + // not overriding EventSystem for new InputSystem, dont seem to need to. if (InputManager.CurrentType == InputType.InputSystem) return; @@ -112,6 +112,7 @@ namespace UnityExplorer.Core.Input public static void ReleaseEventSystem() { + // not overriding EventSystem for new InputSystem, dont seem to need to. if (InputManager.CurrentType == InputType.InputSystem) return; diff --git a/src/Core/TestClass.cs b/src/Core/TestClass.cs index e0ee4cc..de489bb 100644 --- a/src/Core/TestClass.cs +++ b/src/Core/TestClass.cs @@ -7,6 +7,8 @@ namespace UnityExplorer { public static class TestClass { + public static UI.Main.PanelDragger.ResizeTypes flags = UI.Main.PanelDragger.ResizeTypes.NONE; + #if CPP public static string testStringOne = "Test"; public static Il2CppSystem.Object testStringTwo = "string boxed as cpp object"; diff --git a/src/ExplorerCore.cs b/src/ExplorerCore.cs index 9d769b9..3193e4d 100644 --- a/src/ExplorerCore.cs +++ b/src/ExplorerCore.cs @@ -13,7 +13,7 @@ namespace UnityExplorer public class ExplorerCore { public const string NAME = "UnityExplorer"; - public const string VERSION = "3.3.7"; + public const string VERSION = "3.3.8"; public const string AUTHOR = "Sinai"; public const string GUID = "com.sinai.unityexplorer"; @@ -48,7 +48,7 @@ namespace UnityExplorer Log($"{NAME} {VERSION} initialized."); - // InspectorManager.Instance.Inspect(typeof(TestClass)); + //InspectorManager.Instance.Inspect(typeof(TestClass)); } public static void Update() diff --git a/src/UI/InteractiveValues/InteractiveEnum.cs b/src/UI/InteractiveValues/InteractiveEnum.cs index 002d0ed..5384013 100644 --- a/src/UI/InteractiveValues/InteractiveEnum.cs +++ b/src/UI/InteractiveValues/InteractiveEnum.cs @@ -94,7 +94,7 @@ namespace UnityExplorer.UI.InteractiveValues { base.RefreshUIForValue(); - if (m_subContentConstructed) + if (m_subContentConstructed && !(this is InteractiveFlags)) { m_dropdownText.text = Value?.ToString() ?? ""; } diff --git a/src/UI/InteractiveValues/InteractiveFlags.cs b/src/UI/InteractiveValues/InteractiveFlags.cs index 970bad0..48b94dc 100644 --- a/src/UI/InteractiveValues/InteractiveFlags.cs +++ b/src/UI/InteractiveValues/InteractiveFlags.cs @@ -26,8 +26,6 @@ namespace UnityExplorer.UI.InteractiveValues public override void OnValueUpdated() { - base.OnValueUpdated(); - if (Owner.CanWrite) { var enabledNames = new List(); @@ -37,10 +35,10 @@ namespace UnityExplorer.UI.InteractiveValues enabledNames.AddRange(enabled); for (int i = 0; i < m_values.Length; i++) - { m_enabledFlags[i] = enabledNames.Contains(m_values[i].Value); - } } + + base.OnValueUpdated(); } public override void RefreshUIForValue() diff --git a/src/UI/Main/CSConsole/CSharpConsole.cs b/src/UI/Main/CSConsole/CSharpConsole.cs index c1ccccf..19d6dc2 100644 --- a/src/UI/Main/CSConsole/CSharpConsole.cs +++ b/src/UI/Main/CSConsole/CSharpConsole.cs @@ -59,7 +59,7 @@ namespace UnityExplorer.UI.Main.CSConsole ResetConsole(false); // Make sure compiler is supported on this platform - Evaluator.Compile(""); + Evaluator.Compile("new object();"); return true; } @@ -73,6 +73,8 @@ namespace UnityExplorer.UI.Main.CSConsole ExplorerCore.LogWarning(info); + this.RefNavbarButton.GetComponentInChildren().text += " (disabled)"; + return false; } }