cleanup unstripping

This commit is contained in:
sinaioutlander
2020-11-09 16:43:19 +11:00
parent 3783638c89
commit 5e761e2379
22 changed files with 115 additions and 130 deletions

View File

@ -4,8 +4,7 @@ using System.Linq;
using UnityExplorer.Helpers;
using UnityExplorer.UI;
using UnityExplorer.UI.Shared;
using UnityExplorer.Unstrip.ColorUtility;
using UnityExplorer.Unstrip.LayerMasks;
using UnityExplorer.Unstrip;
using TMPro;
using UnityEngine;
using UnityEngine.UI;

View File

@ -7,7 +7,7 @@ using TMPro;
using UnityEngine;
using UnityEngine.UI;
using UnityExplorer.Input;
using UnityExplorer.Unstrip.Resources;
using UnityExplorer.Unstrip;
namespace UnityExplorer.Inspectors.GOInspector
{

View File

@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.Linq;
using UnityExplorer.Helpers;
using UnityExplorer.UI;
using UnityExplorer.Unstrip.LayerMasks;
using UnityExplorer.Unstrip;
using TMPro;
using UnityEngine;
using UnityEngine.UI;
@ -115,9 +115,7 @@ namespace UnityExplorer.Inspectors
s_controls.RefreshControls();
if (GameObjectControls.s_sliderChangedWanted)
{
GameObjectControls.UpdateSliderControl();
}
}
private void RefreshTopInfo()
@ -139,6 +137,7 @@ namespace UnityExplorer.Inspectors
m_lastPath = path;
m_pathInput.text = path;
m_hiddenPathText.text = path;
m_pathInput.ForceLabelUpdate();
}
}
else if (m_pathGroupObj.activeSelf)
@ -266,6 +265,7 @@ namespace UnityExplorer.Inspectors
m_hiddenPathText = pathHiddenTextObj.GetComponent<Text>();
m_hiddenPathText.color = Color.clear;
m_hiddenPathText.fontSize = 14;
m_hiddenPathText.lineSpacing = 1.5f;
m_hiddenPathText.raycastTarget = false;
var hiddenFitter = pathHiddenTextObj.AddComponent<ContentSizeFitter>();
hiddenFitter.verticalFit = ContentSizeFitter.FitMode.PreferredSize;
@ -291,6 +291,11 @@ namespace UnityExplorer.Inspectors
pathInputLayout.flexibleHeight = 75;
pathInputLayout.preferredWidth = 400;
pathInputLayout.flexibleWidth = 9999;
var textRect = m_pathInput.textComponent.GetComponent<RectTransform>();
textRect.offsetMin = new Vector2(3, 3);
textRect.offsetMax = new Vector2(3, 3);
m_pathInput.textComponent.color = new Color(0.75f, 0.75f, 0.75f);
m_pathInput.textComponent.lineSpacing = 1.5f;
// name row

View File

@ -7,7 +7,7 @@ using UnityExplorer.UI.Shared;
using UnityEngine;
using UnityEngine.SceneManagement;
using UnityEngine.UI;
using UnityExplorer.Unstrip.Scenes;
using UnityExplorer.Unstrip;
namespace UnityExplorer.Inspectors
{