Exemplo n.º 1
0
        private void ChangeChatMode(object sender, RoutedEventArgs e)
        {
            grid.Children.Remove(ChatView);
            chatButton.Visibility       = Visibility.Hidden;
            chatButton.IsHitTestVisible = false;

            var wind = new ChatPopup(ChatView, this, ((Button)sender).Tag);

            wind.Show();
        }
Exemplo n.º 2
0
 // Token: 0x06000231 RID: 561 RVA: 0x00004866 File Offset: 0x00002A66
 public static void addNextPopUpMultiLine(string strNext, Npc next)
 {
     ChatPopup.nextMultiChatPopUp = strNext;
     ChatPopup.nextChar           = next;
     if (ChatPopup.currChatPopup == null)
     {
         ChatPopup.addChatPopupMultiLine(ChatPopup.nextMultiChatPopUp, 100000, ChatPopup.nextChar);
         ChatPopup.nextMultiChatPopUp = null;
         ChatPopup.nextChar           = null;
     }
 }
Exemplo n.º 3
0
        void GalleryChat_Loaded(object sender, RoutedEventArgs e)
        {
            dataContext = DataContext as MainWindowViewModel;
            if (dataContext.IsChatWindowOpened)
            {
                grid.Children.Remove(ChatView);
                chatButton.Visibility       = Visibility.Hidden;
                chatButton.IsHitTestVisible = false;

                var wind = new ChatPopup(ChatView, this, dataContext);
                wind.Show();
            }
        }
Exemplo n.º 4
0
    public static void StartCinemaScene(bool bShowPanelAfterFinish = true, int seqIdx = 0, int endSeqIdx = 0, System.Action _EndCall = null)
    {
        if (StartCheck)
        {
            return;
        }

        EndCall = _EndCall;
        GameInfoBase.NotTimeUpdate = true;

        Time.timeScale = 1;
        StartCheck     = true;

        CutSceneSendMessage.PauseAllUnits(true);

        cinemaSceneManager = GameObject.Find("CinemaSceneManager").GetComponent <CinemaSceneManager> ();

        cinemaSceneManager.storeAliveCamera();
        cinemaSceneManager.setActiveSequences(true);
        cinemaSceneManager.InActiveOtherCharsExceptMe(NetData.instance.GetUserInfo()._userCharIndex);

        cinemaSceneManager.seqs[endSeqIdx].PlaybackFinished = (sequence) =>
        {
            EndCinemaScene();
            cinemaSceneManager.setActiveSequences(false);
            cinemaSceneManager.restoreUnactivedCamera();
            cinemaSceneManager.closeDialogPanel();

            // endScene에서 UIPanel들을 살려주기 때문에 컷씬 종료후 UIPanel을 보지 않으려면 revicePanel을 false로 해준다.
            if (bShowPanelAfterFinish == false)
            {
                CutSceneSendMessage.PauseAllUnits(true);
                UIMgr.setHudPanelVisible(false);
                UIMgr.setInGameBoardPanelVisible(false);
                ChatPopup chat = UIMgr.OpenChatPopup();
                if (chat != null)
                {
                    chat.Hide();
                }
                //UIMgr.setChatPopupVisible(false);
            }
        };

        cinemaSceneManager.seqs[seqIdx].Play();
    }
Exemplo n.º 5
0
 // Token: 0x0600023B RID: 571 RVA: 0x00012448 File Offset: 0x00010648
 public void perform(int idAction, object p)
 {
     if (idAction == 1000)
     {
         try
         {
             GameMidlet.instance.platformRequest((string)p);
         }
         catch (Exception)
         {
         }
         if (!Main.isPC)
         {
             GameMidlet.instance.notifyDestroyed();
         }
         else
         {
             idAction = 1001;
         }
         GameCanvas.endDlg();
     }
     if (idAction == 1001)
     {
         ChatPopup.scr             = null;
         global::Char.chatPopup    = null;
         ChatPopup.serverChatPopUp = null;
         GameScr.info1.isUpdate    = true;
         global::Char.isLockKey    = false;
         if (ChatPopup.isHavePetNpc)
         {
             GameScr.info1.info.time       = 0;
             GameScr.info1.info.info.speed = 10;
         }
     }
     if (idAction == 8000)
     {
         if (ChatPopup.performDelay > 0)
         {
             return;
         }
         int num = ChatPopup.currChatPopup.currentLine;
         num++;
         if (num >= ChatPopup.currChatPopup.lines.Length)
         {
             global::Char.chatPopup  = null;
             ChatPopup.currChatPopup = null;
             GameScr.info1.isUpdate  = true;
             global::Char.isLockKey  = false;
             if (ChatPopup.nextMultiChatPopUp != null)
             {
                 ChatPopup.addChatPopupMultiLine(ChatPopup.nextMultiChatPopUp, 100000, ChatPopup.nextChar);
                 ChatPopup.nextMultiChatPopUp = null;
                 ChatPopup.nextChar           = null;
                 return;
             }
             if (ChatPopup.isHavePetNpc)
             {
                 GameScr.info1.info.time = 0;
                 for (int i = 0; i < GameScr.info1.info.infoWaitToShow.size(); i++)
                 {
                     if (((InfoItem)GameScr.info1.info.infoWaitToShow.elementAt(i)).speed == 10000000)
                     {
                         ((InfoItem)GameScr.info1.info.infoWaitToShow.elementAt(i)).speed = 10;
                     }
                 }
             }
             return;
         }
         else
         {
             ChatPopup chatPopup = ChatPopup.addChatPopup(ChatPopup.currChatPopup.lines[num], ChatPopup.currChatPopup.delay, ChatPopup.currChatPopup.c);
             chatPopup.currentLine   = num;
             chatPopup.lines         = ChatPopup.currChatPopup.lines;
             chatPopup.cmdNextLine   = ChatPopup.currChatPopup.cmdNextLine;
             ChatPopup.currChatPopup = chatPopup;
         }
     }
 }