From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- .../Scripts/XMainClient/RecruitPublishBehaviour.cs | 54 ++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/RecruitPublishBehaviour.cs (limited to 'Client/Assets/Scripts/XMainClient/RecruitPublishBehaviour.cs') diff --git a/Client/Assets/Scripts/XMainClient/RecruitPublishBehaviour.cs b/Client/Assets/Scripts/XMainClient/RecruitPublishBehaviour.cs new file mode 100644 index 00000000..e855260c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RecruitPublishBehaviour.cs @@ -0,0 +1,54 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class RecruitPublishBehaviour : DlgBehaviourBase + { + public IXUIButton _Close; + + public IXUIButton _Submit; + + public IXUIScrollView _TypeListScrollView; + + public XUIPool _levelOnePool = new XUIPool(XSingleton.singleton.m_uiTool); + + public XUIPool _levelTwoPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public IXUICheckBox[] _memberTypes; + + public Transform _StartTime; + + private void Awake() + { + this._Close = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this._Submit = (base.transform.Find("Bg/Submit").GetComponent("XUIButton") as IXUIButton); + this._TypeListScrollView = (base.transform.Find("Bg/TypeList").GetComponent("XUIScrollView") as IXUIScrollView); + Transform transform = base.transform.Find("Bg/TypeList/Table/LevelOneTpl"); + this._levelOnePool.SetupPool(transform.parent.gameObject, transform.gameObject, 5u, false); + transform = base.transform.Find("Bg/TypeList/Table/LevelTwoTpl"); + this._levelTwoPool.SetupPool(transform.parent.gameObject, transform.gameObject, 10u, false); + this._StartTime = base.transform.Find("Bg/StartTime"); + transform = base.transform.Find("Bg/MemberTypes"); + int childCount = transform.childCount; + this._memberTypes = new IXUICheckBox[childCount]; + for (int i = 0; i < childCount; i++) + { + string text = XSingleton.singleton.StringCombine("GroupMember_Type", i.ToString()); + IXUICheckBox ixuicheckBox = transform.Find(text).GetComponent("XUICheckBox") as IXUICheckBox; + ixuicheckBox.ID = (ulong)((long)i); + IXUILabel ixuilabel = ixuicheckBox.gameObject.transform.Find("Text").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(XStringDefineProxy.GetString(text)); + this._memberTypes[i] = ixuicheckBox; + } + this.OtherAwake(); + } + + public virtual void OtherAwake() + { + } + } +} -- cgit v1.1-26-g67d0