//--------------------------------------------------------
|
// [Author]: 第二世界
|
// [ Date ]: Monday, October 30, 2017
|
//--------------------------------------------------------
|
|
using System;
|
using System.Collections;
|
using System.Collections.Generic;
|
using UnityEngine;
|
using UnityEngine.UI;
|
|
namespace vnxbqy.UI
|
{
|
|
public class DailyQuestCalendarWin : Window,SecondWindowInterface
|
{
|
[SerializeField]
|
DailyQuestCalendarColumn[] calendarColumns;
|
|
public Button close { get; set; }
|
#region Built-in
|
|
protected override void BindController()
|
{
|
if (this is SecondWindowInterface)
|
{
|
var frame = this.GetComponentInChildren<SecondFrameLoader>();
|
frame.Create();
|
close = frame.GetComponentInChildren<Button>();
|
}
|
}
|
|
protected override void AddListeners()
|
{
|
close.AddListener(CloseClick);
|
}
|
|
protected override void OnPreOpen()
|
{
|
ShowCalendar();
|
}
|
|
protected override void OnAfterOpen()
|
{
|
}
|
|
protected override void OnPreClose()
|
{
|
}
|
|
protected override void OnAfterClose()
|
{
|
}
|
|
#endregion
|
private void ShowCalendar()
|
{
|
for (int i = 0; i < calendarColumns.Length; i++)
|
{
|
calendarColumns[i].Display();
|
}
|
}
|
|
}
|
|
}
|