Remove "Core" namespace, move everything in it up one level

This commit is contained in:
Sinai 2022-01-17 19:42:05 +11:00
parent 3984550bb6
commit a73e992a0c
41 changed files with 78 additions and 102 deletions

View File

@ -5,7 +5,7 @@ using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Text; using System.Text;
using UnityEngine; using UnityEngine;
using UnityExplorer.Core.Runtime; using UnityExplorer.Runtime;
using UniverseLib; using UniverseLib;
namespace UnityExplorer.CSConsole namespace UnityExplorer.CSConsole

View File

@ -2,7 +2,7 @@
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Text; using System.Text;
using UnityExplorer.Core.Config; using UnityExplorer.Config;
using UnityExplorer.CacheObject.Views; using UnityExplorer.CacheObject.Views;
namespace UnityExplorer.CacheObject namespace UnityExplorer.CacheObject

View File

@ -4,7 +4,7 @@ using System.Linq;
using System.Reflection; using System.Reflection;
using System.Text; using System.Text;
using UnityEngine; using UnityEngine;
using UnityExplorer.Core.Runtime; using UnityExplorer.Runtime;
using UnityExplorer.CacheObject.Views; using UnityExplorer.CacheObject.Views;
using UnityExplorer.Inspectors; using UnityExplorer.Inspectors;
using UniverseLib.UI.Models; using UniverseLib.UI.Models;

View File

@ -6,7 +6,7 @@ using System.Reflection;
using System.Text; using System.Text;
using UnityEngine; using UnityEngine;
using UnityEngine.UI; using UnityEngine.UI;
using UnityExplorer.Core.Runtime; using UnityExplorer.Runtime;
using UnityExplorer.CacheObject.IValues; using UnityExplorer.CacheObject.IValues;
using UnityExplorer.CacheObject.Views; using UnityExplorer.CacheObject.Views;
using UniverseLib.UI.Models; using UniverseLib.UI.Models;

View File

@ -5,7 +5,7 @@ using System.Linq;
using System.Text; using System.Text;
using UnityEngine; using UnityEngine;
using UnityEngine.UI; using UnityEngine.UI;
using UnityExplorer.Core.Config; using UnityExplorer.Config;
using UnityExplorer.CacheObject; using UnityExplorer.CacheObject;
using UnityExplorer.UI.Widgets; using UnityExplorer.UI.Widgets;
using UnityExplorer.UI; using UnityExplorer.UI;

View File

@ -12,15 +12,11 @@ namespace UnityExplorer.CacheObject.Views
{ {
public class CacheMemberCell : CacheObjectCell public class CacheMemberCell : CacheObjectCell
{ {
//public ReflectionInspector Owner { get; set; }
public CacheMember MemberOccupant => Occupant as CacheMember; public CacheMember MemberOccupant => Occupant as CacheMember;
public GameObject EvaluateHolder; public GameObject EvaluateHolder;
public ButtonRef EvaluateButton; public ButtonRef EvaluateButton;
//public Toggle UpdateToggle;
protected virtual void EvaluateClicked() protected virtual void EvaluateClicked()
{ {
this.MemberOccupant.OnEvaluateClicked(); this.MemberOccupant.OnEvaluateClicked();
@ -38,16 +34,5 @@ namespace UnityExplorer.CacheObject.Views
UIFactory.SetLayoutElement(EvaluateButton.Component.gameObject, minWidth: 100, minHeight: 25); UIFactory.SetLayoutElement(EvaluateButton.Component.gameObject, minWidth: 100, minHeight: 25);
EvaluateButton.OnClick += EvaluateClicked; EvaluateButton.OnClick += EvaluateClicked;
} }
//protected override void ConstructUpdateToggle(GameObject parent)
//{
// // Auto-update toggle
//
// var updateToggle = UIFactory.CreateToggle(parent, "AutoUpdate", out UpdateToggle, out Text autoText);
// UIFactory.SetLayoutElement(updateToggle, minHeight: 25, minWidth: 30, flexibleWidth: 0, flexibleHeight: 0);
// GameObject.Destroy(autoText);
// UpdateToggle.isOn = false;
// UpdateToggle.onValueChanged.AddListener((bool val) => { MemberOccupant.AutoUpdateWanted = val; });
//}
} }
} }

View File

