@@ -81,6 +81,7 @@ namespace Ichni.Editor
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
public CompositeParameterWindow SetAsFloatList()
|
||||
{
|
||||
void GenerateUnit(float content)
|
||||
@@ -112,7 +113,7 @@ namespace Ichni.Editor
|
||||
|
||||
return this;
|
||||
}
|
||||
|
||||
public Button GotoGraphicalAnimationEditorButton;
|
||||
public CompositeParameterWindow SetAsFlexibleFloat()
|
||||
{
|
||||
void GenerateUnit(AnimatedFloat content)
|
||||
@@ -147,6 +148,16 @@ namespace Ichni.Editor
|
||||
connectedBaseElement.GetType().GetField(parameterName).SetValue(connectedBaseElement, newFlexibleFloat);
|
||||
};
|
||||
|
||||
GotoGraphicalAnimationEditorButton.gameObject.SetActive(true); // 隐藏按钮
|
||||
GotoGraphicalAnimationEditorButton.onClick.AddListener(() =>
|
||||
{
|
||||
// 打开Graphical Animation Editor
|
||||
IHaveInspection i = EditorManager.instance.uiManager.inspector as IHaveInspection;
|
||||
i.GenerateGraphicalFlexibleFloatWindow(connectedBaseElement, "Graphical Animation Editor", new FlexibleFloat[] { flexibleFloat }, new string[] { "1" });
|
||||
|
||||
|
||||
|
||||
});
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@@ -140,6 +140,7 @@ namespace Ichni.Editor
|
||||
public RectTransform moveTabPoint;
|
||||
public void Elementfind(GameElement element)
|
||||
{
|
||||
if (element == null) return;
|
||||
foreach (var i in element.childElementList)
|
||||
{
|
||||
if (i is NoteBase)
|
||||
|
||||
Reference in New Issue
Block a user