mirror of
https://github.com/GrahamKracker/UnityExplorer.git
synced 2025-07-15 15:57:52 +08:00
Cleanup
This commit is contained in:
@ -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();
|
||||
|
@ -251,7 +251,7 @@ namespace UnityExplorer.UI.Panels
|
||||
};
|
||||
|
||||
[Flags]
|
||||
public enum ResizeTypes
|
||||
public enum ResizeTypes : ulong
|
||||
{
|
||||
NONE = 0,
|
||||
Top = 1,
|
||||
|
@ -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>();
|
||||
|
Reference in New Issue
Block a user