This commit is contained in:
Sinai 2021-05-08 06:18:46 +10:00
parent 57aace26d3
commit d101e7e35c
4 changed files with 18 additions and 34 deletions

View File

@ -44,7 +44,7 @@ namespace UnityExplorer.UI.Panels
public void Update()
{
if ((AutoUpdate || !SceneHandler.InspectingAssetScene) && Time.realtimeSinceStartup - timeOfLastUpdate >= 1f)
if ((AutoUpdate || !SceneHandler.InspectingAssetScene) && timeOfLastUpdate.OccuredEarlierThan(1))
{
timeOfLastUpdate = Time.realtimeSinceStartup;
UpdateTree();

View File

@ -251,7 +251,7 @@ namespace UnityExplorer.UI.Panels
};
[Flags]
public enum ResizeTypes
public enum ResizeTypes : ulong
{
NONE = 0,
Top = 1,

View File

@ -420,11 +420,11 @@ namespace UnityExplorer.UI
Image bgImage = bgObj.AddComponent<Image>();
bgImage.color = bgColor == default
? new Color(0.2f, 0.2f, 0.2f, 1.0f)
? new Color(0.04f, 0.04f, 0.04f, 0.75f)
: bgColor;
Image checkImage = checkObj.AddComponent<Image>();
checkImage.color = new Color(0.3f, 0.5f, 0.3f, 1.0f);
checkImage.color = new Color(0.8f, 1, 0.8f, 0.3f);
text = labelObj.AddComponent<Text>();
text.text = "Toggle";
@ -609,7 +609,7 @@ namespace UnityExplorer.UI
labelText.alignment = TextAnchor.MiddleLeft;
Image dropdownImage = dropdownObj.AddComponent<Image>();
dropdownImage.color = new Color(0.07f, 0.07f, 0.07f, 1);
dropdownImage.color = new Color(0.04f, 0.04f, 0.04f, 0.75f);
dropdownImage.type = Image.Type.Sliced;
dropdown = dropdownObj.AddComponent<Dropdown>();

View File

@ -225,17 +225,7 @@
<Compile Include="Core\Reflection\Extensions.cs" />
<Compile Include="Core\Reflection\Il2CppReflection.cs" />
<Compile Include="Core\Utility\MiscUtility.cs" />
<Compile Include="Inspectors_OLD\GameObjects\ChildList.cs" />
<Compile Include="Inspectors_OLD\GameObjects\ComponentList.cs" />
<Compile Include="Inspectors_OLD\GameObjects\GameObjectControls.cs" />
<Compile Include="Inspectors_OLD\GameObjects\GameObjectInspector.cs" />
<Compile Include="Inspectors_OLD\InspectorBase.cs" />
<Compile Include="Inspectors_OLD\InspectorManager.cs" />
<Compile Include="Inspectors_OLD\InspectUnderMouse.cs" />
<Compile Include="Inspectors_OLD\Reflection\CacheMemberList.cs" />
<Compile Include="Inspectors_OLD\Reflection\InstanceInspector.cs" />
<Compile Include="Inspectors_OLD\Reflection\ReflectionInspector.cs" />
<Compile Include="Inspectors_OLD\Reflection\StaticInspector.cs" />
<Compile Include="UI\Inspectors\TODO_InspectUnderMouse.cs" />
<Compile Include="UI\CSConsole\CSConsoleManager.cs" />
<Compile Include="UI\CacheObject\CacheField.cs" />
<Compile Include="UI\CacheObject\CacheKeyValuePair.cs" />
@ -254,7 +244,9 @@
<Compile Include="UI\Inspectors\InspectorManager.cs" />
<Compile Include="UI\Inspectors\InspectorTab.cs" />
<Compile Include="UI\Inspectors\InspectorBase.cs" />
<Compile Include="UI\IValues\InteractiveColor.cs" />
<Compile Include="UI\IValues\InteractiveDictionary.cs" />
<Compile Include="UI\IValues\InteractiveEnum.cs" />
<Compile Include="UI\IValues\InteractiveList.cs" />
<Compile Include="UI\IValues\InteractiveString.cs" />
<Compile Include="UI\IValues\InteractiveValue.cs" />
@ -315,24 +307,16 @@
<Compile Include="UI\Utility\ToStringUtility.cs" />
<Compile Include="UI\Widgets\AutoComplete\AutoCompleter.cs" />
<Compile Include="UI\Widgets\AutoComplete\TypeCompleter.cs" />
<Compile Include="Inspectors_OLD\CacheObject\CacheConfigEntry.cs" />
<Compile Include="Inspectors_OLD\CacheObject\CacheEnumerated.cs" />
<Compile Include="Inspectors_OLD\CacheObject\CacheField.cs" />
<Compile Include="Inspectors_OLD\CacheObject\CacheMember.cs" />
<Compile Include="Inspectors_OLD\CacheObject\CacheMethod.cs" />
<Compile Include="Inspectors_OLD\CacheObject\CacheObjectBase.cs" />
<Compile Include="Inspectors_OLD\CacheObject\CachePaired.cs" />
<Compile Include="Inspectors_OLD\CacheObject\CacheProperty.cs" />
<Compile Include="Inspectors_OLD\InteractiveValues\InteractiveBool.cs" />
<Compile Include="Inspectors_OLD\InteractiveValues\InteractiveColor.cs" />
<Compile Include="Inspectors_OLD\InteractiveValues\InteractiveDictionary.cs" />
<Compile Include="Inspectors_OLD\InteractiveValues\InteractiveEnum.cs" />
<Compile Include="Inspectors_OLD\InteractiveValues\InteractiveEnumerable.cs" />
<Compile Include="Inspectors_OLD\InteractiveValues\InteractiveFlags.cs" />
<Compile Include="Inspectors_OLD\InteractiveValues\InteractiveFloatStruct.cs" />
<Compile Include="Inspectors_OLD\InteractiveValues\InteractiveNumber.cs" />
<Compile Include="Inspectors_OLD\InteractiveValues\InteractiveString.cs" />
<Compile Include="Inspectors_OLD\InteractiveValues\InteractiveValue.cs" />
<Compile Include="UI\IValues\OLD_IVALUES\InteractiveBool.cs" />
<Compile Include="UI\IValues\OLD_IVALUES\InteractiveColor.cs" />
<Compile Include="UI\IValues\OLD_IVALUES\InteractiveDictionary.cs" />
<Compile Include="UI\IValues\OLD_IVALUES\InteractiveEnum.cs" />
<Compile Include="UI\IValues\OLD_IVALUES\InteractiveEnumerable.cs" />
<Compile Include="UI\IValues\OLD_IVALUES\InteractiveFlags.cs" />
<Compile Include="UI\IValues\OLD_IVALUES\InteractiveFloatStruct.cs" />
<Compile Include="UI\IValues\OLD_IVALUES\InteractiveNumber.cs" />
<Compile Include="UI\IValues\OLD_IVALUES\InteractiveString.cs" />
<Compile Include="UI\IValues\OLD_IVALUES\InteractiveValue.cs" />
<Compile Include="UI\Models\ButtonRef.cs" />
<Compile Include="UI\ObjectExplorer\ObjectSearch.cs" />
<Compile Include="UI\ObjectExplorer\SceneExplorer.cs" />