2022-09-02 00:57:47 +00:00
|
|
|
using System.Collections;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
using UnityEngine;
|
|
|
|
using UnityEngine.UI;
|
|
|
|
using System;
|
|
|
|
using System.Linq;
|
|
|
|
using TMPro;
|
|
|
|
using Starpelly;
|
|
|
|
|
|
|
|
using HeavenStudio.Util;
|
|
|
|
using HeavenStudio.Editor;
|
|
|
|
|
|
|
|
namespace HeavenStudio.Editor
|
|
|
|
{
|
|
|
|
public class StringChartPropertyPrefab : RemixPropertyPrefab
|
|
|
|
{
|
|
|
|
[Header("String")] //why wasn't this a thing before
|
|
|
|
[Space(10)]
|
|
|
|
public TMP_InputField inputFieldString;
|
|
|
|
|
|
|
|
new public void SetProperties(RemixPropertiesDialog diag, string propertyName, object type, string caption)
|
|
|
|
{
|
|
|
|
InitProperties(diag, propertyName, caption);
|
|
|
|
|
|
|
|
inputFieldString.text = (string) parameterManager.chart[propertyName];
|
|
|
|
|
2023-04-03 04:17:55 +00:00
|
|
|
inputFieldString.onValueChanged.AddListener(
|
2022-09-02 00:57:47 +00:00
|
|
|
_ =>
|
|
|
|
{;
|
|
|
|
parameterManager.chart[propertyName] = inputFieldString.text;
|
|
|
|
}
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
private void Update()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|