// Token: 0x0600061B RID: 1563 RVA: 0x0004C340 File Offset: 0x0004A540 public void perform(int idAction, object p) { if (idAction != 8000) { if (idAction != 8001) { if (idAction != 10019) { if (idAction == 10020) { GameCanvas.endDlg(); } } else { Session_ME.gI().close(); GameCanvas.endDlg(); GameCanvas.serverScreen.switchToMe(); } } else { if (GameCanvas.loginScr.isLogin2) { GameCanvas.startYesNoDlg(mResources.note, new Command(mResources.YES, this, 10019, null), new Command(mResources.NO, this, 10020, null)); return; } if (Main.isWindowsPhone) { GameMidlet.isBackWindowsPhone = true; } Session_ME.gI().close(); GameCanvas.serverScreen.switchToMe(); } } else { if (CreateCharScr.tAddName.getText().Equals(string.Empty)) { GameCanvas.startOKDlg(mResources.char_name_blank); return; } if (CreateCharScr.tAddName.getText().Length < 5) { GameCanvas.startOKDlg(mResources.char_name_short); return; } if (CreateCharScr.tAddName.getText().Length > 15) { GameCanvas.startOKDlg(mResources.char_name_long); return; } InfoDlg.showWait(); Service.gI().createChar(CreateCharScr.tAddName.getText(), CreateCharScr.indexGender, CreateCharScr.hairID[CreateCharScr.indexGender][CreateCharScr.indexHair]); } }
// Token: 0x0600042F RID: 1071 RVA: 0x00023A9C File Offset: 0x00021C9C public void perform(int idAction, object p) { if (idAction != 1) { if (idAction == 2) { GameScr.gI().auto = 0; if (global::Char.myCharz().isInEnterOfflinePoint() != null) { Service.gI().charMove(); InfoDlg.showWait(); Service.gI().getMapOffline(); global::Char.ischangingMap = true; return; } if (global::Char.myCharz().isInEnterOnlinePoint() != null) { Service.gI().charMove(); Service.gI().requestChangeMap(); global::Char.isLockKey = true; global::Char.ischangingMap = true; GameCanvas.clearKeyHold(); GameCanvas.clearKeyPressed(); InfoDlg.showWait(); return; } int xEnd = (int)((this.minX + this.maxX) / 2); int yEnd = (int)this.maxY; global::Char.myCharz().currentMovePoint = new MovePoint(xEnd, yEnd); global::Char.myCharz().cdir = ((global::Char.myCharz().cx - global::Char.myCharz().currentMovePoint.xEnd <= 0) ? 1 : -1); global::Char.myCharz().endMovePointCommand = new Command(null, this, 2, null); return; } } else { int xEnd2 = (int)((this.minX + this.maxX) / 2); int yEnd2 = (int)this.maxY; if (this.maxY > this.minY + 24) { yEnd2 = (int)((this.minY + this.maxY) / 2); } GameScr.gI().auto = 0; global::Char.myCharz().currentMovePoint = new MovePoint(xEnd2, yEnd2); global::Char.myCharz().cdir = ((global::Char.myCharz().cx - global::Char.myCharz().currentMovePoint.xEnd <= 0) ? 1 : -1); Service.gI().charMove(); } }
// Token: 0x0600072D RID: 1837 RVA: 0x0005F750 File Offset: 0x0005D950 public void startAt(MyVector menuItems, int pos) { if (this.showMenu) { return; } this.isClose = false; this.touch = false; this.close = false; this.tDelay = 0; if (menuItems.size() == 1) { this.menuSelectedItem = 0; Command command = (Command)menuItems.elementAt(0); if (command != null && command.caption.Equals(mResources.saying)) { command.performAction(); this.showMenu = false; InfoDlg.showWait(); return; } } SoundMn.gI().openMenu(); this.isNotClose = new bool[menuItems.size()]; for (int i = 0; i < this.isNotClose.Length; i++) { this.isNotClose[i] = false; } this.disableClose = false; ChatPopup.currChatPopup = null; Effect2.vEffect2.removeAllElements(); Effect2.vEffect2Outside.removeAllElements(); InfoDlg.hide(); if (menuItems.size() == 0) { return; } this.menuItems = menuItems; this.menuW = 60; this.menuH = 60; for (int j = 0; j < menuItems.size(); j++) { Command command2 = (Command)menuItems.elementAt(j); command2.isPlaySoundButton = false; int width = mFont.tahoma_7_yellow.getWidth(command2.caption); command2.subCaption = mFont.tahoma_7_yellow.splitFontArray(command2.caption, this.menuW - 10); Res.outz("c caption= " + command2.caption); } Menu.menuTemY = new int[menuItems.size()]; this.menuX = (GameCanvas.w - menuItems.size() * this.menuW) / 2; if (this.menuX < 1) { this.menuX = 1; } this.menuY = GameCanvas.h - this.menuH - (Paint.hTab + 1) - 1; if (GameCanvas.isTouch) { this.menuY -= 3; } this.menuY += 27; for (int k = 0; k < Menu.menuTemY.Length; k++) { Menu.menuTemY[k] = GameCanvas.h; } this.showMenu = true; this.menuSelectedItem = 0; Menu.cmxLim = this.menuItems.size() * this.menuW - GameCanvas.w; if (Menu.cmxLim < 0) { Menu.cmxLim = 0; } Menu.cmtoX = 0; Menu.cmx = 0; Menu.xc = 50; this.w = menuItems.size() * this.menuW - 1; if (this.w > GameCanvas.w - 2) { this.w = GameCanvas.w - 2; } if (GameCanvas.isTouch && !Main.isPC) { this.menuSelectedItem = -1; } }