WXMC/.svn/pristine/e4/e48a4e8f8c0f42c05177ac3b675e8050f4006b50.svn-base
2024-12-04 16:18:46 +08:00

30 lines
762 B
Plaintext

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