// Token: 0x060008A0 RID: 2208 RVA: 0x0007DB4C File Offset: 0x0007BD4C public override void update() { if (SplashScr.splashScrStat == 30 && !this.isCheckConnect) { this.isCheckConnect = true; if (Rms.loadRMSInt("isPlaySound") != -1) { GameCanvas.isPlaySound = (Rms.loadRMSInt("isPlaySound") == 1); } if (GameCanvas.isPlaySound) { SoundMn.gI().loadSound(TileMap.mapID); } SoundMn.gI().getStrOption(); if (Rms.loadRMSInt("svselect") == -1) { ServerListScreen.loadIP(); } else { ServerListScreen.loadIP(); } } SplashScr.splashScrStat++; ServerListScreen.updateDeleteData(); }
// Token: 0x06000732 RID: 1842 RVA: 0x00060484 File Offset: 0x0005E684 public void doCloseMenu() { Res.outz("CLOSE MENU"); this.isClose = false; this.showMenu = false; InfoDlg.hide(); if (this.close) { GameCanvas.panel.cp = null; global::Char.chatPopup = null; if (GameCanvas.panel2 != null && GameCanvas.panel2.cp != null) { GameCanvas.panel2.cp = null; } } else if (this.touch) { GameCanvas.panel.cp = null; if (GameCanvas.panel2 != null && GameCanvas.panel2.cp != null) { GameCanvas.panel2.cp = null; } if (this.menuSelectedItem >= 0) { Command command = (Command)this.menuItems.elementAt(this.menuSelectedItem); if (command != null) { SoundMn.gI().buttonClose(); command.performAction(); } } } }
// Token: 0x06000395 RID: 917 RVA: 0x0001BF0C File Offset: 0x0001A10C private void endMe() { if (!this.charBelong.isUseSkillAfterCharge && this.x >= GameScr.cmx && this.x <= GameScr.cmx + GameCanvas.w) { SoundMn.gI().explode_1(); } this.charBelong.setAttack(); if (this.charBelong.me) { this.charBelong.saveLoadPreviousSkill(); } if (this.charBelong.isUseSkillAfterCharge) { this.charBelong.isUseSkillAfterCharge = false; if (this.charBelong.isLockMove && this.charBelong.me && this.charBelong.statusMe != 14 && this.charBelong.statusMe != 5) { this.charBelong.isLockMove = false; } GameScr.gI().activeSuperPower(this.x, this.y); } this.charBelong.dart = null; this.charBelong.isCreateDark = false; this.charBelong.skillPaint = null; this.charBelong.skillPaintRandomPaint = null; }
// Token: 0x06000707 RID: 1799 RVA: 0x0005D5E0 File Offset: 0x0005B7E0 public override void switchToMe() { this.isRegistering = false; SoundMn.gI().stopAll(); this.tfUser.isFocus = true; this.tfPass.isFocus = false; if (GameCanvas.isTouch) { this.tfUser.isFocus = false; } GameCanvas.loadBG(0); base.switchToMe(); }
// Token: 0x06000846 RID: 2118 RVA: 0x0007A140 File Offset: 0x00078340 public new void switchToMe() { Res.outz("Res switch"); SoundMn.gI().stopAll(); this.focus = 0; this.tfUser.isFocus = true; this.tfNgay.isFocus = false; if (GameCanvas.isTouch) { this.tfUser.isFocus = false; this.focus = -1; } base.switchToMe(); }
// Token: 0x060003F3 RID: 1011 RVA: 0x0001EBCC File Offset: 0x0001CDCC public void soundToolOption() { GameCanvas.isPlaySound = !GameCanvas.isPlaySound; if (GameCanvas.isPlaySound) { Panel.strCauhinh[0] = mResources.turnOffSound; SoundMn.gI().loadSound(TileMap.mapID); Rms.saveRMSInt("isPlaySound", 1); } else { Panel.strCauhinh[0] = mResources.turnOnSound; SoundMn.gI().closeSound(); Rms.saveRMSInt("isPlaySound", 0); } }
// Token: 0x0600027C RID: 636 RVA: 0x000139C0 File Offset: 0x00011BC0 public MonsterDart(int x, int y, bool isBoss, int dame, int dameMp, global::Char c, int dartType) { this.info = GameScr.darts[dartType]; this.x = x; this.y = y; this.isBoss = isBoss; this.dame = dame; this.dameMp = dameMp; this.c = c; this.va = this.info.va; this.setAngle(Res.angle(c.cx - x, c.cy - y)); if (x >= GameScr.cmx && x <= GameScr.cmx + GameCanvas.w) { SoundMn.gI().mobKame(dartType); } }
// Token: 0x0600027D RID: 637 RVA: 0x00013A70 File Offset: 0x00011C70 public MonsterDart(int x, int y, bool isBoss, int dame, int dameMp, int xTo, int yTo, int dartType) { this.info = GameScr.darts[dartType]; this.x = x; this.y = y; this.isBoss = isBoss; this.dame = dame; this.dameMp = dameMp; this.xTo = xTo; this.yTo = yTo; this.va = this.info.va; this.setAngle(Res.angle(xTo - x, yTo - y)); if (x >= GameScr.cmx && x <= GameScr.cmx + GameCanvas.w) { SoundMn.gI().mobKame(dartType); } this.c = null; }
// Token: 0x060002BD RID: 701 RVA: 0x00015AAC File Offset: 0x00013CAC public void performAction() { GameCanvas.clearAllPointerEvent(); if (this.isPlaySoundButton && ((this.caption != null && !this.caption.Equals(string.Empty) && !this.caption.Equals(mResources.saying)) || this.img != null)) { SoundMn.gI().buttonClick(); } if (this.idAction > 0) { if (this.actionListener != null) { this.actionListener.perform(this.idAction, this.p); } else { GameScr.gI().actionPerform(this.idAction, this.p); } } }
// Token: 0x06000423 RID: 1059 RVA: 0x00022F24 File Offset: 0x00021124 public Teleport(int x, int y, int headId, int dir, int type, bool isMe, int planet) { this.x = x; this.y = 5; this.y2 = y; this.headId = headId; this.type = type; this.isMe = isMe; this.dir = dir; this.planet = planet; this.tPrepare = 0; int i = 0; while (i < 100) { i++; this.y2 += 12; if (TileMap.tileTypeAt(x, this.y2, 2)) { if (this.y2 % 24 != 0) { this.y2 -= this.y2 % 24; break; } break; } } this.isDown = true; if (this.planet > 2) { this.y2 += 4; } if (x > GameScr.cmx && x < GameScr.cmx + GameCanvas.w && this.y2 > 100 && !SoundMn.gI().isPlayAirShip() && !SoundMn.gI().isPlayRain()) { this.createShip = true; SoundMn.gI().airShip(); } }
// Token: 0x0600072F RID: 1839 RVA: 0x0005FA70 File Offset: 0x0005DC70 public void updateMenuKey() { if (GameScr.gI().activeRongThan&& GameScr.gI().isUseFreez) { return; } if (!this.showMenu) { return; } if (this.isScrolling()) { return; } bool flag = false; if (GameCanvas.keyPressed[(!Main.isPC) ? 2 : 21] || GameCanvas.keyPressed[(!Main.isPC) ? 4 : 23]) { flag = true; this.menuSelectedItem--; if (this.menuSelectedItem < 0) { this.menuSelectedItem = this.menuItems.size() - 1; } } else if (GameCanvas.keyPressed[(!Main.isPC) ? 8 : 22] || GameCanvas.keyPressed[(!Main.isPC) ? 6 : 24]) { flag = true; this.menuSelectedItem++; if (this.menuSelectedItem > this.menuItems.size() - 1) { this.menuSelectedItem = 0; } } else if (GameCanvas.keyPressed[(!Main.isPC) ? 5 : 25]) { if (this.center != null) { if (this.center.idAction > 0) { if (this.center.actionListener == GameScr.gI()) { GameScr.gI().actionPerform(this.center.idAction, this.center.p); } else { this.perform(this.center.idAction, this.center.p); } } } else { this.waitToPerform = 2; } } else if (GameCanvas.keyPressed[12] && !GameScr.gI().isRongThanMenu()) { if (this.isScrolling()) { return; } if (this.left.idAction > 0) { this.perform(this.left.idAction, this.left.p); } else { this.waitToPerform = 2; } SoundMn.gI().buttonClose(); } else if (!GameScr.gI().isRongThanMenu() && !this.disableClose && (GameCanvas.keyPressed[13] || mScreen.getCmdPointerLast(this.right))) { if (this.isScrolling()) { return; } if (!this.close) { this.close = true; } this.isClose = true; SoundMn.gI().buttonClose(); } if (flag) { Menu.cmtoX = this.menuSelectedItem * this.menuW + this.menuW - GameCanvas.w / 2; if (Menu.cmtoX > Menu.cmxLim) { Menu.cmtoX = Menu.cmxLim; } if (Menu.cmtoX < 0) { Menu.cmtoX = 0; } if (this.menuSelectedItem == this.menuItems.size() - 1 || this.menuSelectedItem == 0) { Menu.cmx = Menu.cmtoX; } } if (this.disableClose || !GameCanvas.isPointerJustRelease || GameCanvas.isPointer(this.menuX, this.menuY, this.w, this.menuH) || this.pointerIsDowning || GameScr.gI().isRongThanMenu()) { if (GameCanvas.isPointerDown) { if (!this.pointerIsDowning && GameCanvas.isPointer(this.menuX, this.menuY, this.w, this.menuH)) { for (int i = 0; i < this.pointerDownLastX.Length; i++) { this.pointerDownLastX[0] = GameCanvas.px; } this.pointerDownFirstX = GameCanvas.px; this.pointerIsDowning = true; this.isDownWhenRunning = (this.cmRun != 0); this.cmRun = 0; } else if (this.pointerIsDowning) { this.pointerDownTime++; if (this.pointerDownTime > 5 && this.pointerDownFirstX == GameCanvas.px && !this.isDownWhenRunning) { this.pointerDownFirstX = -1000; this.menuSelectedItem = (Menu.cmtoX + GameCanvas.px - this.menuX) / this.menuW; } int num = GameCanvas.px - this.pointerDownLastX[0]; if (num != 0 && this.menuSelectedItem != -1) { this.menuSelectedItem = -1; } for (int j = this.pointerDownLastX.Length - 1; j > 0; j--) { this.pointerDownLastX[j] = this.pointerDownLastX[j - 1]; } this.pointerDownLastX[0] = GameCanvas.px; Menu.cmtoX -= num; if (Menu.cmtoX < 0) { Menu.cmtoX = 0; } if (Menu.cmtoX > Menu.cmxLim) { Menu.cmtoX = Menu.cmxLim; } if (Menu.cmx < 0 || Menu.cmx > Menu.cmxLim) { num /= 2; } Menu.cmx -= num; if (Menu.cmx < -(GameCanvas.h / 3)) { this.wantUpdateList = true; } else { this.wantUpdateList = false; } } } if (GameCanvas.isPointerJustRelease && this.pointerIsDowning) { int i2 = GameCanvas.px - this.pointerDownLastX[0]; GameCanvas.isPointerJustRelease = false; if (Res.abs(i2) < 20 && Res.abs(GameCanvas.px - this.pointerDownFirstX) < 20 && !this.isDownWhenRunning) { this.cmRun = 0; Menu.cmtoX = Menu.cmx; this.pointerDownFirstX = -1000; this.menuSelectedItem = (Menu.cmtoX + GameCanvas.px - this.menuX) / this.menuW; this.pointerDownTime = 0; this.waitToPerform = 10; } else if (this.menuSelectedItem != -1 && this.pointerDownTime > 5) { this.pointerDownTime = 0; this.waitToPerform = 1; } else if (this.menuSelectedItem == -1 && !this.isDownWhenRunning) { if (Menu.cmx < 0) { Menu.cmtoX = 0; } else if (Menu.cmx > Menu.cmxLim) { Menu.cmtoX = Menu.cmxLim; } else { int num2 = GameCanvas.px - this.pointerDownLastX[0] + (this.pointerDownLastX[0] - this.pointerDownLastX[1]) + (this.pointerDownLastX[1] - this.pointerDownLastX[2]); if (num2 > 10) { num2 = 10; } else if (num2 < -10) { num2 = -10; } else { num2 = 0; } this.cmRun = -num2 * 100; } } this.pointerIsDowning = false; this.pointerDownTime = 0; GameCanvas.isPointerJustRelease = false; } GameCanvas.clearKeyPressed(); GameCanvas.clearKeyHold(); return; } if (this.isScrolling()) { return; } this.pointerDownTime = (this.pointerDownFirstX = 0); this.pointerIsDowning = false; GameCanvas.clearAllPointerEvent(); Res.outz("menu select= " + this.menuSelectedItem); this.isClose = true; this.close = true; SoundMn.gI().buttonClose(); }
// Token: 0x06000428 RID: 1064 RVA: 0x00023038 File Offset: 0x00021238 public void update() { if (this.isMe) { if (this.isMe && this.type == 1 && global::Char.myCharz().isTeleport) { global::Char.myCharz().cx = this.x; global::Char.myCharz().cy = this.y2; global::Char.myCharz().statusMe = 4; GameScr.cmtoX = this.x - GameScr.gW2; GameScr.cmtoY = this.y - GameScr.gH23; GameScr.info1.isUpdate = false; global::Char.myCharz().isTeleport = false; Teleport.vTeleport.removeElement(this); } if (this.isMe && this.type == 0) { global::Char.myCharz().isTeleport = true; } if (this.isMe) { if (this.type == 0) { GameScr.cmtoX = this.x - GameScr.gW2; GameScr.cmtoY = this.y - GameScr.gH23; } if (this.type == 1) { GameScr.info1.isUpdate = true; } } if (this.isMe && this.type == 0) { Controller.isStopReadMessage = false; global::Char.ischangingMap = true; Teleport.vTeleport.removeElement(this); } return; } this.tFire++; if (this.tFire > 3) { this.tFire = 0; } if (this.isDown) { this.paintFire = true; this.painHead = (this.type != 0); if (this.planet < 3) { int num = this.y2 - this.y >> 3; if (num < 1) { num = 1; this.paintFire = false; } this.y += num; } else { if (GameCanvas.gameTick % 2 == 0) { this.vy++; } if (this.y2 - this.y < this.vy) { this.y = this.y2; this.paintFire = false; } else { this.y += this.vy; } } if (this.isMe && this.type == 1 && global::Char.myCharz().isTeleport) { global::Char.myCharz().cx = this.x; global::Char.myCharz().cy = this.y - 30; global::Char.myCharz().statusMe = 4; GameScr.cmtoX = this.x - GameScr.gW2; GameScr.cmtoY = this.y - GameScr.gH23; GameScr.info1.isUpdate = false; } if (GameScr.findCharInMap(this.id) != null && !this.isMe && this.type == 1 && GameScr.findCharInMap(this.id).isTeleport) { GameScr.findCharInMap(this.id).cx = this.x; GameScr.findCharInMap(this.id).cy = this.y - 30; GameScr.findCharInMap(this.id).statusMe = 4; } if (Res.abs(this.y - this.y2) < 50 && TileMap.tileTypeAt(this.x, this.y, 2)) { this.tHole = true; if (this.planet < 3) { if (this.y % 24 != 0) { this.y -= this.y % 24; } this.tPrepare++; if (this.tPrepare > 10) { this.tPrepare = 0; this.isDown = false; this.isUp = true; this.paintFire = false; } if (this.type == 1) { if (this.isMe) { global::Char.myCharz().isTeleport = false; } else if (GameScr.findCharInMap(this.id) != null) { GameScr.findCharInMap(this.id).isTeleport = false; } this.painHead = false; return; } } else { this.y = this.y2; if (!this.isShock) { GameScr.shock_scr = 10; this.isShock = true; } this.tPrepare++; if (this.tPrepare > 30) { this.tPrepare = 0; this.isDown = false; this.isUp = true; this.paintFire = false; } if (this.type == 1) { if (this.isMe) { global::Char.myCharz().isTeleport = false; } else if (GameScr.findCharInMap(this.id) != null) { GameScr.findCharInMap(this.id).isTeleport = false; } this.painHead = false; return; } } } } else if (this.isUp) { this.tPrepare++; if (this.tPrepare > 30) { int num2 = this.y2 + 24 - this.y >> 3; if (num2 > 30) { num2 = 30; } this.y -= num2; this.paintFire = true; } else { if (this.tPrepare == 14 && this.createShip) { SoundMn.gI().resumeAirShip(); } if (this.tPrepare > 0 && this.type == 0) { if (this.isMe) { global::Char.myCharz().isTeleport = false; if (global::Char.myCharz().statusMe != 14) { global::Char.myCharz().statusMe = 3; } global::Char.myCharz().cvy = -3; } else if (GameScr.findCharInMap(this.id) != null) { GameScr.findCharInMap(this.id).isTeleport = false; if (GameScr.findCharInMap(this.id).statusMe != 14) { GameScr.findCharInMap(this.id).statusMe = 3; } GameScr.findCharInMap(this.id).cvy = -3; } this.painHead = false; } if (this.tPrepare > 12 && this.type == 0) { if (this.isMe) { global::Char.myCharz().isTeleport = true; } else if (GameScr.findCharInMap(this.id) != null) { GameScr.findCharInMap(this.id).cx = this.x; GameScr.findCharInMap(this.id).cy = this.y; GameScr.findCharInMap(this.id).isTeleport = true; } this.painHead = true; } } if (this.isMe) { if (this.type == 0) { GameScr.cmtoX = this.x - GameScr.gW2; GameScr.cmtoY = this.y - GameScr.gH23; } if (this.type == 1) { GameScr.info1.isUpdate = true; } } if (this.y <= -80) { if (this.isMe && this.type == 0) { Controller.isStopReadMessage = false; global::Char.ischangingMap = true; } if (!this.isMe && GameScr.findCharInMap(this.id) != null && this.type == 0) { GameScr.vCharInMap.removeElement(GameScr.findCharInMap(this.id)); } if (this.planet < 3) { Teleport.vTeleport.removeElement(this); return; } this.y = -80; this.tDelayHole++; if (this.tDelayHole > 80) { this.tDelayHole = 0; Teleport.vTeleport.removeElement(this); } } } }
// Token: 0x0600074C RID: 1868 RVA: 0x00061E60 File Offset: 0x00060060 public void updateMobAttack() { if (this.tick < 2) { this.checkFrameTick((this.p3 != 0) ? this.attack2 : this.attack1); if (this.x >= GameScr.cmx && this.x <= GameScr.cmx + GameCanvas.w && this.p3 == 0 && GameCanvas.gameTick % 2 == 0) { SoundMn.gI().charPunch(false, 0.05f); } } if (this.p1 == 0) { int num = (this.cFocus == null) ? this.mobToAttack.x : this.cFocus.cx; int num2 = (this.cFocus == null) ? this.mobToAttack.y : this.cFocus.cy; if (this.x > this.xFirst + (int)Mob.arrMobTemplate[this.templateId].rangeMove) { this.p1 = 1; } if (this.x < this.xFirst - (int)Mob.arrMobTemplate[this.templateId].rangeMove) { this.p1 = 1; } if (((int)Mob.arrMobTemplate[this.templateId].type == 4 || (int)Mob.arrMobTemplate[this.templateId].type == 5) && !this.isDontMove) { this.y += (num2 - this.y) / 20; } this.p2++; if (this.p2 > 3 || this.p1 == 1) { this.p1 = 1; if (this.p3 == 0) { if (this.cFocus != null) { this.cFocus.doInjure(this.dame, this.dameMp, false, true); } else { this.mobToAttack.setInjure(); } this.isBusyAttackSomeOne = false; } else { if (this.cFocus != null) { MonsterDart.addMonsterDart(this.x + this.dir * this.w, this.y, this.checkIsBoss(), this.dame, this.dameMp, this.cFocus, (int)this.getTemplate().dartType); } else { global::Char @char = new global::Char(); @char.cx = this.mobToAttack.x; @char.cy = this.mobToAttack.y; @char.charID = -100; MonsterDart.addMonsterDart(this.x + this.dir * this.w, this.y, this.checkIsBoss(), this.dame, this.dameMp, @char, (int)this.getTemplate().dartType); } this.isBusyAttackSomeOne = false; } } this.dir = ((this.x >= num) ? -1 : 1); } else if (this.p1 == 1) { if ((int)Mob.arrMobTemplate[this.templateId].type != 0 && !this.isDontMove && !this.isIce && !this.isWind) { this.x += (this.xFirst - this.x) / 4; this.y += (this.yFirst - this.y) / 4; } if (Res.abs(this.xFirst - this.x) < 5 && Res.abs(this.yFirst - this.y) < 5 && this.tick == 2) { this.status = 2; this.p1 = 0; this.p2 = 0; this.tick = 0; } } }
// Token: 0x06000282 RID: 642 RVA: 0x00013BA8 File Offset: 0x00011DA8 public override void update() { for (int i = 0; i < (int)this.info.nUpdate; i++) { if (this.info.tail.Length > 0) { this.darts.addElement(new SmallDart(this.x, this.y)); } this.dx = ((this.c == null) ? this.xTo : this.c.cx) - this.x; this.dy = ((this.c == null) ? this.yTo : this.c.cy) - 10 - this.y; int num = 60; if (TileMap.mapID == 0) { num = 600; } this.life++; if ((this.c != null && (this.c.statusMe == 5 || this.c.statusMe == 14)) || this.c == null) { this.x += (((this.c == null) ? this.xTo : this.c.cx) - this.x) / 2; this.y += (((this.c == null) ? this.yTo : this.c.cy) - this.y) / 2; } if ((Res.abs(this.dx) < 16 && Res.abs(this.dy) < 16) || this.life > num) { if (this.c != null && this.c.charID >= 0 && this.dameMp != -1) { if (this.dameMp != -100) { this.c.doInjure(this.dame, this.dameMp, false, true); } else { ServerEffect.addServerEffect(80, this.c, 1); } } Effect2.vEffect2.removeElement(this); if (this.dameMp != -100) { ServerEffect.addServerEffect(81, this.c, 1); if (this.x >= GameScr.cmx && this.x <= GameScr.cmx + GameCanvas.w) { SoundMn.gI().explode_2(); } } } int num2 = Res.angle(this.dx, this.dy); if (global::Math.abs(num2 - this.angle) < 90 || this.dx * this.dx + this.dy * this.dy > 4096) { if (global::Math.abs(num2 - this.angle) < 15) { this.angle = num2; } else if ((num2 - this.angle >= 0 && num2 - this.angle < 180) || num2 - this.angle < -180) { this.angle = Res.fixangle(this.angle + 15); } else { this.angle = Res.fixangle(this.angle - 15); } } if (!this.isSpeedUp && this.va < 8192) { this.va += 1024; } this.vx = this.va * Res.cos(this.angle) >> 10; this.vy = this.va * Res.sin(this.angle) >> 10; this.dx += this.vx; int num3 = this.dx >> 10; this.x += num3; this.dx &= 1023; this.dy += this.vy; int num4 = this.dy >> 10; this.y += num4; this.dy &= 1023; } for (int j = 0; j < this.darts.size(); j++) { SmallDart smallDart = (SmallDart)this.darts.elementAt(j); smallDart.index++; if (smallDart.index >= this.info.tail.Length) { this.darts.removeElementAt(j); } } }
// Token: 0x0600034E RID: 846 RVA: 0x00019734 File Offset: 0x00017934 public override void update() { this.p.isPaint = MagicTree.isPaint; this.cur = mSystem.currentTimeMillis(); if (this.cur - this.last >= 1000L) { this.seconds--; this.last = this.cur; if (this.seconds < 0) { this.seconds = 0; } } if (!this.isUpdate) { if (this.currPeas < this.maxPeas && this.seconds == 0) { this.waitToUpdate = true; } } else if (this.seconds == 0) { this.isUpdate = false; this.waitToUpdate = true; } if (this.waitToUpdate) { this.delay++; if (this.delay == 20) { this.delay = 0; this.waitToUpdate = false; Service.gI().getMagicTree(2); } } this.num = ((this.peaPostionX == null) ? 0 : (this.peaPostionX.Length * this.currPeas / this.maxPeas)); if (this.isUpdateTree) { this.isUpdateTree = false; if ((this.seconds >= 0 && this.currPeas < this.maxPeas) || (this.seconds >= 0 && this.isUpdate) || this.isPeasEffect) { this.p.updateXYWH(new string[] { this.isUpdate ? mResources.UPGRADING : (this.currPeas + "/" + this.maxPeas), NinjaUtil.getTime(this.seconds) }, this.cx, this.cy - 20 - SmallImage.smallImg[this.id][4]); } else if (this.currPeas == this.maxPeas && !this.isUpdate) { this.p.updateXYWH(new string[] { mResources.can_harvest, this.currPeas + "/" + this.maxPeas }, this.cx, this.cy - 20 - SmallImage.smallImg[this.id][4]); } } if ((this.seconds >= 0 && this.currPeas < this.maxPeas) || (this.seconds >= 0 && this.isUpdate)) { this.p.says[this.p.says.Length - 1] = NinjaUtil.getTime(this.seconds); } if (this.isPeasEffect) { this.p.isPaint = false; ServerEffect.addServerEffect(98, this.cx + this.peaPostionX[this.currPeas - 1] - SmallImage.smallImg[this.id][3] / 2, this.cy + this.peaPostionY[this.currPeas - 1] - SmallImage.smallImg[this.id][4], 1); this.currPeas--; if (GameCanvas.gameTick % 2 == 0) { SoundMn.gI().HP_MPup(); } if (this.currPeas == this.remainPeas) { this.p.isPaint = true; this.isUpdateTree = true; this.isPeasEffect = false; } } base.update(); }
// 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; } }
// Token: 0x06000126 RID: 294 RVA: 0x0000BC78 File Offset: 0x00009E78 public void setsizeChange() { if (!this.isRun) { Screen.orientation = ScreenOrientation.LandscapeLeft; Application.runInBackground = true; Application.targetFrameRate = 30; base.useGUILayout = false; Main.isCompactDevice = Main.detectCompactDevice(); if (Main.main == null) { Main.main = this; } this.isRun = true; ScaleGUI.initScaleGUI(); if (Main.isPC) { Main.IMEI = SystemInfo.deviceUniqueIdentifier; } else { Main.IMEI = this.GetMacAddress(); } Main.isPC = true; if (Main.isPC) { Screen.fullScreen = false; } if (Main.isWindowsPhone) { Main.typeClient = 6; } if (Main.isPC) { Main.typeClient = 4; } if (Main.IphoneVersionApp) { Main.typeClient = 5; } if (iPhoneSettings.generation == iPhoneGeneration.iPodTouch4Gen) { Main.isIpod = true; } if (iPhoneSettings.generation == iPhoneGeneration.iPhone4) { Main.isIphone4 = true; } Main.g = new mGraphics(); Main.midlet = new GameMidlet(); TileMap.loadBg(); Paint.loadbg(); PopUp.loadBg(); GameScr.loadBg(); InfoMe.gI().loadCharId(); Panel.loadBg(); Menu.loadBg(); Key.mapKeyPC(); SoundMn.gI().loadSound(TileMap.mapID); Main.g.CreateLineMaterial(); } }