// 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: 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); } }