@ -45,6 +45,7 @@ namespace UnityExplorer.CacheObject.Views
public bool SubContentActive => SubContentHolder.activeSelf; public bool SubContentActive => SubContentHolder.activeSelf;
public LayoutElement NameLayout; public LayoutElement NameLayout;
public GameObject RightGroupContent;
public LayoutElement RightGroupLayout; public LayoutElement RightGroupLayout;
public Text NameLabel; public Text NameLabel;
@ -136,16 +137,16 @@ namespace UnityExplorer.CacheObject.Views
// Right vertical group // Right vertical group
var rightGroupHolder = UIFactory.CreateUIObject("RightGroup", horiRow); RightGroupContent = UIFactory.CreateUIObject("RightGroup", horiRow);
UIFactory.SetLayoutGroup<VerticalLayoutGroup>(rightGroupHolder, false, false, true, true, 4, childAlignment: TextAnchor.UpperLeft); UIFactory.SetLayoutGroup<VerticalLayoutGroup>(RightGroupContent, false, false, true, true, 4, childAlignment: TextAnchor.UpperLeft);
UIFactory.SetLayoutElement(rightGroupHolder, minHeight: 25, minWidth: 200, flexibleWidth: 9999, flexibleHeight: 800); UIFactory.SetLayoutElement(RightGroupContent, minHeight: 25, minWidth: 200, flexibleWidth: 9999, flexibleHeight: 800);
RightGroupLayout = rightGroupHolder.GetComponent<LayoutElement>(); RightGroupLayout = RightGroupContent.GetComponent<LayoutElement>();
ConstructEvaluateHolder(rightGroupHolder); ConstructEvaluateHolder(RightGroupContent);
// Right horizontal group // Right horizontal group
var rightHoriGroup = UIFactory.CreateUIObject("RightHoriGroup", rightGroupHolder); var rightHoriGroup = UIFactory.CreateUIObject("RightHoriGroup", RightGroupContent);
UIFactory.SetLayoutGroup<HorizontalLayoutGroup>(rightHoriGroup, false, false, true, true, 4, childAlignment: TextAnchor.UpperLeft); UIFactory.SetLayoutGroup<HorizontalLayoutGroup>(rightHoriGroup, false, false, true, true, 4, childAlignment: TextAnchor.UpperLeft);
UIFactory.SetLayoutElement(rightHoriGroup, minHeight: 25, minWidth: 200, flexibleWidth: 9999, flexibleHeight: 800); UIFactory.SetLayoutElement(rightHoriGroup, minHeight: 25, minWidth: 200, flexibleWidth: 9999, flexibleHeight: 800);

View File

