16 lines
399 B
C#
16 lines
399 B
C#
using TMPro;
|
|
using UnityEngine;
|
|
|
|
namespace Cryville.Crtr.Config.UI {
|
|
public class PVPString : PropertyValuePanel {
|
|
[SerializeField]
|
|
TMP_InputField m_inputField;
|
|
|
|
void Awake() {
|
|
m_inputField.onValueChanged.AddListener(OnValueChanged);
|
|
}
|
|
protected override void OnValueUpdated() { m_inputField.text = (string)MappedValue; }
|
|
void OnValueChanged(string value) { RawValue = value; }
|
|
}
|
|
}
|