Inspector Secondary Window & QuickCopy
inspector的二级界面,主要用于工具制作。 重新制作了Track的QuickCopy功能
This commit is contained in:
@@ -26,7 +26,6 @@ namespace Ichni.Editor
|
||||
|
||||
public virtual void Initialize(IBaseElement baseElement, string title, string parameterName)
|
||||
{
|
||||
|
||||
this.connectedBaseElement = baseElement;
|
||||
this.parameterName = parameterName;
|
||||
if (title != string.Empty)
|
||||
@@ -37,7 +36,6 @@ namespace Ichni.Editor
|
||||
{
|
||||
this.title.gameObject.SetActive(false);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public virtual void DeviverSet(int DeviveNum){
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using Ichni.RhythmGame;
|
||||
using TMPro;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Ichni.Editor
|
||||
{
|
||||
public class DynamicUIGetterInputField : DynamicUIElement
|
||||
{
|
||||
public TMP_InputField inputField;
|
||||
|
||||
public void SetDefaultText(string text)
|
||||
{
|
||||
inputField.text = text;
|
||||
}
|
||||
|
||||
public T GetResult<T>()
|
||||
{
|
||||
return (T)System.Convert.ChangeType(inputField.text, typeof(T));
|
||||
}
|
||||
|
||||
public string GetResult()
|
||||
{
|
||||
return inputField.text;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 230247eae56474f058bf4a2184cadd9a
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -8,7 +8,7 @@ using UnityEngine.Events;
|
||||
|
||||
namespace Ichni.Editor
|
||||
{
|
||||
public class DynamicUIInputField : DynamicUIElement
|
||||
public class DynamicUIParameterInputField : DynamicUIElement
|
||||
{
|
||||
public TMP_InputField inputField;
|
||||
|
||||
Reference in New Issue
Block a user