// Token: 0x060003AE RID: 942 RVA: 0x0001CF30 File Offset: 0x0001B130 public void update() { if (this.info != null) { this.X = GameCanvas.w - 5 - this.W; this.Y = 45; if (GameCanvas.w - 50 > 155 + this.W) { this.X = GameCanvas.w - 55 - this.W; this.Y = 5; } this.cmdYes.x = this.X - 35; this.cmdYes.y = this.Y; this.curr = mSystem.currentTimeMillis(); Res.outz("curr - last= " + (this.curr - this.last)); if (this.curr - this.last >= 1000L) { this.last = mSystem.currentTimeMillis(); this.dem--; } if (this.dem == 0) { GameScr.gI().popUpYesNo = null; } } }
// Token: 0x06000306 RID: 774 RVA: 0x00004C59 File Offset: 0x00002E59 public void perform(int idAction, object p) { if (idAction == 1000) { ChatTextField.gI().startChat(GameScr.gI(), mResources.chat_player); } }
// 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: 0x060003E2 RID: 994 RVA: 0x0001E49C File Offset: 0x0001C69C public static void drawSmallImage(mGraphics g, int id, int f, int x, int y, int w, int h, int transform, int anchor) { if (SmallImage.imgbig == null) { Small small = SmallImage.imgNew[id]; if (small == null) { SmallImage.createImage(id); } else { g.drawRegion(small.img, 0, f * w, w, h, transform, x, y, anchor); } return; } if (SmallImage.smallImg != null) { if (id >= SmallImage.smallImg.Length || SmallImage.smallImg[id] == null || SmallImage.smallImg[id][1] >= 256 || SmallImage.smallImg[id][3] >= 256 || SmallImage.smallImg[id][2] >= 256 || SmallImage.smallImg[id][4] >= 256) { Small small2 = SmallImage.imgNew[id]; if (small2 == null) { SmallImage.createImage(id); } else { small2.paint(g, transform, f, x, y, w, h, anchor); } } else if (SmallImage.smallImg[id][0] != 4 && SmallImage.imgbig[SmallImage.smallImg[id][0]] != null) { g.drawRegion(SmallImage.imgbig[SmallImage.smallImg[id][0]], 0, f * w, w, h, transform, x, y, anchor); } else { Small small3 = SmallImage.imgNew[id]; if (small3 == null) { SmallImage.createImage(id); } else { small3.paint(g, transform, f, x, y, w, h, anchor); } } } else if (GameCanvas.currentScreen != GameScr.gI()) { Small small4 = SmallImage.imgNew[id]; if (small4 == null) { SmallImage.createImage(id); } else { small4.paint(g, transform, f, x, y, w, h, anchor); } } }
// Token: 0x0600060A RID: 1546 RVA: 0x0004A9F8 File Offset: 0x00048BF8 public override void update() { GameScr.gI().update(); for (int i = 0; i < this.tf.Length; i++) { this.tf[i].update(); } }
// Token: 0x06000764 RID: 1892 RVA: 0x00006A58 File Offset: 0x00004C58 public override void update() { GameScr.gI().update(); this.tfSerial.update(); this.tfCode.update(); if (Main.isWindowsPhone) { this.updateTfWhenOpenKb(); } }
// Token: 0x06000355 RID: 853 RVA: 0x00019B1C File Offset: 0x00017D1C public static void paint(mGraphics g, int x, int y) { if (!MobCapcha.isAttack) { if (GameCanvas.gameTick % 3 == 0) { if (global::Char.myCharz().cdir == 1) { MobCapcha.cmtoX = x - 20 - GameScr.cmx; } if (global::Char.myCharz().cdir == -1) { MobCapcha.cmtoX = x + 20 - GameScr.cmx; } } MobCapcha.cmtoY = global::Char.myCharz().cy - 40 - GameScr.cmy; } else { MobCapcha.delay++; if (MobCapcha.delay == 5) { MobCapcha.isAttack = false; MobCapcha.delay = 0; } MobCapcha.cmtoX = x - GameScr.cmx; MobCapcha.cmtoY = y - GameScr.cmy; } if (MobCapcha.cmx > x - GameScr.cmx) { MobCapcha.dir = -1; } else { MobCapcha.dir = 1; } g.drawImage(GameScr.imgCapcha, MobCapcha.cmx, MobCapcha.cmy - 40, 3); PopUp.paintPopUp(g, MobCapcha.cmx - 25, MobCapcha.cmy - 70, 50, 20, 16777215, false); mFont.tahoma_7b_dark.drawString(g, GameScr.gI().keyInput, MobCapcha.cmx, MobCapcha.cmy - 65, 2); if (MobCapcha.isCreateMob) { MobCapcha.isCreateMob = false; EffecMn.addEff(new Effect(18, MobCapcha.cmx + GameScr.cmx, MobCapcha.cmy + GameScr.cmy, 2, 10, -1)); } if (MobCapcha.explode) { MobCapcha.explode = false; EffecMn.addEff(new Effect(18, MobCapcha.cmx + GameScr.cmx, MobCapcha.cmy + GameScr.cmy, 2, 10, -1)); GameScr.gI().mobCapcha = null; MobCapcha.cmtoX = -GameScr.cmx; MobCapcha.cmtoY = -GameScr.cmy; } g.drawRegion(MobCapcha.imgMob, 0, MobCapcha.f * 40, 40, 40, (MobCapcha.dir != 1) ? 2 : 0, MobCapcha.cmx, MobCapcha.cmy + 3 + ((GameCanvas.gameTick % 10 <= 5) ? 0 : 1), 3); MobCapcha.moveCamera(); }
// Token: 0x06000763 RID: 1891 RVA: 0x00062F24 File Offset: 0x00061124 public override void paint(mGraphics g) { GameScr.gI().paint(g); PopUp.paintPopUp(g, this.x, this.y, this.w, this.h, -1, true); for (int i = 0; i < this.strPaint.Length; i++) { mFont.tahoma_7b_green2.drawString(g, this.strPaint[i], GameCanvas.w / 2, this.y + 15 + i * 20, mFont.CENTER); } this.tfSerial.paint(g); this.tfCode.paint(g); base.paint(g); }
// Token: 0x060002D5 RID: 725 RVA: 0x00016564 File Offset: 0x00014764 public static void paint(mGraphics g) { if (ChatPopup.serverChatPopUp != null) { return; } if (global::Char.myCharz().isUsePlane || global::Char.myCharz().isTeleport) { return; } Hint.paintArrowPointToHint(g); if (GameCanvas.menu.tDelay != 0) { return; } if (!Hint.isPaint) { return; } if (ChatPopup.scr != null) { return; } if (global::Char.ischangingMap) { return; } if (GameCanvas.currentScreen != GameScr.gI()) { return; } if (GameCanvas.panel.isShow && GameCanvas.panel.cmx != 0) { return; } if (Hint.isCamera) { g.translate(-GameScr.cmx, -GameScr.cmy); } if (Hint.trans == 0) { g.drawImage(Panel.imgBantay, Hint.x - 15, Hint.y, 0); } if (Hint.trans == 1) { g.drawRegion(Panel.imgBantay, 0, 0, 14, 16, 2, Hint.x + 15, Hint.y, StaticObj.TOP_RIGHT); } if (Hint.paintFlare) { g.drawImage(ItemMap.imageFlare, Hint.x, Hint.y, 3); } }
// Token: 0x06000722 RID: 1826 RVA: 0x0005EF2C File Offset: 0x0005D12C public void eat(int id) { this.effEat = new Effect(105, this.cx, this.cy + 20, 2, 1, -1); EffecMn.addEff(this.effEat); if (id == global::Char.myCharz().charID) { this.focus = global::Char.myCharz(); } else { this.focus = GameScr.findCharInMap(id); } }
// Token: 0x060002D0 RID: 720 RVA: 0x00015FF8 File Offset: 0x000141F8 public static void clickNpc() { if (GameCanvas.panel.isShow) { Hint.isPaint = false; } if (GameScr.getNpcTask() != null) { Hint.x = GameScr.getNpcTask().cx; Hint.y = GameScr.getNpcTask().cy; Hint.trans = 0; Hint.isCamera = true; Hint.type = ((!GameCanvas.isTouch) ? 0 : 1); } }
// 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: 0x060003E1 RID: 993 RVA: 0x0001E328 File Offset: 0x0001C528 public static void drawSmallImage(mGraphics g, int id, int x, int y, int transform, int anchor) { if (SmallImage.imgbig == null) { Small small = SmallImage.imgNew[id]; if (small == null) { SmallImage.createImage(id); } else { g.drawRegion(small, 0, 0, mGraphics.getImageWidth(small.img), mGraphics.getImageHeight(small.img), transform, x, y, anchor); } return; } if (SmallImage.smallImg != null) { if (id >= SmallImage.smallImg.Length || SmallImage.smallImg[id][1] >= 256 || SmallImage.smallImg[id][3] >= 256 || SmallImage.smallImg[id][2] >= 256 || SmallImage.smallImg[id][4] >= 256) { Small small2 = SmallImage.imgNew[id]; if (small2 == null) { SmallImage.createImage(id); } else { small2.paint(g, transform, x, y, anchor); } } else if (SmallImage.imgbig[SmallImage.smallImg[id][0]] != null) { g.drawRegion(SmallImage.imgbig[SmallImage.smallImg[id][0]], SmallImage.smallImg[id][1], SmallImage.smallImg[id][2], SmallImage.smallImg[id][3], SmallImage.smallImg[id][4], transform, x, y, anchor); } } else if (GameCanvas.currentScreen != GameScr.gI()) { Small small3 = SmallImage.imgNew[id]; if (small3 == null) { SmallImage.createImage(id); } else { small3.paint(g, transform, x, y, anchor); } } }
// 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: 0x06000616 RID: 1558 RVA: 0x0004B47C File Offset: 0x0004967C public void doChangeMap() { TileMap.maps = new int[MapTemplate.maps[CreateCharScr.indexGender].Length]; for (int i = 0; i < MapTemplate.maps[CreateCharScr.indexGender].Length; i++) { TileMap.maps[i] = MapTemplate.maps[CreateCharScr.indexGender][i]; } TileMap.types = MapTemplate.types[CreateCharScr.indexGender]; TileMap.pxh = MapTemplate.pxh[CreateCharScr.indexGender]; TileMap.pxw = MapTemplate.pxw[CreateCharScr.indexGender]; TileMap.tileID = MapTemplate.pxw[CreateCharScr.indexGender]; TileMap.tmw = MapTemplate.tmw[CreateCharScr.indexGender]; TileMap.tmh = MapTemplate.tmh[CreateCharScr.indexGender]; TileMap.tileID = this.bgID[CreateCharScr.indexGender] + 1; TileMap.loadMainTile(); TileMap.loadTileCreatChar(); GameCanvas.loadBG(this.bgID[CreateCharScr.indexGender]); GameScr.loadCamera(false, this.cx, this.cy); }
// Token: 0x060008D5 RID: 2261 RVA: 0x0007FC68 File Offset: 0x0007DE68 public static void update() { long num = mSystem.currentTimeMillis(); if (Timer.isON && num > Timer.timeExecute) { Timer.isON = false; try { if (Timer.idAction > 0) { GameScr.gI().actionPerform(Timer.idAction, null); } } catch (Exception ex) { } } }
// Token: 0x06000731 RID: 1841 RVA: 0x000602C4 File Offset: 0x0005E4C4 public void paintMenu(mGraphics g) { if (GameScr.gI().activeRongThan&& GameScr.gI().isUseFreez) { return; } g.translate(-g.getTranslateX(), -g.getTranslateY()); g.setClip(0, 0, GameCanvas.w, GameCanvas.h); g.translate(-Menu.cmx, 0); for (int i = 0; i < this.menuItems.size(); i++) { if (i == this.menuSelectedItem) { g.drawImage(Menu.imgMenu2, this.menuX + i * this.menuW + 1, Menu.menuTemY[i], 0); } else { g.drawImage(Menu.imgMenu1, this.menuX + i * this.menuW + 1, Menu.menuTemY[i], 0); } string[] array = ((Command)this.menuItems.elementAt(i)).subCaption; if (array == null) { array = new string[] { ((Command)this.menuItems.elementAt(i)).caption }; } int num = Menu.menuTemY[i] + (this.menuH - array.Length * 14) / 2 + 1; for (int j = 0; j < array.Length; j++) { if (i == this.menuSelectedItem) { mFont.tahoma_7b_green2.drawString(g, array[j], this.menuX + i * this.menuW + this.menuW / 2, num + j * 14, 2); } else { mFont.tahoma_7b_dark.drawString(g, array[j], this.menuX + i * this.menuW + this.menuW / 2, num + j * 14, 2); } } } g.translate(-g.getTranslateX(), -g.getTranslateY()); }
// Token: 0x060008C5 RID: 2245 RVA: 0x0007F510 File Offset: 0x0007D710 public static void paintTilemap(mGraphics g) { if (global::Char.isLoadingMap) { return; } GameScr.gI().paintBgItem(g, 1); for (int i = 0; i < GameScr.vItemMap.size(); i++) { ((ItemMap)GameScr.vItemMap.elementAt(i)).paintAuraItemEff(g); } for (int j = GameScr.gssx; j < GameScr.gssxe; j++) { for (int k = GameScr.gssy; k < GameScr.gssye; k++) { if (j != 0) { if (j != TileMap.tmw - 1) { int num = TileMap.maps[k * TileMap.tmw + j] - 1; if ((TileMap.tileTypeAt(j, k) & 256) != 256) { if ((TileMap.tileTypeAt(j, k) & 32) == 32) { g.drawRegion(TileMap.imgWaterfall, 0, 24 * (GameCanvas.gameTick % 8 >> 1), 24, 24, 0, j * (int)TileMap.size, k * (int)TileMap.size, 0); } else if ((TileMap.tileTypeAt(j, k) & 128) == 128) { g.drawRegion(TileMap.imgTopWaterfall, 0, 24 * (GameCanvas.gameTick % 8 >> 1), 24, 24, 0, j * (int)TileMap.size, k * (int)TileMap.size, 0); } else if (TileMap.tileID == 13) { if (!GameCanvas.lowGraphic) { return; } if (num != -1) { TileMap.paintTile(g, 0, j, k); } } else { if (TileMap.tileID == 2 && (TileMap.tileTypeAt(j, k) & 512) == 512 && num != -1) { TileMap.paintTile(g, num, j * (int)TileMap.size, k * (int)TileMap.size, 24, 1); TileMap.paintTile(g, num, j * (int)TileMap.size, k * (int)TileMap.size + 1, 24, 24); } if (TileMap.tileID == 3) { } if ((TileMap.tileTypeAt(j, k) & 16) == 16) { TileMap.bx = j * (int)TileMap.size - GameScr.cmx; TileMap.dbx = TileMap.bx - GameScr.gW2; TileMap.dfx = ((int)TileMap.size - 2) * TileMap.dbx / (int)TileMap.size; TileMap.fx = TileMap.dfx + GameScr.gW2; TileMap.paintTile(g, num, TileMap.fx + GameScr.cmx, k * (int)TileMap.size, 24, 24); } else if ((TileMap.tileTypeAt(j, k) & 512) == 512) { if (num != -1) { TileMap.paintTile(g, num, j * (int)TileMap.size, k * (int)TileMap.size, 24, 1); TileMap.paintTile(g, num, j * (int)TileMap.size, k * (int)TileMap.size + 1, 24, 24); } } else if (num != -1) { TileMap.paintTile(g, num, j, k); } } } } } } } if (GameScr.cmx < 24) { for (int l = GameScr.gssy; l < GameScr.gssye; l++) { int num2 = TileMap.maps[l * TileMap.tmw + 1] - 1; if (num2 != -1) { TileMap.paintTile(g, num2, 0, l); } } } if (GameScr.cmx > GameScr.cmxLim) { int num3 = TileMap.tmw - 2; for (int m = GameScr.gssy; m < GameScr.gssye; m++) { int num4 = TileMap.maps[m * TileMap.tmw + num3] - 1; if (num4 != -1) { TileMap.paintTile(g, num4, num3 + 1, m); } } } }
// Token: 0x0600035F RID: 863 RVA: 0x00019F78 File Offset: 0x00018178 public override void update() { if (this.template.npcTemplateId == 51) { 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.isShadown) { base.updateShadown(); } if (this.effTask == null) { sbyte[] array = new sbyte[] { -1, 9, 9, 10, 10, 11, 11 }; if (global::Char.myCharz().ctaskId >= 9 && global::Char.myCharz().ctaskId <= 10 && global::Char.myCharz().nClass.classId > 0 && (int)array[global::Char.myCharz().nClass.classId] == this.template.npcTemplateId) { if (global::Char.myCharz().taskMaint == null) { this.effTask = GameScr.efs[57]; this.indexEffTask = 0; } else if (global::Char.myCharz().taskMaint != null && global::Char.myCharz().taskMaint.index + 1 == global::Char.myCharz().taskMaint.subNames.Length) { this.effTask = GameScr.efs[62]; this.indexEffTask = 0; } } else { sbyte taskNpcId = GameScr.getTaskNpcId(); if (global::Char.myCharz().taskMaint == null && (int)taskNpcId == this.template.npcTemplateId) { this.indexEffTask = 0; } else if (global::Char.myCharz().taskMaint != null && (int)taskNpcId == this.template.npcTemplateId) { if (global::Char.myCharz().taskMaint.index + 1 == global::Char.myCharz().taskMaint.subNames.Length) { this.effTask = GameScr.efs[98]; } else { this.effTask = GameScr.efs[98]; } this.indexEffTask = 0; } } } base.update(); if (TileMap.mapID == 51) { if (this.cx > global::Char.myCharz().cx) { this.cdir = -1; } else { this.cdir = 1; } if (this.template.npcTemplateId % 2 == 0) { if (this.cf == 1) { this.cf = 0; } else { this.cf = 1; } } } }
// Token: 0x06000361 RID: 865 RVA: 0x0001A2A0 File Offset: 0x000184A0 public override void paint(mGraphics g) { if (global::Char.isLoadingMap) { return; } if (this.isHide) { return; } if (!base.isPaint()) { return; } if (this.statusMe == 15) { return; } if ((int)this.cTypePk != 0) { base.paint(g); return; } if (this.template == null) { return; } if (this.template.npcTemplateId != 4 && this.template.npcTemplateId != 51 && this.template.npcTemplateId != 50) { g.drawImage(TileMap.bong, this.cx, this.cy, 3); } if (this.template.npcTemplateId == 3) { SmallImage.drawSmallImage(g, 265, this.cx, this.cy, 0, mGraphics.BOTTOM | mGraphics.HCENTER); if (global::Char.myCharz().npcFocus != null && global::Char.myCharz().npcFocus.Equals(this)) { if (ChatPopup.currChatPopup == null) { g.drawRegion(Mob.imgHP, 0, 0, 9, 6, 0, this.cx, this.cy - this.ch + 4, mGraphics.BOTTOM | mGraphics.HCENTER); } } this.dyEff = 60; } else if (this.template.npcTemplateId != 4) { if (this.template.npcTemplateId == 50 || this.template.npcTemplateId == 51) { if (this.duahau != null) { if (this.template.npcTemplateId == 50 && Npc.mabuEff) { Npc.tMabuEff++; if (GameCanvas.gameTick % 3 == 0) { Effect me = new Effect(19, this.cx + Res.random(-50, 50), this.cy, 2, 1, -1); EffecMn.addEff(me); } if (GameCanvas.gameTick % 15 == 0) { Effect me2 = new Effect(18, this.cx + Res.random(-5, 5), this.cy + Res.random(-90, 0), 2, 1, -1); EffecMn.addEff(me2); } if (Npc.tMabuEff == 100) { GameScr.gI().activeSuperPower(this.cx, this.cy); } if (Npc.tMabuEff == 110) { Npc.mabuEff = false; this.template.npcTemplateId = 4; } } int num = 0; if (SmallImage.imgNew[this.duahau[this.duaHauIndex]] != null && SmallImage.imgNew[this.duahau[this.duaHauIndex]].img != null) { num = mGraphics.getImageHeight(SmallImage.imgNew[this.duahau[this.duaHauIndex]].img); } SmallImage.drawSmallImage(g, this.duahau[this.duaHauIndex], this.cx + Res.random(-1, 1), this.cy, 0, mGraphics.BOTTOM | mGraphics.HCENTER); if (global::Char.myCharz().npcFocus != null && global::Char.myCharz().npcFocus.Equals(this)) { if (ChatPopup.currChatPopup == null) { g.drawRegion(Mob.imgHP, 0, 0, 9, 6, 0, this.cx, this.cy - this.ch - 9 + 16 - num, mGraphics.BOTTOM | mGraphics.HCENTER); } mFont.tahoma_7b_white.drawString(g, NinjaUtil.getTime(this.seconds), this.cx, this.cy - this.ch - 16 - mFont.tahoma_7.getHeight() - 20 - num + 16, mFont.CENTER, mFont.tahoma_7b_dark); } else { mFont.tahoma_7b_white.drawString(g, NinjaUtil.getTime(this.seconds), this.cx, this.cy - this.ch - 8 - mFont.tahoma_7.getHeight() - 20 - num + 16, mFont.CENTER, mFont.tahoma_7b_dark); } } } else if (this.template.npcTemplateId == 6) { SmallImage.drawSmallImage(g, 545, this.cx, this.cy + 5, 0, mGraphics.BOTTOM | mGraphics.HCENTER); if (global::Char.myCharz().npcFocus != null && global::Char.myCharz().npcFocus.Equals(this)) { if (ChatPopup.currChatPopup == null) { g.drawRegion(Mob.imgHP, 0, 0, 9, 6, 0, this.cx, this.cy - this.ch - 9, mGraphics.BOTTOM | mGraphics.HCENTER); } } mFont.tahoma_7b_white.drawString(g, TileMap.zoneID + string.Empty, this.cx, this.cy - this.ch + 19 - mFont.tahoma_7.getHeight(), mFont.CENTER); } else { int headId = this.template.headId; int legId = this.template.legId; int bodyId = this.template.bodyId; Part part = GameScr.parts[headId]; Part part2 = GameScr.parts[legId]; Part part3 = GameScr.parts[bodyId]; if (this.cdir == 1) { SmallImage.drawSmallImage(g, (int)part.pi[global::Char.CharInfo[this.cf][0][0]].id, this.cx + global::Char.CharInfo[this.cf][0][1] + (int)part.pi[global::Char.CharInfo[this.cf][0][0]].dx, this.cy - global::Char.CharInfo[this.cf][0][2] + (int)part.pi[global::Char.CharInfo[this.cf][0][0]].dy, 0, 0); SmallImage.drawSmallImage(g, (int)part2.pi[global::Char.CharInfo[this.cf][1][0]].id, this.cx + global::Char.CharInfo[this.cf][1][1] + (int)part2.pi[global::Char.CharInfo[this.cf][1][0]].dx, this.cy - global::Char.CharInfo[this.cf][1][2] + (int)part2.pi[global::Char.CharInfo[this.cf][1][0]].dy, 0, 0); SmallImage.drawSmallImage(g, (int)part3.pi[global::Char.CharInfo[this.cf][2][0]].id, this.cx + global::Char.CharInfo[this.cf][2][1] + (int)part3.pi[global::Char.CharInfo[this.cf][2][0]].dx, this.cy - global::Char.CharInfo[this.cf][2][2] + (int)part3.pi[global::Char.CharInfo[this.cf][2][0]].dy, 0, 0); } else { SmallImage.drawSmallImage(g, (int)part.pi[global::Char.CharInfo[this.cf][0][0]].id, this.cx - global::Char.CharInfo[this.cf][0][1] - (int)part.pi[global::Char.CharInfo[this.cf][0][0]].dx, this.cy - global::Char.CharInfo[this.cf][0][2] + (int)part.pi[global::Char.CharInfo[this.cf][0][0]].dy, 2, 24); SmallImage.drawSmallImage(g, (int)part2.pi[global::Char.CharInfo[this.cf][1][0]].id, this.cx - global::Char.CharInfo[this.cf][1][1] - (int)part2.pi[global::Char.CharInfo[this.cf][1][0]].dx, this.cy - global::Char.CharInfo[this.cf][1][2] + (int)part2.pi[global::Char.CharInfo[this.cf][1][0]].dy, 2, 24); SmallImage.drawSmallImage(g, (int)part3.pi[global::Char.CharInfo[this.cf][2][0]].id, this.cx - global::Char.CharInfo[this.cf][2][1] - (int)part3.pi[global::Char.CharInfo[this.cf][2][0]].dx, this.cy - global::Char.CharInfo[this.cf][2][2] + (int)part3.pi[global::Char.CharInfo[this.cf][2][0]].dy, 2, 24); } if (TileMap.mapID != 51) { int num2 = 15; if (this.template.npcTemplateId == 47) { num2 = 47; } if (global::Char.myCharz().npcFocus != null && global::Char.myCharz().npcFocus.Equals(this)) { if (ChatPopup.currChatPopup == null) { g.drawRegion(Mob.imgHP, 0, 0, 9, 6, 0, this.cx, this.cy - this.ch - (num2 - 8), mGraphics.BOTTOM | mGraphics.HCENTER); } } else if (this.template.npcTemplateId == 47) { } } this.dyEff = 65; } } if (this.indexEffTask >= 0 && this.effTask != null && (int)this.cTypePk == 0) { SmallImage.drawSmallImage(g, this.effTask.arrEfInfo[this.indexEffTask].idImg, this.cx + this.effTask.arrEfInfo[this.indexEffTask].dx, this.cy + this.effTask.arrEfInfo[this.indexEffTask].dy - this.dyEff, 0, mGraphics.VCENTER | mGraphics.HCENTER); if (GameCanvas.gameTick % 2 == 0) { this.indexEffTask++; if (this.indexEffTask >= this.effTask.arrEfInfo.Length) { this.indexEffTask = 0; } } } if (this.chatInfo != null) { this.chatInfo.paint(g, this.cx, this.cy - this.ch, this.cdir); } }
// Token: 0x060002AF RID: 687 RVA: 0x00015000 File Offset: 0x00013200 public void paint(mGraphics g) { if (global::Char.isLoadingMap) { return; } if (this.idImage == 279 && GameScr.gI().tMabuEff >= 110) { return; } int cmx = GameScr.cmx; int cmy = GameScr.cmy; Image image; if ((int)this.layer == 2 || (int)this.layer == 4) { image = (Image)BgItem.imgNew.get(this.idImage + string.Empty); } else if (!this.isNotBlend()) { image = (Image)BgItem.imgNew.get(this.idImage + "blend" + this.layer); } else { image = (Image)BgItem.imgNew.get(this.idImage + string.Empty); } if (image != null) { if (this.idImage == 96) { return; } if ((int)this.layer == 4) { this.transX = -cmx / 2 + 100; } if (this.idImage == 28 && (int)this.layer == 3) { this.transX = -cmx / 3 + 200; } if ((this.idImage == 67 || this.idImage == 68 || this.idImage == 69 || this.idImage == 70) && (int)this.layer == 3) { this.transX = -cmx / 3 + 200; } if (this.isMiniBg() && (int)this.layer < 4) { this.transX = -(cmx >> 4) + 50; this.transY = (cmy >> 5) - 15; } int num = this.x + this.dx + this.transX; int num2 = this.y + this.dy + this.transY; if (this.x + this.dx + image.getWidth() + this.transX >= cmx && this.x + this.dx + this.transX <= cmx + GameCanvas.w && this.y + this.dy + this.transY + image.getHeight() >= cmy && this.y + this.dy + this.transY <= cmy + GameCanvas.h) { g.drawRegion(image, 0, 0, mGraphics.getImageWidth(image), mGraphics.getImageHeight(image), this.trans, this.x + this.dx + this.transX, this.y + this.dy + this.transY, 0); if (this.idImage == 11 && TileMap.mapID != 122) { g.setClip(num, num2 + 24, 48, 14); for (int i = 0; i < 2; i++) { g.drawRegion(TileMap.imgWaterflow, 0, (GameCanvas.gameTick % 8 >> 2) * 24, 24, 24, 0, num + i * 24, num2 + 24, 0); } g.setClip(GameScr.cmx, GameScr.cmy, GameScr.gW, GameScr.gH); } } if (TileMap.isDoubleMap() && this.idImage > 137 && this.idImage != 156 && this.idImage != 159 && this.idImage != 157 && this.idImage != 165 && this.idImage != 167 && this.idImage != 168 && this.idImage != 169 && this.idImage != 170 && this.idImage != 238 && TileMap.pxw - (this.x + this.dx + this.transX) >= cmx && TileMap.pxw - (this.x + this.dx + this.transX + image.getWidth()) <= cmx + GameCanvas.w && this.y + this.dy + this.transY + image.getHeight() >= cmy && this.y + this.dy + this.transY <= cmy + GameCanvas.h && (this.idImage < 241 || this.idImage >= 266)) { g.drawRegion(image, 0, 0, mGraphics.getImageWidth(image), mGraphics.getImageHeight(image), 2, TileMap.pxw - (this.x + this.dx + this.transX), this.y + this.dy + this.transY, StaticObj.TOP_RIGHT); } } }
// Token: 0x060006F5 RID: 1781 RVA: 0x0005C7D0 File Offset: 0x0005A9D0 public void update() { if (this.Equals(GameScr.info2) && GameScr.gI().popUpYesNo != null) { return; } if (!this.isUpdate) { return; } this.moveCamera(); if (this.info == null) { return; } if (this.info != null && this.info.info == null) { return; } if (!this.isDone) { if (this.timeDelay > 0) { this.timeDelay--; if (this.timeDelay == 0) { GameCanvas.panel.setTypeMessage(); GameCanvas.panel.show(); } } if (GameCanvas.gameTick % 3 == 0) { if (global::Char.myCharz().cdir == 1) { this.cmtoX = global::Char.myCharz().cx - 20 - GameScr.cmx; } if (global::Char.myCharz().cdir == -1) { this.cmtoX = global::Char.myCharz().cx + 20 - GameScr.cmx; } if (this.cmtoX <= 24) { this.cmtoX += this.info.sayWidth / 2; } if (this.cmtoX >= GameCanvas.w - 24) { this.cmtoX -= this.info.sayWidth / 2; } this.cmtoY = global::Char.myCharz().cy - 40 - GameScr.cmy; if (this.info.says != null && this.cmtoY < (this.info.says.Length + 1) * 12 + 10) { this.cmtoY = (this.info.says.Length + 1) * 12 + 10; } if (this.info.info.charInfo != null) { if (GameCanvas.w - 50 > 155 + this.info.W) { this.cmtoX = GameCanvas.w - 60 - this.info.W / 2; this.cmtoY = this.info.H + 10; } else { this.cmtoX = GameCanvas.w - 20 - this.info.W / 2; this.cmtoY = 45 + this.info.H; if (GameCanvas.w > GameCanvas.h || GameCanvas.w < 220) { this.cmtoX = GameCanvas.w - 20 - this.info.W / 2; this.cmtoY = this.info.H + 10; } } } } if (this.cmx > global::Char.myCharz().cx - GameScr.cmx) { this.dir = -1; } else { this.dir = 1; } } if (this.info.info != null) { if (this.info.infoWaitToShow.size() > 1) { if (this.info.info.timeCount == 0) { this.info.time++; if (this.info.time >= this.info.info.speed) { this.info.time = 0; this.info.infoWaitToShow.removeElementAt(0); InfoItem infoItem = (InfoItem)this.info.infoWaitToShow.firstElement(); this.info.info = infoItem; this.info.getInfo(); return; } } else { this.info.info.curr = mSystem.currentTimeMillis(); if (this.info.info.curr - this.info.info.last >= 100L) { this.info.info.last = mSystem.currentTimeMillis(); this.info.info.timeCount--; } if (this.info.info.timeCount == 0) { this.info.infoWaitToShow.removeElementAt(0); if (this.info.infoWaitToShow.size() == 0) { return; } InfoItem infoItem2 = (InfoItem)this.info.infoWaitToShow.firstElement(); this.info.info = infoItem2; this.info.getInfo(); return; } } } else if (this.info.infoWaitToShow.size() == 1) { if (this.info.info.timeCount == 0) { this.info.time++; if (this.info.time >= this.info.info.speed) { this.isDone = true; } if (this.info.time == this.info.info.speed) { this.cmtoY = -40; this.cmtoX = global::Char.myCharz().cx - GameScr.cmx + ((global::Char.myCharz().cdir != 1) ? 20 : -20); } if (this.info.time >= this.info.info.speed + 20) { this.info.time = 0; this.info.infoWaitToShow.removeAllElements(); this.info.says = null; return; } } else { this.info.info.curr = mSystem.currentTimeMillis(); if (this.info.info.curr - this.info.info.last >= 100L) { this.info.info.last = mSystem.currentTimeMillis(); this.info.info.timeCount--; } if (this.info.info.timeCount == 0) { this.isDone = true; this.cmtoY = -40; this.cmtoX = global::Char.myCharz().cx - GameScr.cmx + ((global::Char.myCharz().cdir != 1) ? 20 : -20); this.info.time = 0; this.info.infoWaitToShow.removeAllElements(); this.info.says = null; this.cmdChat = null; } } } } }
// Token: 0x06000884 RID: 2180 RVA: 0x0007C510 File Offset: 0x0007A710 public ServerListScreen() { int num = 4; if (num * 32 + 23 + 33 >= GameCanvas.w) { num--; } this.initCommand(); if (!GameCanvas.isTouch) { ServerListScreen.selected = 0; this.processInput(); } GameScr.loadCamera(true, -1, -1); GameScr.cmx = 100; GameScr.cmy = 200; if (this.cmdCallHotline == null) { this.cmdCallHotline = new Command("Gọi hotline", this, 13, null); this.cmdCallHotline.x = GameCanvas.w - 75; if (mSystem.clientType == 1 && !GameCanvas.isTouch) { this.cmdCallHotline.y = GameCanvas.h - 20; } else { int num2 = 2; this.cmdCallHotline.y = num2 + 6; } } ServerListScreen.cmdUpdateServer = new Command(); ServerListScreen.cmdUpdateServer.actionChat = delegate(string str) { string text = str; string text2 = str; if (text == null) { text = ServerListScreen.linkDefault; return; } if (text == null && text2 != null) { if (text2.Equals(string.Empty) || text2.Length < 20) { text2 = ServerListScreen.linkDefault; } ServerListScreen.getServerList(text2); } if (text != null && text2 == null) { if (text.Equals(string.Empty) || text.Length < 20) { text = ServerListScreen.linkDefault; } ServerListScreen.getServerList(text); } if (text != null && text2 != null) { if (text.Length > text2.Length) { ServerListScreen.getServerList(text); return; } ServerListScreen.getServerList(text2); } }; if (mSystem.clientType == 1) { ServerListScreen.linkDefault = "Vũ trụ 1:112.213.94.23:14445:0,Vũ trụ 2:210.211.109.199:14445:0,Vũ trụ 3:112.213.85.88:14445:0,Vũ trụ 4:27.0.12.164:14445:0,Vũ trụ 5:27.0.12.16:14445:0,Vũ trụ 6:27.0.12.173:14445:0,Vũ trụ 7:112.213.94.223:14445:0,Vũ trụ 8:112.213.94.223:14445:0,Võ đài liên vũ trụ:27.0.12.173:20000:0,Universe 1:54.179.255.27:14445:1,0,5"; return; } ServerListScreen.linkDefault = "Vũ trụ 1:dragon1.teamobi.com:14445:0,Vũ trụ 2:dragon2.teamobi.com:14445:0,Vũ trụ 3:dragon3.teamobi.com:14445:0,Vũ trụ 4:dragon4.teamobi.com:14445:0,Vũ trụ 5:dragon5.teamobi.com:14445:0,Vũ trụ 6:dragon6.teamobi.com:14445:0,Vũ trụ 7:dragon7.teamobi.com:14445:0,Vũ trụ 8:dragon8.teamobi.com:14445:0,Võ đài liên vũ trụ:dragonwar.teamobi.com:20000:0,Universe 1:dragon.indonaga.com:14445:1,0,5"; }
// Token: 0x0600088A RID: 2186 RVA: 0x0007CAE8 File Offset: 0x0007ACE8 public override void paint(mGraphics g) { if (!ServerListScreen.loadScreen) { g.setColor(0); g.fillRect(0, 0, GameCanvas.w, GameCanvas.h); if (!ServerListScreen.bigOk) { } } else { GameCanvas.paintBGGameScr(g); } int num = 2; mFont.tahoma_7_white.drawString(g, "v" + GameMidlet.VERSION, GameCanvas.w - 2, num + 15, 1, mFont.tahoma_7_grey); if (!ServerListScreen.isGetData || ServerListScreen.loadScreen) { if (mSystem.clientType == 1 && !GameCanvas.isTouch) { mFont.tahoma_7_white.drawString(g, ServerListScreen.linkweb, GameCanvas.w - 2, GameCanvas.h - 15, 1, mFont.tahoma_7_grey); } else { mFont.tahoma_7_white.drawString(g, ServerListScreen.linkweb, GameCanvas.w - 2, num, 1, mFont.tahoma_7_grey); } } else { mFont.tahoma_7_white.drawString(g, ServerListScreen.linkweb, GameCanvas.w - 2, num, 1, mFont.tahoma_7_grey); } int w = GameCanvas.w; if (ServerListScreen.cmdDeleteRMS != null) { mFont.tahoma_7_white.drawString(g, mResources.xoadulieu, GameCanvas.w - 2, GameCanvas.h - 15, 1, mFont.tahoma_7_grey); } if (GameCanvas.currentDialog == null) { if (!ServerListScreen.loadScreen) { if (!ServerListScreen.bigOk) { g.drawImage(LoginScr.imgTitle, GameCanvas.hw, GameCanvas.hh - 32, 3); if (!ServerListScreen.isGetData) { mFont.tahoma_7b_white.drawString(g, mResources.taidulieudechoi, GameCanvas.hw, GameCanvas.hh + 24, 2); if (ServerListScreen.cmdDownload != null) { ServerListScreen.cmdDownload.paint(g); } } else { if (ServerListScreen.cmdDownload != null) { ServerListScreen.cmdDownload.paint(g); } mFont.tahoma_7b_white.drawString(g, mResources.downloading_data + ServerListScreen.percent + "%", GameCanvas.w / 2, GameCanvas.hh + 24, 2); GameScr.paintOngMauPercent(GameScr.frBarPow20, GameScr.frBarPow21, GameScr.frBarPow22, (float)(GameCanvas.w / 2 - 50), (float)(GameCanvas.hh + 45), 100, 100f, g); GameScr.paintOngMauPercent(GameScr.frBarPow0, GameScr.frBarPow1, GameScr.frBarPow2, (float)(GameCanvas.w / 2 - 50), (float)(GameCanvas.hh + 45), 100, (float)ServerListScreen.percent, g); } } } else { int num2 = GameCanvas.hh - 15 * this.cmd.Length - 15; if (num2 < 25) { num2 = 25; } if (LoginScr.imgTitle != null) { g.drawImage(LoginScr.imgTitle, GameCanvas.hw, num2, 3); } for (int i = 0; i < this.cmd.Length; i++) { this.cmd[i].paint(g); } g.setClip(0, 0, GameCanvas.w, GameCanvas.h); if (ServerListScreen.testConnect == -1) { if (GameCanvas.gameTick % 20 > 10) { g.drawRegion(GameScr.imgRoomStat, 0, 14, 7, 7, 0, (GameCanvas.w - mFont.tahoma_7b_dark.getWidth(this.cmd[2 + this.nCmdPlay].caption) >> 1) - 10, this.cmd[2 + this.nCmdPlay].y + 10, 0); } } else { g.drawRegion(GameScr.imgRoomStat, 0, ServerListScreen.testConnect * 7, 7, 7, 0, (GameCanvas.w - mFont.tahoma_7b_dark.getWidth(this.cmd[2 + this.nCmdPlay].caption) >> 1) - 10, this.cmd[2 + this.nCmdPlay].y + 9, 0); } } } base.paint(g); }
void Awake() { //Если что тут может быть потеря памяти? instance = this; }
// 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: 0x06000704 RID: 1796 RVA: 0x0005CF50 File Offset: 0x0005B150 public LoginScr() { this.yLog = GameCanvas.hh - 30; TileMap.bgID = (int)((sbyte)(mSystem.currentTimeMillis() % 9L)); if (TileMap.bgID == 5 || TileMap.bgID == 6) { TileMap.bgID = 4; } GameScr.loadCamera(true, -1, -1); GameScr.cmx = 100; GameScr.cmy = 200; Main.closeKeyBoard(); if (GameCanvas.h > 200) { this.defYL = GameCanvas.hh - 80; } else { this.defYL = GameCanvas.hh - 65; } this.resetLogo(); int num = (GameCanvas.w < 200) ? 140 : 160; this.wC = num; this.yt = GameCanvas.hh - mScreen.ITEM_HEIGHT - 5; if (GameCanvas.h <= 160) { this.yt = 20; } this.tfUser = new TField(); this.tfUser.y = GameCanvas.hh - mScreen.ITEM_HEIGHT - 9; this.tfUser.width = this.wC; this.tfUser.height = mScreen.ITEM_HEIGHT + 2; this.tfUser.isFocus = true; this.tfUser.setIputType(TField.INPUT_TYPE_ANY); this.tfUser.name = (((int)mResources.language != 2) ? (mResources.phone + "/") : string.Empty) + mResources.email; this.tfPass = new TField(); this.tfPass.y = GameCanvas.hh - 4; this.tfPass.setIputType(TField.INPUT_TYPE_PASSWORD); this.tfPass.width = this.wC; this.tfPass.height = mScreen.ITEM_HEIGHT + 2; this.yt += 35; this.isCheck = true; int num2 = Rms.loadRMSInt("check"); if (num2 == 1) { this.isCheck = true; } else if (num2 == 2) { this.isCheck = false; } this.tfUser.setText(Rms.loadRMSString("acc")); this.tfPass.setText(Rms.loadRMSString("pass")); if (this.cmdCallHotline == null) { this.cmdCallHotline = new Command("Gọi hotline", this, 13, null); this.cmdCallHotline.x = GameCanvas.w - 75; if (mSystem.clientType == 1 && !GameCanvas.isTouch) { this.cmdCallHotline.y = GameCanvas.h - 20; } else { int num3 = 2; this.cmdCallHotline.y = num3 + 6; } } this.focus = 0; this.cmdLogin = new Command((GameCanvas.w <= 200) ? mResources.login2 : mResources.login, GameCanvas.instance, 888393, null); this.cmdCheck = new Command(mResources.remember, this, 2001, null); this.cmdRes = new Command(mResources.register, this, 2002, null); this.cmdBackFromRegister = new Command(mResources.CANCEL, this, 10021, null); this.left = (this.cmdMenu = new Command(mResources.MENU, this, 2003, null)); this.freeAreaHeight = this.tfUser.y - 2 * this.tfUser.height; if (GameCanvas.isTouch) { this.cmdLogin.x = GameCanvas.w / 2 + 8; this.cmdMenu.x = GameCanvas.w / 2 - mScreen.cmdW - 8; if (GameCanvas.h >= 200) { this.cmdLogin.y = this.yLog + 110; this.cmdMenu.y = this.yLog + 110; } this.cmdBackFromRegister.x = GameCanvas.w / 2 + 3; this.cmdBackFromRegister.y = this.yLog + 110; this.cmdRes.x = GameCanvas.w / 2 - 84; this.cmdRes.y = this.cmdMenu.y; } this.wP = 170; this.hP = ((!this.isRes) ? 100 : 110); this.xP = GameCanvas.hw - this.wP / 2; this.yP = this.tfUser.y - 15; int num4 = 4; int num5 = num4 * 32 + 23 + 33; if (num5 >= GameCanvas.w) { num4--; num5 = num4 * 32 + 23 + 33; } this.xLog = GameCanvas.w / 2 - num5 / 2; this.yLog = GameCanvas.hh - 30; this.lY = ((GameCanvas.w < 200) ? (this.tfUser.y - 30) : (this.yLog - 30)); this.tfUser.x = this.xLog + 10; this.tfUser.y = this.yLog + 20; this.cmdOK = new Command(mResources.OK, this, 2008, null); this.cmdOK.x = GameCanvas.w / 2 - 84; this.cmdOK.y = this.cmdLogin.y; this.cmdFogetPass = new Command(mResources.forgetPass, this, 1003, null); this.cmdFogetPass.x = GameCanvas.w / 2 + 3; this.cmdFogetPass.y = this.cmdLogin.y; this.center = this.cmdOK; this.left = this.cmdFogetPass; }
// Token: 0x06000844 RID: 2116 RVA: 0x00079940 File Offset: 0x00077B40 public RegisterScreen(sbyte haveName) { this.yLog = 130; TileMap.bgID = (int)((sbyte)(mSystem.currentTimeMillis() % 9L)); if (TileMap.bgID == 5 || TileMap.bgID == 6) { TileMap.bgID = 4; } GameScr.loadCamera(true, -1, -1); GameScr.cmx = 100; GameScr.cmy = 200; if (GameCanvas.h > 200) { this.defYL = GameCanvas.hh - 80; } else { this.defYL = GameCanvas.hh - 65; } this.resetLogo(); int num = (GameCanvas.w < 200) ? 140 : 160; this.wC = num; this.yt = GameCanvas.hh - mScreen.ITEM_HEIGHT - 5; if (GameCanvas.h <= 160) { this.yt = 20; } this.tfSodt = new TField(); this.tfSodt.setIputType(TField.INPUT_TYPE_NUMERIC); this.tfSodt.width = 220; this.tfSodt.height = mScreen.ITEM_HEIGHT + 2; this.tfSodt.name = "Số điện thoại/ địa chỉ email"; if ((int)haveName == 1) { this.tfSodt.setText("01234567890"); } this.tfUser = new TField(); this.tfUser.width = 220; this.tfUser.height = mScreen.ITEM_HEIGHT + 2; this.tfUser.isFocus = true; this.tfUser.name = "Họ và tên"; if ((int)haveName == 1) { this.tfUser.setText("Nguyễn Văn A"); } this.tfUser.setIputType(TField.INPUT_TYPE_ANY); this.tfNgay = new TField(); this.tfNgay.setIputType(TField.INPUT_TYPE_NUMERIC); this.tfNgay.width = 70; this.tfNgay.height = mScreen.ITEM_HEIGHT + 2; this.tfNgay.name = "Ngày sinh"; if ((int)haveName == 1) { this.tfNgay.setText("01"); } this.tfThang = new TField(); this.tfThang.setIputType(TField.INPUT_TYPE_NUMERIC); this.tfThang.width = 70; this.tfThang.height = mScreen.ITEM_HEIGHT + 2; this.tfThang.name = "Tháng sinh"; if ((int)haveName == 1) { this.tfThang.setText("01"); } this.tfNam = new TField(); this.tfNam.setIputType(TField.INPUT_TYPE_NUMERIC); this.tfNam.width = 70; this.tfNam.height = mScreen.ITEM_HEIGHT + 2; this.tfNam.name = "Năm sinh"; if ((int)haveName == 1) { this.tfNam.setText("1990"); } this.tfDiachi = new TField(); this.tfDiachi.setIputType(TField.INPUT_TYPE_ANY); this.tfDiachi.width = 220; this.tfDiachi.height = mScreen.ITEM_HEIGHT + 2; this.tfDiachi.name = "Địa chỉ đăng ký thường trú"; if ((int)haveName == 1) { this.tfDiachi.setText("123 đường số 1, Quận 1, TP.HCM"); } this.tfCMND = new TField(); this.tfCMND.setIputType(TField.INPUT_TYPE_NUMERIC); this.tfCMND.width = 220; this.tfCMND.height = mScreen.ITEM_HEIGHT + 2; this.tfCMND.name = "Số Chứng minh nhân dân hoặc số hộ chiếu"; if ((int)haveName == 1) { this.tfCMND.setText("123456789"); } this.tfNgayCap = new TField(); this.tfNgayCap.setIputType(TField.INPUT_TYPE_NUMERIC); this.tfNgayCap.width = 220; this.tfNgayCap.height = mScreen.ITEM_HEIGHT + 2; this.tfNgayCap.name = "Ngày cấp"; if ((int)haveName == 1) { this.tfNgayCap.setText("01/01/2005"); } this.tfNoiCap = new TField(); this.tfNoiCap.setIputType(TField.INPUT_TYPE_ANY); this.tfNoiCap.width = 220; this.tfNoiCap.height = mScreen.ITEM_HEIGHT + 2; this.tfNoiCap.name = "Nơi cấp"; if ((int)haveName == 1) { this.tfNoiCap.setText("TP.HCM"); } this.yt += 35; this.isCheck = true; this.focus = 0; this.cmdLogin = new Command((GameCanvas.w <= 200) ? mResources.login2 : mResources.login, GameCanvas.instance, 888393, null); this.cmdCheck = new Command(mResources.remember, this, 2001, null); this.cmdRes = new Command(mResources.register, this, 2002, null); this.cmdBackFromRegister = new Command(mResources.CANCEL, this, 10021, null); this.left = (this.cmdMenu = new Command(mResources.MENU, this, 2003, null)); if (GameCanvas.isTouch) { this.cmdLogin.x = GameCanvas.w / 2 - 100; this.cmdMenu.x = GameCanvas.w / 2 - mScreen.cmdW - 8; if (GameCanvas.h >= 200) { this.cmdLogin.y = GameCanvas.h / 2 - 40; this.cmdMenu.y = this.yLog + 110; } this.cmdBackFromRegister.x = GameCanvas.w / 2 + 3; this.cmdBackFromRegister.y = this.yLog + 110; this.cmdRes.x = GameCanvas.w / 2 - 84; this.cmdRes.y = this.cmdMenu.y; } this.wP = 170; this.hP = ((!this.isRes) ? 100 : 110); this.xP = GameCanvas.hw - this.wP / 2; this.yP = this.tfUser.y - 15; int num2 = 4; int num3 = num2 * 32 + 23 + 33; if (num3 >= GameCanvas.w) { num2--; num3 = num2 * 32 + 23 + 33; } this.xLog = GameCanvas.w / 2 - num3 / 2; this.yLog = 5; this.lY = ((GameCanvas.w < 200) ? (this.tfUser.y - 30) : (this.yLog - 30)); this.tfUser.x = this.xLog + 10; this.tfUser.y = this.yLog + 20; this.cmdOK = new Command(mResources.OK, this, 2008, null); this.cmdOK.x = 260; this.cmdOK.y = GameCanvas.h - 60; this.cmdFogetPass = new Command("Thoát", this, 1003, null); this.cmdFogetPass.x = 260; this.cmdFogetPass.y = GameCanvas.h - 30; if (GameCanvas.w < 250) { this.cmdOK.x = GameCanvas.w / 2 - 80; this.cmdFogetPass.x = GameCanvas.w / 2 + 10; this.cmdFogetPass.y = (this.cmdOK.y = GameCanvas.h - 25); } this.center = this.cmdOK; this.left = this.cmdFogetPass; }
// Token: 0x0600060F RID: 1551 RVA: 0x0004AC84 File Offset: 0x00048E84 public CreateCharScr() { try { if (!GameCanvas.lowGraphic) { CreateCharScr.loadMapFromResource(new sbyte[] { 39, 40, 41 }); } this.loadMapTableFromResource(new sbyte[] { 39, 40, 41 }); } catch (Exception ex) { Cout.LogError("Tao char loi " + ex.ToString()); } if (GameCanvas.w <= 200) { GameScr.setPopupSize(128, 100); GameScr.popupX = (GameCanvas.w - 128) / 2; GameScr.popupY = 10; this.cy += 15; this.dy -= 15; } CreateCharScr.indexGender = 1; CreateCharScr.tAddName = new TField(); CreateCharScr.tAddName.width = GameCanvas.loginScr.tfUser.width; if (GameCanvas.w < 200) { CreateCharScr.tAddName.width = 60; } CreateCharScr.tAddName.height = mScreen.ITEM_HEIGHT + 2; if (GameCanvas.w < 200) { CreateCharScr.tAddName.x = GameScr.popupX + 45; CreateCharScr.tAddName.y = GameScr.popupY + 12; } else { CreateCharScr.tAddName.x = GameCanvas.w / 2 - CreateCharScr.tAddName.width / 2; CreateCharScr.tAddName.y = 35; } if (!GameCanvas.isTouch) { CreateCharScr.tAddName.isFocus = true; } CreateCharScr.tAddName.setIputType(TField.INPUT_TYPE_ANY); CreateCharScr.tAddName.showSubTextField = false; CreateCharScr.tAddName.strInfo = mResources.char_name; if (CreateCharScr.tAddName.getText().Equals("@")) { CreateCharScr.tAddName.setText(GameCanvas.loginScr.tfUser.getText().Substring(0, GameCanvas.loginScr.tfUser.getText().IndexOf("@"))); } CreateCharScr.tAddName.name = mResources.char_name; CreateCharScr.indexGender = 1; CreateCharScr.indexHair = 0; this.center = new Command(mResources.NEWCHAR, this, 8000, null); this.left = new Command(mResources.BACK, this, 8001, null); if (!GameCanvas.isTouch) { this.right = CreateCharScr.tAddName.cmdClear; } this.yBegin = CreateCharScr.tAddName.y; }
// Token: 0x0600032F RID: 815 RVA: 0x00004E74 File Offset: 0x00003074 public ItemOption(int optionTemplateId, int param) { this.param = param; this.optionTemplate = GameScr.gI().iOptionTemplates[optionTemplateId]; }