public static void ShowInBattleMsg(COM_INBATTLE_CHAT_TYPE type, ulong playerid, uint heroID, string content, string sound)
        {
            if (type == COM_INBATTLE_CHAT_TYPE.COM_INBATTLE_CHATTYPE_SIGNAL)
            {
                CSignalTips_InBatMsg obj = new CSignalTips_InBatMsg(playerid, heroID, content, sound);
                Singleton <CBattleSystem> .instance.FightForm.GetSignalPanel().Add_SignalTip(obj);

                InBattleMsgUT.PlaySound(sound, playerid);
            }
            else if (type == COM_INBATTLE_CHAT_TYPE.COM_INBATTLE_CHATTYPE_BUBBLE)
            {
                InBattleMsgUT.ShowBubble(playerid, heroID, content);
                InBattleShortcut shortcutChat = Singleton <InBattleMsgMgr> .instance.m_shortcutChat;
                if (shortcutChat != null)
                {
                    shortcutChat.UpdatePlayerBubbleTimer(playerid, heroID);
                }
                InBattleMsgUT.PlaySound(sound, playerid);
            }
        }
Esempio n. 2
0
 public override void On_Timer_End(int timer)
 {
     base.On_Timer_End(timer);
     InBattleMsgUT.ShowBubble(this.playerid, this.heroid, string.Empty);
 }