@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Text; using System.Text;
namespace UnityExplorer.Core.Config namespace UnityExplorer.Config
{ {
public class ConfigElement<T> : IConfigElement public class ConfigElement<T> : IConfigElement
{ {

View File

@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Text; using System.Text;
namespace UnityExplorer.Core.Config namespace UnityExplorer.Config
{ {
public abstract class ConfigHandler public abstract class ConfigHandler
{ {

View File

@ -8,7 +8,7 @@ using System.Text;
using UnityEngine; using UnityEngine;
using UnityExplorer.UI; using UnityExplorer.UI;
namespace UnityExplorer.Core.Config namespace UnityExplorer.Config
{ {
public static class ConfigManager public static class ConfigManager
{ {

View File

@ -1,6 +1,6 @@
using System; using System;
namespace UnityExplorer.Core.Config namespace UnityExplorer.Config
{ {
public interface IConfigElement public interface IConfigElement
{ {

View File

@ -7,7 +7,7 @@ using System.Text;
using UnityEngine; using UnityEngine;
using UnityExplorer.UI; using UnityExplorer.UI;
namespace UnityExplorer.Core.Config namespace UnityExplorer.Config
{ {
public class InternalConfigHandler : ConfigHandler public class InternalConfigHandler : ConfigHandler
{ {

View File

@ -4,11 +4,11 @@ using System.Collections.Generic;
using System.IO; using System.IO;
using UnityEngine; using UnityEngine;
using UnityEngine.UI; using UnityEngine.UI;
using UnityExplorer.Core.Config; using UnityExplorer.Config;
using UnityExplorer.UI; using UnityExplorer.UI;
using UnityExplorer.ObjectExplorer; using UnityExplorer.ObjectExplorer;
using UnityExplorer.UI.Panels; using UnityExplorer.UI.Panels;
using UnityExplorer.Core.Runtime; using UnityExplorer.Runtime;
using UniverseLib.Input; using UniverseLib.Input;
namespace UnityExplorer namespace UnityExplorer
@ -51,8 +51,6 @@ namespace UnityExplorer
Force_Unlock_Mouse = ConfigManager.Force_Unlock_Mouse.Value, Force_Unlock_Mouse = ConfigManager.Force_Unlock_Mouse.Value,
Unhollowed_Modules_Folder = loader.UnhollowedModulesFolder Unhollowed_Modules_Folder = loader.UnhollowedModulesFolder
}); });
Log($"Finished core setup, waiting for late setup...");
} }
// Do a delayed setup so that objects aren't destroyed instantly. // Do a delayed setup so that objects aren't destroyed instantly.

View File

@ -6,7 +6,7 @@ using System.Reflection;
using System.Text; using System.Text;
using HarmonyLib; using HarmonyLib;
using UnityEngine; using UnityEngine;
using UnityExplorer.Core.Runtime; using UnityExplorer.Runtime;
using UnityExplorer.CSConsole; using UnityExplorer.CSConsole;
using UnityExplorer.UI; using UnityExplorer.UI;
using UnityExplorer.UI.Panels; using UnityExplorer.UI.Panels;

View File

@ -5,9 +5,8 @@ using System.Text;
using UnityEngine; using UnityEngine;
using UnityEngine.EventSystems; using UnityEngine.EventSystems;
using UnityEngine.UI; using UnityEngine.UI;
using UnityExplorer.Core;
using UniverseLib.Input; using UniverseLib.Input;
using UnityExplorer.Core.Runtime; using UnityExplorer.Runtime;
using UnityExplorer.Inspectors.MouseInspectors; using UnityExplorer.Inspectors.MouseInspectors;
using UnityExplorer.UI; using UnityExplorer.UI;
using UnityExplorer.UI.Panels; using UnityExplorer.UI.Panels;

View File

@ -8,8 +8,8 @@ using System.Reflection.Emit;
using System.Text; using System.Text;
using UnityEngine; using UnityEngine;
using UnityEngine.UI; using UnityEngine.UI;
using UnityExplorer.Core.Config; using UnityExplorer.Config;
using UnityExplorer.Core.Runtime; using UnityExplorer.Runtime;
using UnityExplorer.CacheObject; using UnityExplorer.CacheObject;
using UnityExplorer.CacheObject.Views; using UnityExplorer.CacheObject.Views;
using UnityExplorer.UI.Panels; using UnityExplorer.UI.Panels;

View File

@ -4,7 +4,7 @@ using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Text; using System.Text;
using UnityExplorer.Core.Config; using UnityExplorer.Config;
namespace UnityExplorer.Loader.BIE namespace UnityExplorer.Loader.BIE
{ {

View File

@ -9,8 +9,7 @@ using System.Linq;
using System.Text; using System.Text;
using UnityEngine; using UnityEngine;
using UnityEngine.EventSystems; using UnityEngine.EventSystems;
using UnityExplorer.Core; using UnityExplorer.Config;
using UnityExplorer.Core.Config;
using UniverseLib.Input; using UniverseLib.Input;
using UnityExplorer.Loader.BIE; using UnityExplorer.Loader.BIE;
#if CPP #if CPP

View File

@ -2,7 +2,7 @@
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Text; using System.Text;
using UnityExplorer.Core.Config; using UnityExplorer.Config;
namespace UnityExplorer namespace UnityExplorer
{ {

View File

@ -3,7 +3,7 @@ using System;
using System.IO; using System.IO;
using MelonLoader; using MelonLoader;
using UnityExplorer; using UnityExplorer;
using UnityExplorer.Core.Config; using UnityExplorer.Config;
using UnityExplorer.Loader.ML; using UnityExplorer.Loader.ML;
[assembly: MelonPlatformDomain(MelonPlatformDomainAttribute.CompatibleDomains.UNIVERSAL)] [assembly: MelonPlatformDomain(MelonPlatformDomainAttribute.CompatibleDomains.UNIVERSAL)]

View File

@ -6,7 +6,7 @@ using System.Linq;
using System.Text; using System.Text;
using UnityEngine; using UnityEngine;
using UnityExplorer.Core; using UnityExplorer.Core;
using UnityExplorer.Core.Config; using UnityExplorer.Config;
namespace UnityExplorer.Loader.ML namespace UnityExplorer.Loader.ML
{ {

View File

@ -4,7 +4,7 @@ using System;
using System.IO; using System.IO;
using System.Reflection; using System.Reflection;
using UnityEngine; using UnityEngine;
using UnityExplorer.Core.Config; using UnityExplorer.Config;
using UnityExplorer.Loader.STANDALONE; using UnityExplorer.Loader.STANDALONE;
using UnityEngine.EventSystems; using UnityEngine.EventSystems;
using UniverseLib.Input; using UniverseLib.Input;

View File

@ -3,7 +3,7 @@ using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Text; using System.Text;
using UnityExplorer.Core.Config; using UnityExplorer.Config;
using IniParser.Parser; using IniParser.Parser;
using System.IO; using System.IO;
using UnityEngine; using UnityEngine;

View File

@ -7,7 +7,6 @@ using System.Text;
using UnityEngine; using UnityEngine;
using UnityEngine.SceneManagement; using UnityEngine.SceneManagement;
using UnityEngine.UI; using UnityEngine.UI;
using UnityExplorer.Core;
using UnityExplorer.UI; using UnityExplorer.UI;
using UniverseLib.UI.Models; using UniverseLib.UI.Models;
using UnityExplorer.UI.Panels; using UnityExplorer.UI.Panels;

View File

@ -5,8 +5,7 @@ using System.Reflection;
using System.Text; using System.Text;
using UnityEngine; using UnityEngine;
using UnityEngine.SceneManagement; using UnityEngine.SceneManagement;
using UnityExplorer.Core; using UnityExplorer.Runtime;
using UnityExplorer.Core.Runtime;
using UniverseLib; using UniverseLib;
namespace UnityExplorer.ObjectExplorer namespace UnityExplorer.ObjectExplorer

View File

@ -14,7 +14,7 @@ using System.Collections;
using UnityEngine.UI; using UnityEngine.UI;
using UnityEngine.EventSystems; using UnityEngine.EventSystems;
namespace UnityExplorer.Core.Runtime namespace UnityExplorer.Runtime
{ {
public class Il2CppProvider : RuntimeHelper public class Il2CppProvider : RuntimeHelper
{ {

View File

@ -12,7 +12,7 @@ using UnityEngine.SceneManagement;
using UnityEngine.UI; using UnityEngine.UI;
using UnityExplorer; using UnityExplorer;
namespace UnityExplorer.Core.Runtime namespace UnityExplorer.Runtime
{ {
public class MonoProvider : RuntimeHelper public class MonoProvider : RuntimeHelper
{ {

View File

@ -8,10 +8,10 @@ using UnityEngine;
using UnityEngine.EventSystems; using UnityEngine.EventSystems;
using UnityEngine.SceneManagement; using UnityEngine.SceneManagement;
using UnityEngine.UI; using UnityEngine.UI;
using UnityExplorer.Core.Config; using UnityExplorer.Config;
using UniverseLib; using UniverseLib;
namespace UnityExplorer.Core.Runtime namespace UnityExplorer.Runtime
{ {
public abstract class RuntimeHelper public abstract class RuntimeHelper
{ {

View File

@ -30,7 +30,7 @@ namespace UnityExplorer.Tests
public static IDictionary MixedDictionary; public static IDictionary MixedDictionary;
public static Hashtable Hashtable; public static Hashtable Hashtable;
public static byte[] ByteArray = new byte[16]; public static byte[] ByteArray = new byte[16];
public static List<short> ABigList = new List<short>(10000); public static List<short> ABigList = new(10000);
// Test const behaviour (should be a readonly field) // Test const behaviour (should be a readonly field)
public const int ConstantInt5 = 5; public const int ConstantInt5 = 5;
@ -64,21 +64,17 @@ namespace UnityExplorer.Tests
private static object GetRandomObject() private static object GetRandomObject()
{ {
object ret = null; return UnityEngine.Random.Range(0, 7) switch
int ran = UnityEngine.Random.Range(0, 7);
switch (ran)
{ {
case 0: return null; 0 => null,
case 1: return 123; 1 => 123,
case 2: return true; 2 => true,
case 3: return "hello"; 3 => "hello",
case 4: return 50.5f; 4 => 50.5f,
case 5: return CameraClearFlags.Color; 5 => CameraClearFlags.Color,
case 6: return new List<string> { "one", "two" }; 6 => new List<string> { "one", "two" },
} _ => null,
};
return ret;
} }
public static void TestComponent<T>() where T : Component public static void TestComponent<T>() where T : Component

View File

@ -6,7 +6,7 @@ using System.Text;
using UnityEngine; using UnityEngine;
using UnityEngine.EventSystems; using UnityEngine.EventSystems;
using UnityEngine.UI; using UnityEngine.UI;
using UnityExplorer.Core.Config; using UnityExplorer.Config;
using UnityExplorer.CSConsole; using UnityExplorer.CSConsole;
using UnityExplorer.UI.Widgets; using UnityExplorer.UI.Widgets;
using UniverseLib; using UniverseLib;

View File

@ -4,7 +4,7 @@ using System.Linq;
using System.Text; using System.Text;
using UnityEngine; using UnityEngine;
using UnityEngine.UI; using UnityEngine.UI;
using UnityExplorer.Core.Config; using UnityExplorer.Config;
using UnityExplorer.Hooks; using UnityExplorer.Hooks;
using UnityExplorer.UI.Widgets; using UnityExplorer.UI.Widgets;
using UnityExplorer.UI.Widgets.AutoComplete; using UnityExplorer.UI.Widgets.AutoComplete;

View File

@ -5,7 +5,7 @@ using System.Linq;
using System.Text; using System.Text;
using UnityEngine; using UnityEngine;
using UnityEngine.UI; using UnityEngine.UI;
using UnityExplorer.Core.Config; using UnityExplorer.Config;
using UnityExplorer.Inspectors; using UnityExplorer.Inspectors;
using UniverseLib.UI; using UniverseLib.UI;

View File

@ -6,7 +6,7 @@ using System.Linq;
using System.Text; using System.Text;
using UnityEngine; using UnityEngine;
using UnityEngine.UI; using UnityEngine.UI;
using UnityExplorer.Core.Config; using UnityExplorer.Config;
using UnityExplorer.UI.Widgets; using UnityExplorer.UI.Widgets;
using UniverseLib; using UniverseLib;
using UniverseLib.UI; using UniverseLib.UI;

View File

@ -8,8 +8,7 @@ using System.Text;
using UnityEngine; using UnityEngine;
using UnityEngine.SceneManagement; using UnityEngine.SceneManagement;
using UnityEngine.UI; using UnityEngine.UI;
using UnityExplorer.Core; using UnityExplorer.Config;
using UnityExplorer.Core.Config;
using UniverseLib.UI.Models; using UniverseLib.UI.Models;
using UnityExplorer.ObjectExplorer; using UnityExplorer.ObjectExplorer;
using UnityExplorer.UI.Widgets; using UnityExplorer.UI.Widgets;

View File

@ -4,7 +4,7 @@ using System.Linq;
using System.Text; using System.Text;
using UnityEngine; using UnityEngine;
using UnityEngine.UI; using UnityEngine.UI;
using UnityExplorer.Core.Config; using UnityExplorer.Config;
using UnityExplorer.CacheObject; using UnityExplorer.CacheObject;
using UnityExplorer.CacheObject.Views; using UnityExplorer.CacheObject.Views;
using UnityExplorer.UI.Widgets; using UnityExplorer.UI.Widgets;

View File

@ -5,7 +5,7 @@ using System.Linq;
using System.Text; using System.Text;
using UnityEngine; using UnityEngine;
using UnityEngine.UI; using UnityEngine.UI;
using UnityExplorer.Core.Config; using UnityExplorer.Config;
using UniverseLib.Input; using UniverseLib.Input;
using UnityExplorer.UI.Widgets; using UnityExplorer.UI.Widgets;
using UniverseLib.UI.Models; using UniverseLib.UI.Models;

View File

@ -9,7 +9,7 @@ using System.Text;
using UnityEngine; using UnityEngine;
using UnityEngine.EventSystems; using UnityEngine.EventSystems;
using UnityEngine.UI; using UnityEngine.UI;
using UnityExplorer.Core.Config; using UnityExplorer.Config;
using UnityExplorer.CSConsole; using UnityExplorer.CSConsole;
using UnityExplorer.Inspectors; using UnityExplorer.Inspectors;
using UnityExplorer.UI.Panels; using UnityExplorer.UI.Panels;
@ -81,10 +81,12 @@ namespace UnityExplorer.UI
{ {
uiBase = UniversalUI.RegisterUI(ExplorerCore.GUID, Update); uiBase = UniversalUI.RegisterUI(ExplorerCore.GUID, Update);
lastScreenWidth = Screen.width;
lastScreenHeight = Screen.height;
// Create UI
CreatePanelHolder(); CreatePanelHolder();
CreateTopNavBar(); CreateTopNavBar();
UIPanels.Add(Panels.AutoCompleter, new AutoCompleteModal()); UIPanels.Add(Panels.AutoCompleter, new AutoCompleteModal());
UIPanels.Add(Panels.ObjectExplorer, new ObjectExplorerPanel()); UIPanels.Add(Panels.ObjectExplorer, new ObjectExplorerPanel());
UIPanels.Add(Panels.Inspector, new InspectorPanel()); UIPanels.Add(Panels.Inspector, new InspectorPanel());
@ -98,20 +100,18 @@ namespace UnityExplorer.UI
foreach (var panel in UIPanels.Values) foreach (var panel in UIPanels.Values)
panel.ConstructUI(); panel.ConstructUI();
// Call some initialize methods
ConsoleController.Init(); ConsoleController.Init();
// Add this listener to prevent ScrollPool doing anything while we are resizing panels
ScrollPool<ICell>.writingLockedListeners.Add(() => !PanelDragger.Resizing);
// Set default menu visibility
ShowMenu = !ConfigManager.Hide_On_Startup.Value; ShowMenu = !ConfigManager.Hide_On_Startup.Value;
lastScreenWidth = Screen.width; // Failsafe fix, in some games all dropdowns displayed values are blank on startup for some reason.
lastScreenHeight = Screen.height;
// Failsafe fix
foreach (var dropdown in UIRoot.GetComponentsInChildren<Dropdown>(true)) foreach (var dropdown in UIRoot.GetComponentsInChildren<Dropdown>(true))
dropdown.RefreshShownValue(); dropdown.RefreshShownValue();
timeInput.Text = string.Empty;
timeInput.Text = Time.timeScale.ToString();
ScrollPool<ICell>.writingLockedListeners.Add(() => !PanelDragger.Resizing);
Initializing = false; Initializing = false;
} }
@ -328,9 +328,11 @@ namespace UnityExplorer.UI
timeInput = UIFactory.CreateInputField(navbarPanel, "TimeInput", "timeScale"); timeInput = UIFactory.CreateInputField(navbarPanel, "TimeInput", "timeScale");
UIFactory.SetLayoutElement(timeInput.Component.gameObject, minHeight: 25, minWidth: 40); UIFactory.SetLayoutElement(timeInput.Component.gameObject, minHeight: 25, minWidth: 40);
timeInput.Text = Time.timeScale.ToString("F2");
timeInput.Component.GetOnEndEdit().AddListener(OnTimeInputEndEdit); timeInput.Component.GetOnEndEdit().AddListener(OnTimeInputEndEdit);
timeInput.Text = string.Empty;
timeInput.Text = Time.timeScale.ToString();
pauseBtn = UIFactory.CreateButton(navbarPanel, "PauseButton", "||", new Color(0.2f, 0.2f, 0.2f)); pauseBtn = UIFactory.CreateButton(navbarPanel, "PauseButton", "||", new Color(0.2f, 0.2f, 0.2f));
UIFactory.SetLayoutElement(pauseBtn.Component.gameObject, minHeight: 25, minWidth: 25); UIFactory.SetLayoutElement(pauseBtn.Component.gameObject, minHeight: 25, minWidth: 25);
pauseBtn.OnClick += OnPauseButtonClicked; pauseBtn.OnClick += OnPauseButtonClicked;

View File

@ -5,7 +5,7 @@ using UnityEngine;
using UnityEngine.EventSystems; using UnityEngine.EventSystems;
using UnityEngine.UI; using UnityEngine.UI;
using UniverseLib.Input; using UniverseLib.Input;
using UnityExplorer.Core.Runtime; using UnityExplorer.Runtime;
using UnityExplorer.UI; using UnityExplorer.UI;
using UnityExplorer.UI.Panels; using UnityExplorer.UI.Panels;
using UniverseLib.UI.Widgets; using UniverseLib.UI.Widgets;

View File

@ -3,7 +3,6 @@ using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Reflection; using System.Reflection;
using UnityEngine; using UnityEngine;
using UnityExplorer.Core;
namespace UnityExplorer.UI.Widgets.AutoComplete namespace UnityExplorer.UI.Widgets.AutoComplete
{ {

View File

@ -225,7 +225,7 @@
<Compile Include="Hooks\HookCell.cs" /> <Compile Include="Hooks\HookCell.cs" />
<Compile Include="Hooks\HookInstance.cs" /> <Compile Include="Hooks\HookInstance.cs" />
<Compile Include="Hooks\HookManager.cs" /> <Compile Include="Hooks\HookManager.cs" />
<Compile Include="Core\Config\InternalConfigHandler.cs" /> <Compile Include="Config\InternalConfigHandler.cs" />
<Compile Include="CacheObject\CacheConfigEntry.cs" /> <Compile Include="CacheObject\CacheConfigEntry.cs" />
<Compile Include="CacheObject\Views\CacheConfigCell.cs" /> <Compile Include="CacheObject\Views\CacheConfigCell.cs" />
<Compile Include="CSConsole\CSAutoCompleter.cs" /> <Compile Include="CSConsole\CSAutoCompleter.cs" />
@ -238,7 +238,7 @@
<Compile Include="CSConsole\Lexers\SymbolLexer.cs" /> <Compile Include="CSConsole\Lexers\SymbolLexer.cs" />
<Compile Include="CSConsole\ScriptEvaluator.cs" /> <Compile Include="CSConsole\ScriptEvaluator.cs" />
<Compile Include="CSConsole\ScriptInteraction.cs" /> <Compile Include="CSConsole\ScriptInteraction.cs" />
<Compile Include="Core\ExplorerBehaviour.cs" /> <Compile Include="ExplorerBehaviour.cs" />
<Compile Include="Hooks\AddHookCell.cs" /> <Compile Include="Hooks\AddHookCell.cs" />
<Compile Include="Inspectors\GameObjectWidgets\ComponentCell.cs" /> <Compile Include="Inspectors\GameObjectWidgets\ComponentCell.cs" />
<Compile Include="Inspectors\GameObjectWidgets\ComponentList.cs" /> <Compile Include="Inspectors\GameObjectWidgets\ComponentList.cs" />
@ -281,16 +281,16 @@
<Compile Include="UI\Panels\OptionsPanel.cs" /> <Compile Include="UI\Panels\OptionsPanel.cs" />
<Compile Include="UI\Widgets\AutoComplete\ISuggestionProvider.cs" /> <Compile Include="UI\Widgets\AutoComplete\ISuggestionProvider.cs" />
<Compile Include="UI\Widgets\AutoComplete\Suggestion.cs" /> <Compile Include="UI\Widgets\AutoComplete\Suggestion.cs" />
<Compile Include="Core\Config\ConfigElement.cs" /> <Compile Include="Config\ConfigElement.cs" />
<Compile Include="Core\Config\ConfigHandler.cs" /> <Compile Include="Config\ConfigHandler.cs" />
<Compile Include="Core\Config\ConfigManager.cs" /> <Compile Include="Config\ConfigManager.cs" />
<Compile Include="Core\Config\IConfigElement.cs" /> <Compile Include="Config\IConfigElement.cs" />
<Compile Include="Core\Runtime\Il2CppProvider.cs" /> <Compile Include="Runtime\Il2CppProvider.cs" />
<Compile Include="Core\Runtime\MonoProvider.cs" /> <Compile Include="Runtime\MonoProvider.cs" />
<Compile Include="Core\Runtime\RuntimeHelper.cs" /> <Compile Include="Runtime\RuntimeHelper.cs" />
<Compile Include="ObjectExplorer\SceneHandler.cs" /> <Compile Include="ObjectExplorer\SceneHandler.cs" />
<Compile Include="ObjectExplorer\SearchProvider.cs" /> <Compile Include="ObjectExplorer\SearchProvider.cs" />
<Compile Include="Core\Tests\TestClass.cs" /> <Compile Include="Tests\TestClass.cs" />
<Compile Include="ExplorerCore.cs" /> <Compile Include="ExplorerCore.cs" />
<Compile Include="Loader\BepInEx\BepInExConfigHandler.cs" /> <Compile Include="Loader\BepInEx\BepInExConfigHandler.cs" />
<Compile Include="Loader\BepInEx\ExplorerBepInPlugin.cs" /> <Compile Include="Loader\BepInEx\ExplorerBepInPlugin.cs" />