// 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: 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: 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: 0x06000728 RID: 1832 RVA: 0x0005F5C0 File Offset: 0x0005D7C0 public override void paint(mGraphics g) { if ((int)this.skillID != -1) { base.paintShadow(g); g.translate(0, GameCanvas.transY); this.checkFrameTick(Mabu.skills[(int)this.skillID]); if ((int)this.skillID == 0 || (int)this.skillID == 1) { Mabu.data1.paintFrame(g, this.frame, this.cx, this.cy + this.fy, (this.cdir != 1) ? 1 : 0, 2); } else { Mabu.data2.paintFrame(g, this.frame, this.cx, this.cy + this.fy, (this.cdir != 1) ? 1 : 0, 2); } g.translate(0, -GameCanvas.transY); } else { base.paint(g); } }
// Token: 0x0600052F RID: 1327 RVA: 0x0003C91C File Offset: 0x0003AB1C public override void paint(mGraphics g) { if (BigBoss.data == null) { return; } if (this.isShadown && this.status != 0) { this.paintShadow(g); } g.translate(0, GameCanvas.transY); BigBoss.data.paintFrame(g, this.frame, this.x, this.y + this.fy, (this.dir != 1) ? 1 : 0, 2); g.translate(0, -GameCanvas.transY); int num = (int)((long)this.hp * 50L / (long)this.maxHp); if (num != 0) { g.setColor(0); g.fillRect(this.x - 27, this.y - 112, 54, 8); g.setColor(16711680); g.setClip(this.x - 25, this.y - 110, num, 4); g.fillRect(this.x - 25, this.y - 110, 50, 4); g.setClip(0, 0, 3000, 3000); } if (this.shock) { Res.outz("type= " + this.type); this.tShock++; Effect me = new Effect(((int)this.type != 2) ? 22 : 19, this.x + this.tShock * 50, this.y + 25, 2, 1, -1); EffecMn.addEff(me); Effect me2 = new Effect(((int)this.type != 2) ? 22 : 19, this.x - this.tShock * 50, this.y + 25, 2, 1, -1); EffecMn.addEff(me2); if (this.tShock == 50) { this.tShock = 0; this.shock = false; } } }
// Token: 0x06000752 RID: 1874 RVA: 0x0006288C File Offset: 0x00060A8C public virtual void paint(mGraphics g) { if (this.isShadown && this.status != 0) { this.paintShadow(g); } if (!this.isPaint()) { return; } if (this.status == 1 && this.p3 > 0 && GameCanvas.gameTick % 3 == 0) { return; } g.translate(0, GameCanvas.transY); if (!this.changBody) { Mob.arrMobTemplate[this.templateId].data.paintFrame(g, this.frame, this.x, this.y + this.fy, (this.dir != 1) ? 1 : 0, 2); } else { SmallImage.drawSmallImage(g, (int)this.smallBody, this.x, this.y + this.fy - 14, 0, 3); } g.translate(0, -GameCanvas.transY); if (global::Char.myCharz().mobFocus != null && global::Char.myCharz().mobFocus.Equals(this) && this.status != 1) { int num = (int)((long)this.hp * 100L / (long)this.maxHp) / 10 - 1; if (num < 0) { num = 0; } if (num > 9) { num = 9; } g.drawRegion(Mob.imgHP, 0, 6 * (9 - num), 9, 6, 0, this.x, this.y - this.h - 10, 3); } }
// 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: 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: 0x06000300 RID: 768 RVA: 0x00016E58 File Offset: 0x00015058 public void paint(mGraphics g, int x, int y, int dir) { if (this.infoWaitToShow.size() != 0) { g.translate(x, y); if (this.says != null && this.says.Length != 0 && this.type != 1) { if (this.outSide) { this.cx -= GameScr.cmx; this.cy -= GameScr.cmy; this.cy += 35; } int num = (mGraphics.zoomLevel != 1) ? 10 : 0; if (this.info.charInfo == null) { PopUp.paintPopUp(g, this.X, this.Y, this.W, this.H, 16777215, false); } else { mSystem.paintPopUp2(g, this.X - 23, this.Y - num / 2, this.W + 15, this.H + ((!GameCanvas.isTouch) ? 14 : 0) + num); } if (this.info.charInfo == null) { g.drawRegion(Info.gocnhon, 0, 0, 9, 8, (dir != 1) ? 2 : 0, this.cx - 3 + ((dir != 1) ? 20 : -15), this.cy - this.ch - 20 + this.sayRun + 2, mGraphics.TOP | mGraphics.HCENTER); } int num2 = -1; int i = 0; while (i < this.says.Length) { mFont mFont = mFont.tahoma_7; string text = this.says[i]; int num4; if (this.says[i].StartsWith("|")) { string[] array = Res.split(this.says[i], "|", 0); if (array.Length == 3) { text = array[2]; } if (array.Length == 4) { text = array[3]; int num3 = int.Parse(array[2]); } num4 = int.Parse(array[1]); num2 = num4; } else { num4 = num2; } int num5 = num4; switch (num5 + 1) { case 0: mFont = mFont.tahoma_7; break; case 1: mFont = mFont.tahoma_7b_dark; break; case 2: mFont = mFont.tahoma_7b_green; break; case 3: mFont = mFont.tahoma_7b_blue; break; case 4: mFont = mFont.tahoma_7_red; break; case 5: mFont = mFont.tahoma_7_green; break; case 6: mFont = mFont.tahoma_7_blue; break; case 8: mFont = mFont.tahoma_7b_red; break; } IL_290: if (this.info.charInfo == null) { mFont.drawString(g, text, this.cx, this.cy - this.ch - 15 + this.sayRun + i * 12 - this.says.Length * 12 - 9, 2); } else { int num6 = this.X - 23; int num7 = this.Y - num / 2; int num8 = (mSystem.clientType != 1) ? (this.W + 25) : (this.W + 28); int num9 = this.H + ((!GameCanvas.isTouch) ? 14 : 0) + num; g.setColor(4465169); g.fillRect(num6, num7 + num9, num8, 2); int num10 = this.info.timeCount * num8 / this.info.maxTime; if (num10 < 0) { num10 = 0; } g.setColor(43758); g.fillRect(num6, num7 + num9, num10, 2); if (this.info.timeCount == 0) { return; } this.info.charInfo.paintHead(g, this.X + 10, this.Y + this.H / 2, 0); if (mGraphics.zoomLevel == 1) { ((!this.info.isChatServer) ? mFont.tahoma_7b_greenSmall : mFont.tahoma_7b_yellowSmall2).drawString(g, this.info.charInfo.cName, this.X + 12, this.Y + 3, 0); } else { ((!this.info.isChatServer) ? mFont.tahoma_7b_greenSmall : mFont.tahoma_7b_yellowSmall2).drawString(g, this.info.charInfo.cName, this.X + 12, this.Y - 3, 0); } if (!GameCanvas.isTouch) { if (!TField.isQwerty) { mFont.tahoma_7b_green2Small.drawString(g, "Nhấn # để chat", this.X + this.W / 2 + 10, this.Y + this.H, mFont.CENTER); } else { mFont.tahoma_7b_green2Small.drawString(g, "Nhấn Y để chat", this.X + this.W / 2 + 10, this.Y + this.H, mFont.CENTER); } } if (mGraphics.zoomLevel == 1) { TextInfo.paint(g, text, this.X + 14, this.Y + this.H / 2 + 2, this.W - 16, this.H, mFont.tahoma_7_whiteSmall); } else { string[] array2 = mFont.tahoma_7_whiteSmall.splitFontArray(text, 120); for (int j = 0; j < array2.Length; j++) { mFont.tahoma_7_whiteSmall.drawString(g, array2[j], this.X + 12, this.Y + 12 + j * 12 - 3, 0); } GameCanvas.resetTrans(g); } } i++; continue; goto IL_290; } if (this.info.charInfo != null) { } } g.translate(-x, -y); } }