Beispiel #1
0
        //窗口控件初始化
        protected override void InitWidget()
        {
            mTemp      = mRoot.Find("MailIntroduction");
            curMailObj = new UIMail();
            //右边窗体内容
            curMailObj.mMailTitleTxt      = mRoot.Find("MailIntroduction/Scroll View/Table/Title").GetComponent <UILabel>();
            curMailObj.mMailContentTxt    = mRoot.Find("MailIntroduction/Scroll View/Table/Content").GetComponent <UILabel>();
            curMailObj.mMailCreateTimeTxt = mRoot.Find("MailIntroduction/Scroll View/Table/PublishDate").GetComponent <UILabel>();
            curMailObj.mMailSenderTxt     = mRoot.Find("MailIntroduction/Scroll View/Table/Sender").GetComponent <UILabel>();

            curMailObj.mGrid         = mRoot.Find("MailIntroduction/Scroll View/Table/Presents/Grid").GetComponent <UIGrid>();
            curMailObj.mCloseMailBtn = mRoot.Find("Button").gameObject;

            closeBtn = mRoot.Find("CloseBtn").gameObject;
            //左边邮件列表
            leftMailGrid = mRoot.Find("MailList/Panel/Grid").GetComponent <UIGrid>();

            UIEventListener.Get(curMailObj.mCloseMailBtn).onClick += AskCloseOrGetMailGift;

            UIEventListener.Get(closeBtn).onClick += CloseMailGUI;

            InitMailTitleListInfo();
        }
Beispiel #2
0
 void Awake()
 {
     Instance = this;
 }