// 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; } }
// 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; } } }