WXMC/.svn/pristine/5f/5f5344ad83d8e7b8b2adc38f791cea850e83a844.svn-base
2024-12-04 16:18:46 +08:00

30 lines
815 B
Plaintext

using UnityEngine;
using UnityEditor;
using System.Collections;
namespace UI.Dates
{
[CustomEditor(typeof(DatePicker_InputField)), CanEditMultipleObjects]
public class DatePicker_InputFieldEditor : Editor
{
public void OnEnable()
{
}
public override void OnInspectorGUI()
{
var datePickerInputField = ((DatePicker_InputField)target);
if (GUILayout.Button("Force Update"))
{
datePickerInputField.UpdateDisplay();
}
if (DrawDefaultInspector())
{
datePickerInputField.UpdateDisplay();
DatePickerTimer.DelayedCall(0.005f, datePickerInputField.UpdateDisplay, datePickerInputField);
}
}
}
}