| | |
| | | RichTextMgr.Inst.RegisterEvent(RichTextEventEnum.OPENUI, this);
|
| | | RichTextMgr.Inst.RegisterEvent(RichTextEventEnum.TIP, this);
|
| | | RichTextMgr.Inst.RegisterEvent(RichTextEventEnum.GetWay, this);
|
| | | RichTextMgr.Inst.RegisterEvent(RichTextEventEnum.JOINTEAM, this);
|
| | | }
|
| | |
|
| | | public override bool Execute(RichTextEventEnum type, RichTextMgr.HrefInfo href)
|
| | |
| | | }
|
| | | }
|
| | | break;
|
| | | case RichTextEventEnum.JOINTEAM:
|
| | | {
|
| | | uint id = 0;
|
| | | if (uint.TryParse(href.mSplits["jointeam"], out id))
|
| | | {
|
| | | var teamModel = ModelCenter.Instance.GetModel<TeamModel>();
|
| | | if (teamModel.myTeam.GetIndexOfMember((int)id) != -1)
|
| | | {
|
| | | SysNotifyMgr.Instance.ShowTip("AlreadyInTeam2");
|
| | | return false;
|
| | | }
|
| | | teamModel.RequestInviteJoinTeam((int)id);
|
| | | }
|
| | | }
|
| | | break;
|
| | | case RichTextEventEnum.INVITE:
|
| | | {
|
| | | uint id = 0;
|