Esempio n. 1
0
    private void OnClickEmoticon(IUIObject obj)
    {
        if (this.m_eChatType == CHAT_TYPE.BABELPARTY || this.m_eChatType == CHAT_TYPE.MYTHRAID)
        {
            BabelTower_ChatDlg babelTower_ChatDlg = NrTSingleton <FormsManager> .Instance.GetForm(G_ID.BABELTOWER_CHAT) as BabelTower_ChatDlg;

            if (babelTower_ChatDlg != null)
            {
                babelTower_ChatDlg.AddChatText((string)obj.Data);
            }
        }
        else if (this.m_eChatType == CHAT_TYPE.NUM)
        {
            New_Whisper_Dlg new_Whisper_Dlg = NrTSingleton <FormsManager> .Instance.GetForm(G_ID.WHISPER_DLG) as New_Whisper_Dlg;

            if (new_Whisper_Dlg != null)
            {
                new_Whisper_Dlg.AddChatText((string)obj.Data);
            }
        }
        else if (this.m_eChatType == CHAT_TYPE.STORYCHAT)
        {
            StoryChatDetailDlg storyChatDetailDlg = NrTSingleton <FormsManager> .Instance.GetForm(G_ID.STORYCHATDETAIL_DLG) as StoryChatDetailDlg;

            if (storyChatDetailDlg != null)
            {
                storyChatDetailDlg.AddComment((string)obj.Data);
            }
        }
        else
        {
            ChatManager.AddChatText((string)obj.Data);
        }
    }
Esempio n. 2
0
    private void OnClickList(IUIObject obj)
    {
        switch (this.m_ShowType)
        {
        case eWHISPER_POPUP_TYPE.ROOMLIST:
        {
            int roomUnique = (int)this.m_List.SelectedItem.Data;
            this.ClickRoomList(roomUnique);
            break;
        }

        case eWHISPER_POPUP_TYPE.STATE:
        {
            int state = (int)this.m_List.SelectedItem.Data;
            this.ClickStateList(state);
            break;
        }

        case eWHISPER_POPUP_TYPE.GROUPLIST:
        {
            eWHISPERMENU type = (eWHISPERMENU)((int)this.m_List.SelectedItem.Data);
            this.ClickGroupList(type);
            break;
        }
        }
        New_Whisper_Dlg new_Whisper_Dlg = NrTSingleton <FormsManager> .Instance.GetForm(G_ID.WHISPER_DLG) as New_Whisper_Dlg;

        if (new_Whisper_Dlg != null)
        {
            new_Whisper_Dlg.InteractivePanel.twinFormID = G_ID.NONE;
        }
        this.Close();
    }
Esempio n. 3
0
    private void ClickRoomList(int RoomUnique)
    {
        if (NrTSingleton <FormsManager> .Instance.IsShow(G_ID.WHISPER_DLG))
        {
            New_Whisper_Dlg new_Whisper_Dlg = NrTSingleton <FormsManager> .Instance.GetForm(G_ID.WHISPER_DLG) as New_Whisper_Dlg;

            new_Whisper_Dlg.TogleChange(RoomUnique);
        }
    }
Esempio n. 4
0
    public void ChangeRoom(int roomunique)
    {
        New_Whisper_Dlg new_Whisper_Dlg = NrTSingleton <FormsManager> .Instance.GetForm(G_ID.WHISPER_DLG) as New_Whisper_Dlg;

        if (new_Whisper_Dlg != null && new_Whisper_Dlg.ChangeChatRoom(roomunique))
        {
            Debug.Log("Change Chat Room - " + roomunique.ToString());
            this.RoomList[roomunique].CheckMSG = true;
        }
    }
Esempio n. 5
0
    public override void OnClose()
    {
        base.OnClose();
        New_Whisper_Dlg new_Whisper_Dlg = NrTSingleton <FormsManager> .Instance.GetForm(G_ID.WHISPER_DLG) as New_Whisper_Dlg;

        if (new_Whisper_Dlg != null)
        {
            new_Whisper_Dlg.InteractivePanel.twinFormID = G_ID.NONE;
        }
    }
Esempio n. 6
0
    public void SetUserStateChange(long PersonID, int roomunique, byte State)
    {
        if (this.RoomList.ContainsKey(roomunique))
        {
            this.RoomList[roomunique].SetUserState(State, PersonID);
        }
        New_Whisper_Dlg new_Whisper_Dlg = NrTSingleton <FormsManager> .Instance.GetForm(G_ID.WHISPER_DLG) as New_Whisper_Dlg;

        if (new_Whisper_Dlg != null && new_Whisper_Dlg.GetCurRoomUnique() == roomunique)
        {
            new_Whisper_Dlg.UpdateList(roomunique);
        }
    }
