// Token: 0x0600061D RID: 1565 RVA: 0x0004C4AC File Offset: 0x0004A6AC public virtual void paint(mGraphics g) { g.translate(-g.getTranslateX(), -g.getTranslateY()); g.setClip(0, 0, GameCanvas.w, GameCanvas.h); GameCanvas.paintz.paintTabSoft(g); GameCanvas.paintz.paintCmdBar(g, this.left, this.center, this.right); }
// Token: 0x060008AC RID: 2220 RVA: 0x0007E2EC File Offset: 0x0007C4EC public void paintIcon(mGraphics g) { g.translate(-this.cmx, 0); PopUp.paintPopUp(g, this.x, this.y - 17, this.w, this.h + 17, -1, true); mFont.tahoma_7b_dark.drawString(g, mResources.select_clan_icon, this.x + this.w / 2, this.y - 7, 2); if (this.lastSelect >= 0 && this.lastSelect <= ClanImage.vClanImage.size() - 1) { ClanImage clanImage = (ClanImage)ClanImage.vClanImage.elementAt(this.lastSelect); if (clanImage.idImage != null) { global::Char.myCharz().paintBag(g, clanImage.idImage, GameCanvas.w / 2, this.y + 45, 1, false); } } global::Char.myCharz().paintCharBody(g, GameCanvas.w / 2, this.y + 45, 1, global::Char.myCharz().cf, false); g.setClip(this.x, this.y + this.disStart, this.w, this.h - this.disStart - 10); if (TabClanIcon.scrMain != null) { g.translate(0, -TabClanIcon.scrMain.cmy); } for (int i = 0; i < this.nItem; i++) { int num = this.x + 10; int num2 = this.y + i * this.WIDTH + this.disStart; if (num2 + this.WIDTH - ((TabClanIcon.scrMain == null) ? 0 : TabClanIcon.scrMain.cmy) >= this.y + this.disStart && num2 - ((TabClanIcon.scrMain == null) ? 0 : TabClanIcon.scrMain.cmy) <= this.y + this.disStart + this.h) { ClanImage clanImage2 = (ClanImage)ClanImage.vClanImage.elementAt(i); mFont mFont = mFont.tahoma_7_grey; if (i == this.lastSelect) { mFont = mFont.tahoma_7_blue; } if (clanImage2.name != null) { mFont.drawString(g, clanImage2.name, num + 20, num2, 0); } if (clanImage2.xu > 0) { mFont.drawString(g, clanImage2.xu + " " + mResources.XU, num + this.w - 20, num2, mFont.RIGHT); } else if (clanImage2.luong > 0) { mFont.drawString(g, clanImage2.luong + " " + mResources.LUONG, num + this.w - 20, num2, mFont.RIGHT); } else { mFont.drawString(g, mResources.free, num + this.w - 20, num2, mFont.RIGHT); } if (clanImage2.idImage != null) { SmallImage.drawSmallImage(g, (int)clanImage2.idImage[0], num, num2, 0, 0); } } } g.translate(0, -g.getTranslateY()); g.setClip(0, 0, GameCanvas.w, GameCanvas.h); GameCanvas.paintz.paintCmdBar(g, this.left, this.center, this.right); }
// 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: 0x06000883 RID: 2179 RVA: 0x0007C484 File Offset: 0x0007A684 public virtual void paint(mGraphics g) { g.translate(-g.getTranslateX(), -g.getTranslateY()); g.setClip(0, 0, GameCanvas.w, GameCanvas.h + 1); if (!ChatTextField.gI().isShow || !Main.isPC) { if (GameCanvas.currentDialog == null && !GameCanvas.menu.showMenu) { GameCanvas.paintz.paintCmdBar(g, this.left, this.center, this.right); } } }
// Token: 0x0600023A RID: 570 RVA: 0x000123CC File Offset: 0x000105CC public void paintCmd(mGraphics g) { g.translate(-g.getTranslateX(), -g.getTranslateY()); g.setClip(0, 0, GameCanvas.w, GameCanvas.h); GameCanvas.paintz.paintTabSoft(g); if (this.cmdNextLine != null) { GameCanvas.paintz.paintCmdBar(g, null, this.cmdNextLine, null); } if (this.cmdMsg1 != null) { GameCanvas.paintz.paintCmdBar(g, this.cmdMsg1, null, this.cmdMsg2); } }
// Token: 0x06000360 RID: 864 RVA: 0x0001A1F8 File Offset: 0x000183F8 public void paintHead(mGraphics g, int xStart, int yStart) { Part part = GameScr.parts[this.template.headId]; if (this.cdir == 1) { SmallImage.drawSmallImage(g, (int)part.pi[global::Char.CharInfo[this.cf][0][0]].id, GameCanvas.w - 31 - g.getTranslateX(), 2 - g.getTranslateY(), 0, 0); } else { SmallImage.drawSmallImage(g, (int)part.pi[global::Char.CharInfo[this.cf][0][0]].id, GameCanvas.w - 31 - g.getTranslateX(), 2 - g.getTranslateY(), 2, 24); } }
// 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); } }