From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- .../XMainClient/Guild/XGuildSkillBehaviour.cs | 73 ++++++++++++++++++++++ 1 file changed, 73 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildSkillBehaviour.cs (limited to 'Client/Assets/Scripts/XMainClient/Guild/XGuildSkillBehaviour.cs') diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildSkillBehaviour.cs b/Client/Assets/Scripts/XMainClient/Guild/XGuildSkillBehaviour.cs new file mode 100644 index 00000000..f5dc95b8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildSkillBehaviour.cs @@ -0,0 +1,73 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XGuildSkillBehaviour : DlgBehaviourBase + { + public IXUIButton m_Close; + + public IXUILabel m_GuildPoint; + + public IXUISprite m_DetailSkillIcon; + + public IXUILabel m_DetailSkillName; + + public IXUILabel m_DetailCurrLevel; + + public IXUILabel m_DetailNextLevel; + + public IXUILabel m_DetailCurrAttr; + + public IXUILabel m_DetailNextAttr; + + public IXUILabel m_DetailMaxLevelLabel; + + public IXUILabel m_DetailMaxLevel; + + public IXUIButton m_DetailUpMaxLevel; + + public IXUILabel m_DetailTip; + + public IXUILabelSymbol m_DetailCost; + + public IXUILabelSymbol m_DetailCostRed; + + public IXUIButton m_LevelUp; + + public IXUILabel m_LevelUpLabel; + + public Transform m_RedPoint; + + public XUIPool m_SkillPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public IXUIScrollView m_SkillScroll; + + private void Awake() + { + this.m_Close = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.m_GuildPoint = (base.transform.Find("Bg/Point/value").GetComponent("XUILabel") as IXUILabel); + this.m_DetailSkillIcon = (base.transform.Find("Bg/Detail/Icon").GetComponent("XUISprite") as IXUISprite); + this.m_DetailSkillName = (base.transform.Find("Bg/Detail/Name").GetComponent("XUILabel") as IXUILabel); + this.m_DetailCurrLevel = (base.transform.Find("Bg/Detail/CurrentLevel").GetComponent("XUILabel") as IXUILabel); + this.m_DetailNextLevel = (base.transform.Find("Bg/Detail/CurrentLevel/NextLevel").GetComponent("XUILabel") as IXUILabel); + this.m_DetailCurrAttr = (base.transform.Find("Bg/Detail/CurrentAttr").GetComponent("XUILabel") as IXUILabel); + this.m_DetailNextAttr = (base.transform.Find("Bg/Detail/CurrentAttr/NextAttr").GetComponent("XUILabel") as IXUILabel); + this.m_DetailMaxLevel = (base.transform.Find("Bg/Detail/MaxLevel/NextAttr").GetComponent("XUILabel") as IXUILabel); + this.m_DetailMaxLevelLabel = (base.transform.Find("Bg/Detail/MaxLevel").GetComponent("XUILabel") as IXUILabel); + this.m_DetailUpMaxLevel = (base.transform.Find("Bg/Detail/MaxLevel/Study").GetComponent("XUIButton") as IXUIButton); + this.m_RedPoint = base.transform.Find("Bg/Detail/MaxLevel/Study/RedPoint"); + this.m_DetailTip = (base.transform.Find("Bg/Detail/Tip").GetComponent("XUILabel") as IXUILabel); + this.m_DetailCost = (base.transform.Find("Bg/Detail/Cost").GetComponent("XUILabelSymbol") as IXUILabelSymbol); + this.m_DetailCostRed = (base.transform.Find("Bg/Detail/CostRed").GetComponent("XUILabelSymbol") as IXUILabelSymbol); + this.m_LevelUp = (base.transform.Find("Bg/Detail/Levelup").GetComponent("XUIButton") as IXUIButton); + this.m_LevelUpLabel = (base.transform.Find("Bg/Detail/Levelup/Text").GetComponent("XUILabel") as IXUILabel); + Transform transform = base.transform.Find("Bg/SkillList/SkillTpl"); + this.m_SkillPool.SetupPool(transform.parent.gameObject, transform.gameObject, 10u, false); + this.m_SkillScroll = (base.transform.Find("Bg/SkillList").GetComponent("XUIScrollView") as IXUIScrollView); + } + } +} -- cgit v1.1-26-g67d0