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>();