117 lines
2.2 KiB
C#
117 lines
2.2 KiB
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using CSUI;
|
|
using UnityEngine;
|
|
|
|
public class CSUIBase : UIBase
|
|
{
|
|
public UIViewBase View { get; set; }
|
|
|
|
protected override void OnAwake()
|
|
{
|
|
this.View.OnAwake(m_Data);
|
|
}
|
|
|
|
protected override void AddEventListener()
|
|
{
|
|
this.View.AddEventListener();
|
|
}
|
|
|
|
protected override void FillContent()
|
|
{
|
|
this.View.FillContent(m_Data, this);
|
|
if (mIsShowed)
|
|
{
|
|
OnBaseShow();
|
|
}
|
|
}
|
|
|
|
protected override void RemoveEventListener()
|
|
{
|
|
if (!Inited) return;
|
|
this.View.RemoveEventListener();
|
|
}
|
|
|
|
protected override void AddUIEventListener()
|
|
{
|
|
if (!Inited) return;
|
|
this.View.AddUIEventListener();
|
|
}
|
|
|
|
protected override void OnBaseHide()
|
|
{
|
|
this.View.OnBaseHide();
|
|
}
|
|
|
|
protected override void OnHide()
|
|
{
|
|
if (!Inited) return;
|
|
this.View.OnHide();
|
|
}
|
|
|
|
protected override void OnBaseShow()
|
|
{
|
|
if (!Inited) return;
|
|
this.View.OnBaseShow();
|
|
}
|
|
|
|
protected override void OnShow()
|
|
{
|
|
if (!Inited) return;
|
|
this.View.OnShow(m_Data);
|
|
}
|
|
|
|
protected override void OnBaseClose()
|
|
{
|
|
if (!Inited) return;
|
|
this.View.OnBaseClose();
|
|
}
|
|
|
|
protected override void OnClose()
|
|
{
|
|
if (!Inited) return;
|
|
this.View.OnClose();
|
|
}
|
|
|
|
protected override void OnBaseDispose()
|
|
{
|
|
if (!Inited) return;
|
|
this.View.OnBaseDispose();
|
|
}
|
|
|
|
protected override void OnDispose()
|
|
{
|
|
if (Inited)
|
|
{
|
|
OnBaseDispose();
|
|
this.View.OnDispose();
|
|
}
|
|
this.View.DisposeView();
|
|
this.View = null;
|
|
}
|
|
|
|
protected override void OnBackIn()
|
|
{
|
|
if (!Inited) return;
|
|
this.View.OnBackIn();
|
|
}
|
|
|
|
protected override void OnPageOutEnd()
|
|
{
|
|
if (!Inited) return;
|
|
this.View.OnPageOutEnd();
|
|
}
|
|
|
|
protected override void OnPageInEnd()
|
|
{
|
|
if (!Inited) return;
|
|
this.View.OnPageInEnd();
|
|
}
|
|
|
|
public override void OnSubCloseAnimEnd(string path)
|
|
{
|
|
if (!Inited) return;
|
|
this.View.OnSubCloseAnimEnd(path);
|
|
}
|
|
}
|