2019-09-23 16:44:56 +00:00
|
|
|
using UnityEngine;
|
2019-09-22 22:23:35 +00:00
|
|
|
using UnityEngine.UI;
|
|
|
|
|
|
|
|
namespace BetterTee.Form {
|
2019-09-23 16:44:56 +00:00
|
|
|
[RequireComponent(typeof(InputField))]
|
2019-09-22 22:23:35 +00:00
|
|
|
public class FormItemTextField : FormItem {
|
|
|
|
protected InputField inputFieldComponent;
|
|
|
|
|
2019-09-23 16:44:56 +00:00
|
|
|
protected void Start() {
|
|
|
|
inputFieldComponent = GetComponent<inputFieldComponent>();
|
|
|
|
}
|
|
|
|
|
2019-09-22 22:23:35 +00:00
|
|
|
public override dynamic Value {
|
|
|
|
get {
|
|
|
|
return inputFieldComponent.text;
|
|
|
|
}
|
|
|
|
|
|
|
|
set {
|
|
|
|
inputFieldComponent.text = value;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|