76 lines
1.7 KiB
C#
76 lines
1.7 KiB
C#
using System;
|
|||
|
|
using FGUI.Arrow_game;
|
||
|
|
|
||
|
|
namespace ChillConnect
|
||
|
|
{
|
||
|
|
|
||
|
|
public class ArrowTipsUI : BaseUI
|
||
|
|
{
|
||
|
|
private ArrowTipsUICtrl ctrl;
|
||
|
|
private ArrowTipsModel model;
|
||
|
|
private com_tips ui;
|
||
|
|
|
||
|
|
public ArrowTipsUI(ArrowTipsUICtrl ctrl) : base(ctrl)
|
||
|
|
{
|
||
|
|
uiName = UIConst.ArrowTipsUI;
|
||
|
|
this.ctrl = ctrl;
|
||
|
|
}
|
||
|
|
|
||
|
|
protected override void SetUIInfo(UIInfo uiInfo)
|
||
|
|
{
|
||
|
|
uiInfo.packageName = "Arrow_game";
|
||
|
|
uiInfo.assetName = "com_tips";
|
||
|
|
uiInfo.layerType = UILayerType.Loading;
|
||
|
|
}
|
||
|
|
|
||
|
|
protected override void OnInit()
|
||
|
|
{
|
||
|
|
}
|
||
|
|
|
||
|
|
protected override void OnClose()
|
||
|
|
{
|
||
|
|
CommonHelper.FadeOut(ui);
|
||
|
|
}
|
||
|
|
|
||
|
|
protected override void OnBind()
|
||
|
|
{
|
||
|
|
ui = baseUI as com_tips;
|
||
|
|
}
|
||
|
|
|
||
|
|
protected override void OnOpenBefore(object args)
|
||
|
|
{
|
||
|
|
InitView();
|
||
|
|
}
|
||
|
|
|
||
|
|
protected override void OnOpen(object args)
|
||
|
|
{
|
||
|
|
CommonHelper.FadeIn(ui);
|
||
|
|
}
|
||
|
|
|
||
|
|
protected override void AddListener()
|
||
|
|
{
|
||
|
|
}
|
||
|
|
|
||
|
|
protected override void RemoveListener()
|
||
|
|
{
|
||
|
|
}
|
||
|
|
|
||
|
|
private void InitView()
|
||
|
|
{
|
||
|
|
|
||
|
|
ui.btn_watch.SetClick(() =>
|
||
|
|
{
|
||
|
|
GameHelper.ShowVideoAd("deletePop", isSuccess =>
|
||
|
|
{
|
||
|
|
if (isSuccess)
|
||
|
|
{
|
||
|
|
GameDispatcher.Instance.Dispatch(GameMsg.SetDelete);
|
||
|
|
CtrlCloseUI();
|
||
|
|
}
|
||
|
|
});
|
||
|
|
});
|
||
|
|
|
||
|
|
ui.btn_close.SetClick(CtrlCloseUI);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|