From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- .../Scripts/XMainClient/UI/LoadingDlgBehaviour.cs | 37 ++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/UI/LoadingDlgBehaviour.cs (limited to 'Client/Assets/Scripts/XMainClient/UI/LoadingDlgBehaviour.cs') diff --git a/Client/Assets/Scripts/XMainClient/UI/LoadingDlgBehaviour.cs b/Client/Assets/Scripts/XMainClient/UI/LoadingDlgBehaviour.cs new file mode 100644 index 00000000..5021137f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/LoadingDlgBehaviour.cs @@ -0,0 +1,37 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; + +namespace XMainClient.UI +{ + internal class LoadingDlgBehaviour : DlgBehaviourBase + { + public IXUIProgress m_LoadingProgress = null; + + public Transform m_LoadingBg = null; + + public Transform m_Canvas = null; + + public IXUILabel m_LoadingTips = null; + + public IXUITexture m_LoadingPic = null; + + public IXUILabel m_WaitForOthersTip = null; + + public IXUISprite m_Dog = null; + + private void Awake() + { + Transform transform = base.transform.Find("Dynamics/LoadingProgress"); + this.m_LoadingProgress = (transform.GetComponent("XUIProgress") as IXUIProgress); + this.m_Dog = (transform.Find("Dog/").GetComponent("XUISprite") as IXUISprite); + this.m_Canvas = base.transform.Find("fade_canvas"); + this.m_LoadingTips = (base.transform.Find("Bg/Label").GetComponent("XUILabel") as IXUILabel); + this.m_LoadingBg = base.transform.Find("Bg"); + this.m_LoadingPic = (base.transform.Find("Bg").GetComponent("XUITexture") as IXUITexture); + this.m_WaitForOthersTip = (base.transform.Find("Bg/WaitOthers").GetComponent("XUILabel") as IXUILabel); + this.m_Canvas.gameObject.SetActive(false); + } + } +} -- cgit v1.1-26-g67d0