From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- Client/Assets/Scripts/XMainClient/XLoginTipView.cs | 57 ++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/XLoginTipView.cs (limited to 'Client/Assets/Scripts/XMainClient/XLoginTipView.cs') diff --git a/Client/Assets/Scripts/XMainClient/XLoginTipView.cs b/Client/Assets/Scripts/XMainClient/XLoginTipView.cs new file mode 100644 index 00000000..d0148d6a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XLoginTipView.cs @@ -0,0 +1,57 @@ +using System; +using UILib; +using XMainClient.UI.UICommon; + +namespace XMainClient +{ + internal class XLoginTipView : DlgBase + { + public override string fileName + { + get + { + return "GameSystem/LoginTip"; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + public override bool isMainUI + { + get + { + return true; + } + } + + public void ShowTips(string str) + { + DlgBase.singleton.SetVisible(true, true); + base.uiBehaviour.m_TipTween.gameObject.SetActive(true); + base.uiBehaviour.m_TipTween.ResetTween(true); + base.uiBehaviour.m_TipLabel.SetText(str); + base.uiBehaviour.m_TipTween.RegisterOnFinishEventHandler(new OnTweenFinishEventHandler(this.OnWelcomeTweenFinish)); + base.uiBehaviour.m_TipTween.PlayTween(true, -1f); + } + + public void StopTips() + { + DlgBase.singleton.SetVisible(false, true); + } + + public void OnWelcomeTweenFinish(IXUITweenTool iPlayTween) + { + bool flag = !base.IsVisible(); + if (!flag) + { + base.uiBehaviour.m_TipTween.PlayTween(false, -1f); + } + } + } +} -- cgit v1.1-26-g67d0