// Token: 0x0600061A RID: 1562 RVA: 0x0004B974 File Offset: 0x00049B74 public override void paint(mGraphics g) { if (global::Char.isLoadingMap) { return; } GameCanvas.paintBGGameScr(g); g.translate(-GameScr.cmx, -GameScr.cmy); if (!GameCanvas.lowGraphic) { for (int i = 0; i < MapTemplate.vCurrItem[CreateCharScr.indexGender].size(); i++) { BgItem bgItem = (BgItem)MapTemplate.vCurrItem[CreateCharScr.indexGender].elementAt(i); if (bgItem.idImage != -1 && (int)bgItem.layer == 1) { bgItem.paint(g); } } } TileMap.paintTilemap(g); int num = 30; if (GameCanvas.w == 128) { num = 20; } int num2 = CreateCharScr.hairID[CreateCharScr.indexGender][CreateCharScr.indexHair]; int num3 = CreateCharScr.defaultLeg[CreateCharScr.indexGender]; int num4 = CreateCharScr.defaultBody[CreateCharScr.indexGender]; g.drawImage(TileMap.bong, this.cx, this.cy + this.dy, 3); Part part = GameScr.parts[num2]; Part part2 = GameScr.parts[num3]; Part part3 = GameScr.parts[num4]; 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 + this.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 + this.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 + this.dy, 0, 0); if (!GameCanvas.lowGraphic) { for (int j = 0; j < MapTemplate.vCurrItem[CreateCharScr.indexGender].size(); j++) { BgItem bgItem2 = (BgItem)MapTemplate.vCurrItem[CreateCharScr.indexGender].elementAt(j); if (bgItem2.idImage != -1 && (int)bgItem2.layer == 3) { bgItem2.paint(g); } } } g.translate(-g.getTranslateX(), -g.getTranslateY()); if (GameCanvas.w < 200) { GameCanvas.paintz.paintFrame(GameScr.popupX, GameScr.popupY, GameScr.popupW, GameScr.popupH, g); SmallImage.drawSmallImage(g, (int)part.pi[global::Char.CharInfo[0][0][0]].id, GameCanvas.w / 2 + global::Char.CharInfo[0][0][1] + (int)part.pi[global::Char.CharInfo[0][0][0]].dx, GameScr.popupY + 30 + 3 * num - global::Char.CharInfo[0][0][2] + (int)part.pi[global::Char.CharInfo[0][0][0]].dy + this.dy, 0, 0); SmallImage.drawSmallImage(g, (int)part2.pi[global::Char.CharInfo[0][1][0]].id, GameCanvas.w / 2 + global::Char.CharInfo[0][1][1] + (int)part2.pi[global::Char.CharInfo[0][1][0]].dx, GameScr.popupY + 30 + 3 * num - global::Char.CharInfo[0][1][2] + (int)part2.pi[global::Char.CharInfo[0][1][0]].dy + this.dy, 0, 0); SmallImage.drawSmallImage(g, (int)part3.pi[global::Char.CharInfo[0][2][0]].id, GameCanvas.w / 2 + global::Char.CharInfo[0][2][1] + (int)part3.pi[global::Char.CharInfo[0][2][0]].dx, GameScr.popupY + 30 + 3 * num - global::Char.CharInfo[0][2][2] + (int)part3.pi[global::Char.CharInfo[0][2][0]].dy + this.dy, 0, 0); for (int k = 0; k < mResources.MENUNEWCHAR.Length; k++) { if (CreateCharScr.selected == k) { g.drawRegion(GameScr.arrow, 0, 0, 13, 16, 2, GameScr.popupX + 10 + ((GameCanvas.gameTick % 7 <= 3) ? 0 : 1), GameScr.popupY + 35 + k * num, StaticObj.VCENTER_HCENTER); g.drawRegion(GameScr.arrow, 0, 0, 13, 16, 0, GameScr.popupX + GameScr.popupW - 10 - ((GameCanvas.gameTick % 7 <= 3) ? 0 : 1), GameScr.popupY + 35 + k * num, StaticObj.VCENTER_HCENTER); } mFont.tahoma_7b_dark.drawString(g, mResources.MENUNEWCHAR[k], GameScr.popupX + 20, GameScr.popupY + 30 + k * num, 0); } mFont.tahoma_7b_dark.drawString(g, mResources.MENUGENDER[CreateCharScr.indexGender], GameScr.popupX + 70, GameScr.popupY + 30 + 1 * num, mFont.LEFT); mFont.tahoma_7b_dark.drawString(g, mResources.hairStyleName[CreateCharScr.indexGender][CreateCharScr.indexHair], GameScr.popupX + 55, GameScr.popupY + 30 + 2 * num, mFont.LEFT); CreateCharScr.tAddName.paint(g); } else { if (!Main.isPC) { if (mGraphics.addYWhenOpenKeyBoard != 0) { this.yButton = 110; this.disY = 60; if (GameCanvas.w > GameCanvas.h) { this.yButton = GameScr.popupY + 30 + 3 * num + (int)part3.pi[global::Char.CharInfo[0][2][0]].dy + this.dy - 15; this.disY = 35; } } else { this.yButton = 110; this.disY = 60; if (GameCanvas.w > GameCanvas.h) { this.yButton = 100; this.disY = 45; } } CreateCharScr.tAddName.y = this.yButton - CreateCharScr.tAddName.height - this.disY + 5; } else { this.yButton = 110; this.disY = 60; if (GameCanvas.w > GameCanvas.h) { this.yButton = 100; this.disY = 45; } CreateCharScr.tAddName.y = this.yBegin; } for (int l = 0; l < 3; l++) { int num5 = 78; if (l != CreateCharScr.indexGender) { g.drawImage(GameScr.imgLbtn, GameCanvas.w / 2 - num5 + l * num5, this.yButton, 3); } else { if (CreateCharScr.selected == 1) { g.drawRegion(GameScr.arrow, 0, 0, 13, 16, 4, GameCanvas.w / 2 - num5 + l * num5, this.yButton - 20 + ((GameCanvas.gameTick % 7 <= 3) ? 0 : 1), StaticObj.VCENTER_HCENTER); } g.drawImage(GameScr.imgLbtnFocus, GameCanvas.w / 2 - num5 + l * num5, this.yButton, 3); } mFont.tahoma_7b_dark.drawString(g, mResources.MENUGENDER[l], GameCanvas.w / 2 - num5 + l * num5, this.yButton - 5, mFont.CENTER); } for (int m = 0; m < 3; m++) { int num6 = 78; if (m != CreateCharScr.indexHair) { g.drawImage(GameScr.imgLbtn, GameCanvas.w / 2 - num6 + m * num6, this.yButton + this.disY, 3); } else { if (CreateCharScr.selected == 2) { g.drawRegion(GameScr.arrow, 0, 0, 13, 16, 4, GameCanvas.w / 2 - num6 + m * num6, this.yButton + this.disY - 20 + ((GameCanvas.gameTick % 7 <= 3) ? 0 : 1), StaticObj.VCENTER_HCENTER); } g.drawImage(GameScr.imgLbtnFocus, GameCanvas.w / 2 - num6 + m * num6, this.yButton + this.disY, 3); } mFont.tahoma_7b_dark.drawString(g, mResources.hairStyleName[CreateCharScr.indexGender][m], GameCanvas.w / 2 - num6 + m * num6, this.yButton + this.disY - 5, mFont.CENTER); } CreateCharScr.tAddName.paint(g); } g.setClip(0, 0, GameCanvas.w, GameCanvas.h); mFont.tahoma_7b_white.drawString(g, mResources.server + " " + LoginScr.serverName, 5, 5, 0, mFont.tahoma_7b_dark); if (!TouchScreenKeyboard.visible) { base.paint(g); } }
// 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); }
// 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); } } }