Esempio n. 7
0
    public bool PushText(int unique, string name, string msg, int color, bool systemmsg)
    {
        if (!this.RoomList.ContainsKey(unique))
        {
            Debug.LogWarning("(귓말) 생성된 방이 없습니다. unique : " + unique.ToString());
            return(false);
        }
        if (!this.RoomList[unique].IsActive() && !systemmsg)
        {
            this.RoomList[unique].SetActive();
            if (this.RoomList.Count <= 1)
            {
                this.m_bWindowClose = false;
                this.ShowWhisperDlg();
            }
        }
        if (color == 0)
        {
            color = 1101;
        }
        this.RoomList[unique].PushChat(name, msg, color);
        this.RoomList[unique].CheckMSG = false;
        New_Whisper_Dlg new_Whisper_Dlg = NrTSingleton <FormsManager> .Instance.GetForm(G_ID.WHISPER_DLG) as New_Whisper_Dlg;

        if (new_Whisper_Dlg != null && new_Whisper_Dlg.GetCurRoomUnique() == unique)
        {
            new_Whisper_Dlg.PushMsg(unique, name, msg, color.ToString());
            if (new_Whisper_Dlg.visible)
            {
                this.RoomList[unique].CheckMSG = true;
            }
            else
            {
                this.m_bWindowClose = false;
                this.ShowWhisperDlg();
            }
        }
        Debug.LogWarning(string.Concat(new object[]
        {
            "Add Private Chat Msg - name : ",
            name,
            " ,msg : ",
            msg,
            ", CheckMsg :",
            this.RoomList[unique].CheckMSG,
            " RoomUnique = ",
            unique
        }));
        return(true);
    }
Esempio n. 8
0
    public void UpdateDlg(int roomunique)
    {
        if (this.RoomList.ContainsKey(roomunique))
        {
            this.RoomList[roomunique].SetRoomName();
            New_Whisper_Dlg new_Whisper_Dlg = NrTSingleton <FormsManager> .Instance.GetForm(G_ID.WHISPER_DLG) as New_Whisper_Dlg;

            if (new_Whisper_Dlg != null)
            {
                Debug.Log("UpdateDlg SetTitle" + this.RoomList[roomunique].GetRoomName());
                new_Whisper_Dlg.AddRoom(roomunique);
                new_Whisper_Dlg.SetTitle(this.RoomList[roomunique]);
                new_Whisper_Dlg.UpdateList(roomunique);
            }
        }
    }
Esempio n. 9
0
    public void SendUserState(int State)
    {
        this.UserState = (byte)State;
        foreach (WhisperRoom current in this.RoomList.Values)
        {
            GS_WHISPER_STATE_CHANGE_REQ gS_WHISPER_STATE_CHANGE_REQ = new GS_WHISPER_STATE_CHANGE_REQ();
            gS_WHISPER_STATE_CHANGE_REQ.i8UserChatState = (byte)State;
            gS_WHISPER_STATE_CHANGE_REQ.nRoomUnique     = current.Room;
            SendPacket.GetInstance().SendObject(eGAME_PACKET_ID.GS_WHISPER_STATE_CHANGE_REQ, gS_WHISPER_STATE_CHANGE_REQ);
            current.SetUserState(this.UserState, 0L);
        }
        New_Whisper_Dlg new_Whisper_Dlg = NrTSingleton <FormsManager> .Instance.GetForm(G_ID.WHISPER_DLG) as New_Whisper_Dlg;

        if (new_Whisper_Dlg != null)
        {
            new_Whisper_Dlg.SetUserStateText(this.UserState);
            new_Whisper_Dlg.UpdateList(new_Whisper_Dlg.GetCurRoomUnique());
        }
    }
Esempio n. 10
0
    private void OnClickColor(IUIObject obj)
    {
        Toggle toggle = obj as Toggle;

        NrTSingleton <WhisperManager> .Instance.ChatColor = (toggle.data as string);
        New_Whisper_Dlg new_Whisper_Dlg = NrTSingleton <FormsManager> .Instance.GetForm(G_ID.WHISPER_DLG) as New_Whisper_Dlg;

        if (new_Whisper_Dlg != null)
        {
            new_Whisper_Dlg.SetChatColor();
            new_Whisper_Dlg.InteractivePanel.twinFormID = G_ID.NONE;
        }
        BabelTower_ChatDlg babelTower_ChatDlg = NrTSingleton <FormsManager> .Instance.GetForm(G_ID.BABELTOWER_CHAT) as BabelTower_ChatDlg;

        if (babelTower_ChatDlg != null)
        {
            babelTower_ChatDlg.SetChatColor();
            babelTower_ChatDlg.InteractivePanel.twinFormID = G_ID.NONE;
        }
        this.Close();
    }