From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- .../Assets/Scripts/XMainClient/XRankBehaviour.cs | 120 +++++++++++++++++++++ 1 file changed, 120 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/XRankBehaviour.cs (limited to 'Client/Assets/Scripts/XMainClient/XRankBehaviour.cs') diff --git a/Client/Assets/Scripts/XMainClient/XRankBehaviour.cs b/Client/Assets/Scripts/XMainClient/XRankBehaviour.cs new file mode 100644 index 00000000..a8456d8c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XRankBehaviour.cs @@ -0,0 +1,120 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XMainClient.Utility; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XRankBehaviour : DlgBehaviourBase + { + public static readonly uint RANK_UI_TYPE_COUNT = 12u; + + public IXUIButton m_close; + + public XUITabControl m_tabcontrol = new XUITabControl(); + + public IXUIWrapContent[] m_ListPanel = new IXUIWrapContent[XRankBehaviour.RANK_UI_TYPE_COUNT]; + + public IXUISprite m_PopularSprite; + + public IXUILabel m_PopularLabel; + + public GameObject[] m_MyRankFrame = new GameObject[XRankBehaviour.RANK_UI_TYPE_COUNT]; + + public GameObject[] m_TitleFrame = new GameObject[XRankBehaviour.RANK_UI_TYPE_COUNT]; + + public XUIPool m_RankGuildPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public IXUIPanel m_ListIXUIPanel; + + public IXPositionGroup m_ListPositionGroup = null; + + public IXUIScrollView m_ListScrollView; + + public GameObject m_CharacterInfoFrame; + + public IXUILabel m_CharName; + + public IXUISprite m_CharProfession; + + public IXUILabel m_GuildName; + + public IXUISprite m_GuildIcon; + + public IXUILabel m_EmptyRankLabel; + + public IXPositionGroup m_EmptyRankLabelGroup = null; + + public GameObject m_PetInfoFrame; + + public IUIDummy m_PlayerSnapshot; + + public IUIDummy m_PetSnapshot; + + public IUIDummy m_SpriteSnapshot; + + public IXUISprite m_CharacterDummyFrame; + + public IXUISprite m_PetDummyFrame; + + public GameObject m_OriginalRank; + + public Transform m_FlowerRankRoot; + + public IXUIButton m_DragonGuildHelp; + + private void Awake() + { + this.m_close = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + string[] array = new string[] + { + "BaseList", + "GuildList", + "TwoNameList", + "GuildBossList", + "PetList", + "QualifyList", + "BigMeleeList", + "TroopList", + "SkyArenaList", + "WorldBossList", + "CampDuelList", + "TeamMysterious" + }; + Transform tabTpl = base.transform.Find("Bg/TabList/Panel/TabTpl"); + this.m_tabcontrol.SetTabTpl(tabTpl); + for (uint num = 0u; num < XRankBehaviour.RANK_UI_TYPE_COUNT; num += 1u) + { + this.m_ListPanel[(int)num] = (base.transform.Find("Bg/Bg/Panel/" + array[(int)num]).GetComponent("XUIWrapContent") as IXUIWrapContent); + this.m_MyRankFrame[(int)num] = base.transform.Find("Bg/Bg/MyRankFrame/" + array[(int)num]).gameObject; + this.m_TitleFrame[(int)num] = base.transform.Find("Bg/Bg/Titles/" + array[(int)num]).gameObject; + } + this.m_CharacterInfoFrame = base.transform.Find("Bg/Bg/CharacterInfoFrame").gameObject; + this.m_CharName = (this.m_CharacterInfoFrame.transform.Find("TitleFrame/Name").GetComponent("XUILabel") as IXUILabel); + this.m_CharName.SetText(""); + this.m_CharProfession = (this.m_CharacterInfoFrame.transform.Find("TitleFrame/ProfIcon").GetComponent("XUISprite") as IXUISprite); + this.m_GuildName = (this.m_CharacterInfoFrame.transform.Find("TitleFrame/Guild").GetComponent("XUILabel") as IXUILabel); + this.m_GuildName.SetText(""); + this.m_GuildIcon = (this.m_CharacterInfoFrame.transform.Find("TitleFrame/GulidIcon").GetComponent("XUISprite") as IXUISprite); + this.m_CharacterDummyFrame = (this.m_CharacterInfoFrame.transform.Find("CharacterFrame").GetComponent("XUISprite") as IXUISprite); + this.m_PetInfoFrame = base.transform.Find("Bg/Bg/PetInfoFrame").gameObject; + this.m_PetDummyFrame = (this.m_PetInfoFrame.transform.Find("PetFrame").GetComponent("XUISprite") as IXUISprite); + this.m_ListIXUIPanel = (base.transform.Find("Bg/Bg/Panel").GetComponent("XUIPanel") as IXUIPanel); + this.m_ListPositionGroup = (base.transform.Find("Bg/Bg/Panel").GetComponent("PositionGroup") as IXPositionGroup); + this.m_ListScrollView = (base.transform.Find("Bg/Bg/Panel").GetComponent("XUIScrollView") as IXUIScrollView); + this.m_EmptyRankLabel = (base.transform.Find("Bg/Bg/Panel/EmptyRank").GetComponent("XUILabel") as IXUILabel); + this.m_EmptyRankLabel.SetText(""); + this.m_EmptyRankLabelGroup = (this.m_EmptyRankLabel.gameObject.transform.GetComponent("PositionGroup") as IXPositionGroup); + this.m_PlayerSnapshot = (this.m_CharacterInfoFrame.transform.Find("CharacterFrame/Snapshot").GetComponent("UIDummy") as IUIDummy); + this.m_PetSnapshot = (this.m_PetInfoFrame.transform.Find("PetFrame/Snapshot").GetComponent("UIDummy") as IUIDummy); + this.m_SpriteSnapshot = (this.m_CharacterInfoFrame.transform.Find("CharacterFrame/SpriteSnapshot").GetComponent("UIDummy") as IUIDummy); + this.m_PopularSprite = (base.transform.Find("Bg/Bg/Titles/GuildList/Popularity/Tips").GetComponent("XUISprite") as IXUISprite); + this.m_PopularLabel = (base.transform.Find("Bg/Bg/Titles/GuildList/PopularityTips").GetComponent("XUILabel") as IXUILabel); + this.m_OriginalRank = base.transform.Find("Bg/Bg").gameObject; + this.m_FlowerRankRoot = base.transform.Find("Bg/FlowerRankRoot"); + this.m_DragonGuildHelp = (base.transform.Find("Bg/Bg/Titles/TroopList/Help").GetComponent("XUIButton") as IXUIButton); + } + } +} -- cgit v1.1-26-g67d0