少年修仙传客户端代码仓库
client_Wu Xijin
2018-09-04 d9e6e5aac14261fad5bd18053b600bd513b45509
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
using Snxxz.UI;
using System;
using System.Collections.Generic;
using UnityEngine;
 
public class RichShowPlayerEvent : TRichTextEvent
{
    public RichShowPlayerEvent()
    {
        RichTextMgr.Inst.RegisterEvent(RichTextEventEnum.SHOWPLAYER, this);
    }
    public override bool Execute(RichTextEventEnum type, RichTextMgr.HrefInfo href)
    {
        switch (type)
        {
            case RichTextEventEnum.SHOWPLAYER:
                {
                    uint id = 0;
                    if (uint.TryParse(href.mSplits["showplayer"], out id))
                    {
                        if (id == PlayerDatas.Instance.baseData.PlayerID)
                        {
                            return false;
                        }
                        PlayerDetails.ShowPlayerDetails((int)id, null);
                    }
                }
                break;
        }
        return false;
    }
 
    public override string GetDisplay(RichTextEventEnum type, Dictionary<string, string> dic)
    {
        return string.Empty;
    }
}