Exemple #1
0
        public override void Init(RankInviteWndView view)
        {
            base.Init(view);

            m_wndView = view;

            HideBtnDesc.text  = "隐藏";
            InviteClanRT.text = "<a href=InviteClan color=ffca27>" + "点击联盟同伴共同开黑" + "</a>";
            InviteClanRT.onHrefClick.AddListener(OnClickInviteClanRT);
        }
Exemple #2
0
        public override void Init(RankInviteWndView view)
        {
            base.Init(view);

            // 清空
            int nCount = PlayerRect.childCount;

            for (int i = nCount - 1; i >= 0; --i)
            {
                Transform childTrans = PlayerRect.GetChild(i);
                if (childTrans)
                {
                    var temp = childTrans.gameObject;
                    ResNode.DestroyRes(ref temp);
                }
            }

            // 初始化
            PlayerTemplate.SetActive(true);
            m_playerItems = new RankInvitePlayerItem[PLAYER_ITEM_COUNT];
            for (int i = 0; i < PLAYER_ITEM_COUNT; ++i)
            {
                GameObject playerItemGo = ResNode.InstantiateRes(PlayerTemplate);
                if (!playerItemGo)
                {
                    return;
                }

                playerItemGo.name = "PlayerItem" + (i + 1);
                RectTransform rectTrans = playerItemGo.transform as RectTransform;
                rectTrans.SetParent(PlayerRect, false);

                m_playerItems[i] = playerItemGo.GetComponent <RankInvitePlayerItem>();
                if (!m_playerItems[i])
                {
                    return;
                }
                m_playerItems[i].SetClear();
            }
            PlayerTemplate.SetActive(false);
        }
Exemple #3
0
 public virtual void Init(RankInviteWndView view)
 {
 }