76 lines
2.2 KiB
C#
76 lines
2.2 KiB
C#
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using Games.Item;
|
|
using GCGame;
|
|
using GCGame.Table;
|
|
using Games.ChatHistory;
|
|
using Module.Log;
|
|
|
|
public class ChatLinkJoinAct : ChatLinkName
|
|
{
|
|
private int _ActID;
|
|
|
|
private static Stack<ChatInfoLinkMask> _IdleLinkMasks = new Stack<ChatInfoLinkMask>();
|
|
private List<ChatInfoLinkMask> _LinkMasks = new List<ChatInfoLinkMask>();
|
|
|
|
public override void SetLinkBySendStr(Text text, ChatHistoryItem chatHistory, string linkStr, string[] linkParams)
|
|
{
|
|
StrSend = linkStr;
|
|
StrInput = linkStr;
|
|
|
|
if (linkParams.Length != 2)
|
|
return;
|
|
|
|
_ActID = int.Parse(linkParams[1]);
|
|
|
|
StrShow = StrDictionary.GetClientDictionaryString("#{9100}");
|
|
}
|
|
|
|
protected override void LinkClick(int linkindex)
|
|
{
|
|
LogModule.DebugLog("LinkClick act:" + _ActID);
|
|
|
|
//高昌活动特殊处理
|
|
if(_ActID == (int)ActivityDataManager.Activity_Type.ACTIVITY_TYPE_TREASURE_GLOD)
|
|
{
|
|
GCGame.Utils.SignUp();
|
|
return;
|
|
}
|
|
|
|
//帮会BOSS活动特殊处理
|
|
if (_ActID == (int)ActivityDataManager.Activity_Type.ACTIVITY_TYPE_GUIDBOSS)
|
|
{
|
|
UIManager.ShowUI(UIInfo.GuildBoss);
|
|
return;
|
|
}
|
|
|
|
if (_ActID == (int)ActivityDataManager.Activity_Type.ACTIVITY_TYPE_WORLD_BOSS)
|
|
{
|
|
UIManager.ShowUI(UIInfo.WorldBoss);
|
|
return;
|
|
}
|
|
|
|
UIManager.ShowUI(UIInfo.ActivePresious, OpenActivePresiousWnd, _ActID);
|
|
}
|
|
|
|
public void OpenActivePresiousWnd(bool successed, object param)
|
|
{
|
|
if (successed == true)
|
|
{
|
|
Hashtable table = new Hashtable();
|
|
table["ActiveType"] = (int)param;
|
|
Games.Events.EventDispatcher.Instance.SendMessage(Games.Events.EventId.OpenActivePresiousWnd, table);
|
|
}
|
|
}
|
|
|
|
public void OnShowGetGiftOver(bool bSuccess, object param)
|
|
{
|
|
if (bSuccess == false)
|
|
return;
|
|
Hashtable table = new Hashtable();
|
|
Games.Events.EventDispatcher.Instance.SendMessage(Games.Events.EventId.OpenGetGiftItemWnd, table);
|
|
}
|
|
}
|