예제 #1
0
        public void Show(GroupItem groupItem)
        {
            _groupItem = groupItem;

            if (_groupItem != null)
            {
                _labelUserName.text = _groupItem.groupName;
            }

            _buttonEnterGroup.onClick.AddListener(OnClickEnterGroupChat);
        }
        public override void OnShow(object param = null)
        {
            base.OnShow(param);

            if (param != null)
            {
                _groupItem = param as GroupItem;                
            }

            RefreshMemberHeadFrames();
        }
        public override void OnShow(object param = null)
        {
            base.OnShow(param);

            _groupItem = GlobalGroup.GetInstance().GetGroup(_chatLog.chatID);
            if (_groupItem != null)
            {
                if (_labelGuestUserName)
                {
                    _labelGuestUserName.text = _groupItem.groupName;
                }
            }
        }
        public override void OnEnter(object param)
        {
            base.OnEnter(param);
            UIManager.GetInstance().AddChild(transform.Find("TopBar").gameObject, EUIType.BackButton);

            _groupItem = param as GroupItem;

            InitMemberFrames();

            _buttonConfirm.onClick.AddListener(OnClickConfirmButton);

            _buttonSelectGroup.gameObject.SetActive(false);
            if (_groupItem == null)
            {
                _buttonSelectGroup.gameObject.SetActive(true);
                _buttonSelectGroup.onClick.AddListener(OnClickSelectGroup);
            }
        }