// Token: 0x0600038C RID: 908 RVA: 0x00005266 File Offset: 0x00003466 public void paintFrameSimple(int x, int y, int w, int h, mGraphics g) { g.setColor(6702080); g.fillRect(x, y, w, h); g.setColor(14338484); g.fillRect(x + 1, y + 1, w - 2, h - 2); }
// Token: 0x0600036F RID: 879 RVA: 0x0001B2EC File Offset: 0x000194EC public void paintDefaultPopupH(mGraphics g, int h) { g.setColor(14279153); g.fillRect(8, GameCanvas.h - (h + 37), GameCanvas.w - 16, h + 4); g.setColor(4682453); g.fillRect(10, GameCanvas.h - (h + 35), GameCanvas.w - 20, h); }
// Token: 0x060008A2 RID: 2210 RVA: 0x0007DDE4 File Offset: 0x0007BFE4 public override void paint(mGraphics g) { if (SplashScr.imgLogo != null && SplashScr.splashScrStat < 30) { g.setColor(16777215); g.fillRect(0, 0, GameCanvas.w, GameCanvas.h); g.drawImage(SplashScr.imgLogo, GameCanvas.w / 2, GameCanvas.h / 2, 3); } if (SplashScr.nData != -1) { g.setColor(0); g.fillRect(0, 0, GameCanvas.w, GameCanvas.h); g.drawImage(LoginScr.imgTitle, GameCanvas.w / 2, GameCanvas.h / 2 - 24, StaticObj.BOTTOM_HCENTER); GameCanvas.paintShukiren(GameCanvas.hw, GameCanvas.h / 2 + 24, g); mFont.tahoma_7b_white.drawString(g, mResources.downloading_data + SplashScr.nData * 100 / SplashScr.maxData + "%", GameCanvas.w / 2, GameCanvas.h / 2, 2); } else if (SplashScr.splashScrStat >= 30) { g.setColor(0); g.fillRect(0, 0, GameCanvas.w, GameCanvas.h); GameCanvas.paintShukiren(GameCanvas.hw, GameCanvas.hh, g); if (ServerListScreen.cmdDeleteRMS != null) { mFont.tahoma_7_white.drawString(g, mResources.xoadulieu, GameCanvas.w - 2, GameCanvas.h - 15, 1, mFont.tahoma_7_grey); } } }
// Token: 0x060003A4 RID: 932 RVA: 0x000053BF File Offset: 0x000035BF public void paintClipPopUp(mGraphics g, int x, int y, int w, int h, int color, bool isFocus) { if (color == 1) { g.fillRect(x, y, w, h, 16777215, 90); } else { g.fillRect(x, y, w, h, 0, 77); } }
// Token: 0x0600030B RID: 779 RVA: 0x00017A3C File Offset: 0x00015C3C public void paintUpgradeEffect(int x, int y, int upgrade, mGraphics g) { int num = GameScr.indexSize - 2; int num2 = 0; int num3 = (upgrade >= 4) ? ((upgrade >= 8) ? ((upgrade >= 12) ? ((upgrade > 14) ? 4 : 3) : 2) : 1) : 0; for (int i = num2; i < this.size.Length; i++) { int num4 = x - num / 2 + this.upgradeEffectX(GameCanvas.gameTick * 1 - i * 4); int num5 = y - num / 2 + this.upgradeEffectY(GameCanvas.gameTick * 1 - i * 4); g.setColor(this.colorBorder[num3][i]); g.fillRect(num4 - this.size[i] / 2, num5 - this.size[i] / 2, this.size[i], this.size[i]); } if (upgrade == 4 || upgrade == 8) { for (int j = num2; j < this.size.Length; j++) { int num6 = x - num / 2 + this.upgradeEffectX((GameCanvas.gameTick - num * 2) * 1 - j * 4); int num7 = y - num / 2 + this.upgradeEffectY((GameCanvas.gameTick - num * 2) * 1 - j * 4); g.setColor(this.colorBorder[num3 - 1][j]); g.fillRect(num6 - this.size[j] / 2, num7 - this.size[j] / 2, this.size[j], this.size[j]); } } if (upgrade != 1 && upgrade != 4 && upgrade != 8) { for (int k = num2; k < this.size.Length; k++) { int num8 = x - num / 2 + this.upgradeEffectX((GameCanvas.gameTick - num * 2) * 1 - k * 4); int num9 = y - num / 2 + this.upgradeEffectY((GameCanvas.gameTick - num * 2) * 1 - k * 4); g.setColor(this.colorBorder[num3][k]); g.fillRect(num8 - this.size[k] / 2, num9 - this.size[k] / 2, this.size[k], this.size[k]); } } if (upgrade != 1 && upgrade != 4 && upgrade != 8 && upgrade != 12 && upgrade != 2 && upgrade != 5 && upgrade != 9) { for (int l = num2; l < this.size.Length; l++) { int num10 = x - num / 2 + this.upgradeEffectX((GameCanvas.gameTick - num) * 1 - l * 4); int num11 = y - num / 2 + this.upgradeEffectY((GameCanvas.gameTick - num) * 1 - l * 4); g.setColor(this.colorBorder[num3][l]); g.fillRect(num10 - this.size[l] / 2, num11 - this.size[l] / 2, this.size[l], this.size[l]); } } if (upgrade != 1 && upgrade != 4 && upgrade != 8 && upgrade != 12 && upgrade != 2 && upgrade != 5 && upgrade != 9 && upgrade != 13 && upgrade != 3 && upgrade != 6 && upgrade != 10 && upgrade != 15) { for (int m = num2; m < this.size.Length; m++) { int num12 = x - num / 2 + this.upgradeEffectX((GameCanvas.gameTick - num * 3) * 1 - m * 4); int num13 = y - num / 2 + this.upgradeEffectY((GameCanvas.gameTick - num * 3) * 1 - m * 4); g.setColor(this.colorBorder[num3][m]); g.fillRect(num12 - this.size[m] / 2, num13 - this.size[m] / 2, this.size[m], this.size[m]); } } }
// Token: 0x0600038B RID: 907 RVA: 0x0001B924 File Offset: 0x00019B24 public void paintFrame(int x, int y, int w, int h, mGraphics g) { g.setColor(13524492); g.drawRect(x + 6, y, w - 12, h); g.drawRect(x, y + 6, w, h - 12); g.drawRect(x + 7, y + 1, w - 14, h - 2); g.drawRect(x + 1, y + 7, w - 2, h - 14); g.setColor(14338484); g.fillRect(x + 8, y + 2, w - 16, h - 3); g.fillRect(x + 2, y + 8, w - 3, h - 14); g.drawImage(GameCanvas.imgBorder[2], x, y, mGraphics.TOP | mGraphics.LEFT); g.drawRegion(GameCanvas.imgBorder[2], 0, 0, 16, 16, 2, x + w + 1, y, StaticObj.TOP_RIGHT); g.drawRegion(GameCanvas.imgBorder[2], 0, 0, 16, 16, 1, x, y + h + 1, StaticObj.BOTTOM_LEFT); g.drawRegion(GameCanvas.imgBorder[2], 0, 0, 16, 16, 3, x + w + 1, y + h + 1, StaticObj.BOTTOM_RIGHT); }
// Token: 0x060000DF RID: 223 RVA: 0x0000AD3C File Offset: 0x00008F3C public void paint(mGraphics g) { g.setClip(0, 0, GameCanvas.w, GameCanvas.h); bool flag = this.isFocused(); if (this.inputType == TField.INPUT_TYPE_PASSWORD) { this.paintedText = this.passwordText; } else { this.paintedText = this.text; } this.paintInputTf(g, flag, this.x, this.y - 1, this.width, this.height + 5, TField.TEXT_GAP_X + this.offsetX + this.x + 1, this.y + (this.height - mFont.tahoma_8b.getHeight()) / 2 + 2, this.paintedText, this.name); g.setClip(this.x + 3, this.y + 1, this.width - 4, this.height - 2); g.setColor(0); if (flag && this.isPaintMouse && this.isPaintCarret) { if (this.keyInActiveState == 0 && (this.showCaretCounter > 0 || this.counter / TField.CARET_SHOWING_TIME % 4 == 0)) { g.setColor(7999781); g.fillRect(TField.TEXT_GAP_X + 1 + this.offsetX + this.x + mFont.tahoma_8b.getWidth(this.paintedText.Substring(0, this.caretPos) + "a") - TField.CARET_WIDTH - mFont.tahoma_8b.getWidth("a"), this.y + (this.height - TField.CARET_HEIGHT) / 2 + 5, TField.CARET_WIDTH, TField.CARET_HEIGHT); } GameCanvas.resetTrans(g); if (this.text != null && this.text.Length > 0 && GameCanvas.isTouch) { g.drawImage(GameCanvas.imgClear, this.x + this.width - 13, this.y + this.height / 2 + 3, mGraphics.VCENTER | mGraphics.HCENTER); } } }
// Token: 0x0600036D RID: 877 RVA: 0x0000506A File Offset: 0x0000326A public void paintDefaultPopup(mGraphics g, int x, int y, int w, int h) { g.setColor(8411138); g.fillRect(x, y, w, h); g.setColor(13606712); g.drawRect(x, y, w, h); }
// Token: 0x0600036E RID: 878 RVA: 0x0000509A File Offset: 0x0000329A public void paintWhitePopup(mGraphics g, int y, int x, int width, int height) { g.setColor(16776363); g.fillRect(x, y, width, height); g.setColor(0); g.drawRect(x - 1, y - 1, width + 1, height + 1); }
// Token: 0x060003A5 RID: 933 RVA: 0x0001C5FC File Offset: 0x0001A7FC public static void paintPopUp(mGraphics g, int x, int y, int w, int h, int color, bool isButton) { if (!isButton) { g.setColor(0); g.fillRect(x + 6, y, w - 14 + 1, h); g.fillRect(x, y + 6, w, h - 12 + 1); g.setColor(color); g.fillRect(x + 6, y + 1, w - 12, h - 2); g.fillRect(x + 1, y + 6, w - 2, h - 12); g.drawRegion(PopUp.goc, 0, 0, 7, 6, 0, x, y, 0); g.drawRegion(PopUp.goc, 0, 0, 7, 6, 2, x + w - 7, y, 0); g.drawRegion(PopUp.goc, 0, 0, 7, 6, 1, x, y + h - 6, 0); g.drawRegion(PopUp.goc, 0, 0, 7, 6, 3, x + w - 7, y + h - 6, 0); } else { Image arg = (color != 1) ? PopUp.imgPopUp : PopUp.imgPopUp2; g.drawRegion(arg, 0, 0, 10, 10, 0, x, y, 0); g.drawRegion(arg, 0, 20, 10, 10, 0, x + w - 10, y, 0); g.drawRegion(arg, 0, 50, 10, 10, 0, x, y + h - 10, 0); g.drawRegion(arg, 0, 70, 10, 10, 0, x + w - 10, y + h - 10, 0); int num = ((w - 20) % 10 != 0) ? ((w - 20) / 10 + 1) : ((w - 20) / 10); int num2 = ((h - 20) % 10 != 0) ? ((h - 20) / 10 + 1) : ((h - 20) / 10); for (int i = 0; i < num; i++) { g.drawRegion(arg, 0, 10, 10, 10, 0, x + 10 + i * 10, y, 0); } for (int j = 0; j < num2; j++) { g.drawRegion(arg, 0, 30, 10, 10, 0, x, y + 10 + j * 10, 0); } for (int k = 0; k < num; k++) { g.drawRegion(arg, 0, 60, 10, 10, 0, x + 10 + k * 10, y + h - 10, 0); } for (int l = 0; l < num2; l++) { g.drawRegion(arg, 0, 40, 10, 10, 0, x + w - 10, y + 10 + l * 10, 0); } g.setColor((color != 1) ? 16770503 : 12052656); g.fillRect(x + 10, y + 10, w - 20, h - 20); } }
// Token: 0x0600037F RID: 895 RVA: 0x0000515A File Offset: 0x0000335A public void paintCellContaint(mGraphics g, int x, int y, int w, int h, bool iss) { if (iss) { g.setColor(13132288); g.fillRect(x + 2, y + 2, w - 3, w - 3); } g.setColor(3502080); g.drawRect(x, y, w, w); }
// 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: 0x0600026E RID: 622 RVA: 0x000133A4 File Offset: 0x000115A4 public static void paint(mGraphics g) { FireWorkEff.preDraw(); g.setColor(0); g.fillRect(0, 0, FireWorkEff.w, FireWorkEff.h); g.setColor(16711680); for (int i = 0; i < FireWorkEff.mg.size(); i++) { ((FireWorkMn)FireWorkEff.mg.elementAt(i)).paint(g); } if (!FireWorkEff.st) { FireWorkEff.keyPressed(-(global::Math.abs(FireWorkEff.r.nextInt() % 3) + 5)); } }
// Token: 0x060008D9 RID: 2265 RVA: 0x0007FE4C File Offset: 0x0007E04C public override void paint(mGraphics g) { g.setColor(((int)this.type != 0) ? 3056895 : 0); g.fillRect(0, 0, GameCanvas.w, GameCanvas.h); for (int i = 0; i < this.n; i++) { g.setColor(((int)this.type != 0) ? 11140863 : 14802654); g.fillRect(this.posX[i], this.posY[i], 10, 2); } if ((int)this.type == 0) { g.drawRegion(TransportScr.ship, 0, 0, 72, 95, 7, this.cmx + this.currSpeed, GameCanvas.h / 2, 3); } if ((int)this.type == 1) { g.drawRegion(TransportScr.taungam, 0, 0, 144, 79, 2, this.cmx + this.currSpeed, GameCanvas.h / 2, 3); } for (int j = 0; j < this.n; j++) { g.setColor(((int)this.type != 0) ? 7536127 : 14935011); g.fillRect(this.posX2[j], this.posY2[j], 18, 3); } base.paint(g); }
// Token: 0x06000369 RID: 873 RVA: 0x0001B1C4 File Offset: 0x000193C4 public void paintDefaultBg(mGraphics g) { g.setColor(8916494); g.fillRect(0, 0, GameCanvas.w, GameCanvas.h); g.drawImage(Paint.imgBg, GameCanvas.w / 2, GameCanvas.h / 2 - Paint.hTab / 2 - 1, 3); g.drawImage(Paint.imgLT, 0, 0, 0); g.drawImage(Paint.imgRT, GameCanvas.w, 0, mGraphics.TOP | mGraphics.RIGHT); g.drawImage(Paint.imgLB, 0, GameCanvas.h - Paint.hTab - 2, mGraphics.BOTTOM | mGraphics.LEFT); g.drawImage(Paint.imgRB, GameCanvas.w, GameCanvas.h - Paint.hTab - 2, mGraphics.BOTTOM | mGraphics.RIGHT); g.setColor(16774843); g.drawRect(0, 0, GameCanvas.w, 0); g.drawRect(0, GameCanvas.h - Paint.hTab - 2, GameCanvas.w, 0); g.drawRect(0, 0, 0, GameCanvas.h - Paint.hTab); g.drawRect(GameCanvas.w - 1, 0, 0, GameCanvas.h - Paint.hTab); }
// Token: 0x0600038A RID: 906 RVA: 0x0001B704 File Offset: 0x00019904 public void paintPopUp(int x, int y, int w, int h, mGraphics g) { g.setColor(9340251); g.drawRect(x + 18, y, (w - 36) / 2 - 32, h); g.drawRect(x + 18 + (w - 36) / 2 + 32, y, (w - 36) / 2 - 22, h); g.drawRect(x, y + 8, w, h - 17); g.setColor(Paint.COLORBACKGROUND); g.fillRect(x + 18, y + 3, (w - 36) / 2 - 32, h - 4); g.fillRect(x + 18 + (w - 36) / 2 + 31, y + 3, (w - 38) / 2 - 22, h - 4); g.fillRect(x + 1, y + 6, w - 1, h - 11); g.setColor(14667919); g.fillRect(x + 18, y + 1, (w - 36) / 2 - 32, 2); g.fillRect(x + 18 + (w - 36) / 2 + 32, y + 1, (w - 36) / 2 - 12, 2); g.fillRect(x + 18, y + h - 2, (w - 36) / 2 - 31, 2); g.fillRect(x + 18 + (w - 36) / 2 + 32, y + h - 2, (w - 36) / 2 - 31, 2); g.fillRect(x + 1, y + 11, 2, h - 18); g.fillRect(x + w - 2, y + 11, 2, h - 18); g.drawImage(Paint.goc[0], x - 3, y - 2, mGraphics.TOP | mGraphics.LEFT); g.drawImage(Paint.goc[2], x + w + 3, y - 2, StaticObj.TOP_RIGHT); g.drawImage(Paint.goc[1], x - 3, y + h + 3, StaticObj.BOTTOM_LEFT); g.drawImage(Paint.goc[3], x + w + 4, y + h + 2, StaticObj.BOTTOM_RIGHT); g.drawImage(Paint.goc[4], x + w / 2, y, StaticObj.TOP_CENTER); g.drawImage(Paint.goc[5], x + w / 2, y + h + 1, StaticObj.BOTTOM_HCENTER); }
// Token: 0x060003C4 RID: 964 RVA: 0x0001DE04 File Offset: 0x0001C004 public void paint(int x, int y, mGraphics g) { SmallImage.drawSmallImage(g, this.template.iconId, x, y, 0, StaticObj.VCENTER_HCENTER); long num = mSystem.currentTimeMillis(); long num2 = num - this.lastTimeUseThisSkill; if (num2 < (long)this.coolDown) { g.setColor(2721889, 0.7f); if (this.paintCanNotUseSkill && GameCanvas.gameTick % 6 > 2) { g.setColor(876862); } int num3 = (int)(num2 * 20L / (long)this.coolDown); g.fillRect(x - 10, y - 10 + num3, 20, 20 - num3); } else { this.paintCanNotUseSkill = false; } }
// 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: 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); } }
// Token: 0x0600010D RID: 269 RVA: 0x00003FAD File Offset: 0x000021AD public static void paintPopUp2(mGraphics g, int x, int y, int w, int h) { g.fillRect(x, y, w + 10, h, 0, 90); }
// Token: 0x0600038F RID: 911 RVA: 0x000052C9 File Offset: 0x000034C9 public void paintFrameInsideSelected(int x, int y, int w, int h, mGraphics g) { g.setColor(Paint.COLORLIGHT); g.fillRect(x, y, w, h); }
// Token: 0x0600038E RID: 910 RVA: 0x000052AF File Offset: 0x000034AF public void paintFrameInside(int x, int y, int w, int h, mGraphics g) { g.setColor(Paint.COLORBACKGROUND); g.fillRect(x, y, w, h); }
// Token: 0x06000855 RID: 2133 RVA: 0x0007AA4C File Offset: 0x00078C4C public override void paint(mGraphics g) { GameCanvas.debug("PLG1", 1); GameCanvas.paintBGGameScr(g); GameCanvas.debug("PLG2", 2); int num = this.tfUser.y - 50; if (GameCanvas.h <= 220) { num += 5; } if (ChatPopup.currChatPopup != null) { return; } if (ChatPopup.serverChatPopUp != null) { return; } if (GameCanvas.currentDialog == null) { this.xLog = 5; int num2 = 233; if (GameCanvas.w < 260) { this.xLog = (GameCanvas.w - 240) / 2; } this.yLog = (GameCanvas.h - num2) / 2; int num3 = (GameCanvas.w < 200) ? 160 : 180; PopUp.paintPopUp(g, this.xLog, this.yLog, 240, num2, -1, true); if (GameCanvas.h > 160 && RegisterScreen.imgTitle != null) { g.drawImage(RegisterScreen.imgTitle, GameCanvas.hw, num, 3); } GameCanvas.debug("PLG4", 1); int num4 = 4; int num5 = num4 * 32 + 23 + 33; if (num5 >= GameCanvas.w) { num4--; num5 = num4 * 32 + 23 + 33; } this.tfSodt.x = this.xLog + 10; this.tfSodt.y = this.yLog + 15; this.tfUser.x = this.tfSodt.x; this.tfUser.y = this.tfSodt.y + 30; this.tfNgay.x = this.xLog + 10; this.tfNgay.y = this.tfUser.y + 30; this.tfThang.x = this.tfNgay.x + 75; this.tfThang.y = this.tfNgay.y; this.tfNam.x = this.tfThang.x + 75; this.tfNam.y = this.tfThang.y; this.tfDiachi.x = this.tfUser.x; this.tfDiachi.y = this.tfNgay.y + 30; this.tfCMND.x = this.tfUser.x; this.tfCMND.y = this.tfDiachi.y + 30; this.tfNgayCap.x = this.tfUser.x; this.tfNgayCap.y = this.tfCMND.y + 30; this.tfNoiCap.x = this.tfUser.x; this.tfNoiCap.y = this.tfNgayCap.y + 30; this.tfUser.paint(g); this.tfNgay.paint(g); this.tfThang.paint(g); this.tfNam.paint(g); this.tfDiachi.paint(g); this.tfCMND.paint(g); this.tfNgayCap.paint(g); this.tfNoiCap.paint(g); this.tfSodt.paint(g); if (GameCanvas.w < 176) { mFont.tahoma_7b_green2.drawString(g, mResources.acc + ":", this.tfUser.x - 35, this.tfUser.y + 7, 0); mFont.tahoma_7b_green2.drawString(g, mResources.pwd + ":", this.tfNgay.x - 35, this.tfNgay.y + 7, 0); mFont.tahoma_7b_green2.drawString(g, mResources.server + ": " + RegisterScreen.serverName, GameCanvas.w / 2, this.tfNgay.y + 32, 2); if (this.isRes) { } } } string version = GameMidlet.VERSION; g.setColor(GameCanvas.skyColor); g.fillRect(GameCanvas.w - 40, 4, 36, 11); mFont.tahoma_7_grey.drawString(g, version, GameCanvas.w - 22, 4, mFont.CENTER); GameCanvas.resetTrans(g); if (GameCanvas.currentDialog == null) { if (GameCanvas.w > 250) { mFont.tahoma_7b_white.drawString(g, "Dưới 18 tuổi", 260, 10, 0, mFont.tahoma_7b_dark); mFont.tahoma_7b_white.drawString(g, "chỉ có thể chơi", 260, 25, 0, mFont.tahoma_7b_dark); mFont.tahoma_7b_white.drawString(g, "180p 1 ngày", 260, 40, 0, mFont.tahoma_7b_dark); } else { mFont.tahoma_7b_white.drawString(g, "Dưới 18 tuổi chỉ có thể chơi", GameCanvas.w / 2, 5, 2, mFont.tahoma_7b_dark); mFont.tahoma_7b_white.drawString(g, "180p 1 ngày", GameCanvas.w / 2, 15, 2, mFont.tahoma_7b_dark); } } base.paint(g); }
// Token: 0x06000279 RID: 633 RVA: 0x000049AC File Offset: 0x00002BAC public void Drawline(mGraphics g, int x, int y, int color) { g.setColor(color); g.fillRect(x, y, 1, 2); }
// Token: 0x0600036A RID: 874 RVA: 0x0000504B File Offset: 0x0000324B public void paintfillDefaultBg(mGraphics g) { g.setColor(205314); g.fillRect(0, 0, GameCanvas.w, GameCanvas.h); }
// Token: 0x06000382 RID: 898 RVA: 0x000051B9 File Offset: 0x000033B9 public void paintLogo(mGraphics g) { g.setColor(8916494); g.fillRect(0, 0, GameCanvas.w, GameCanvas.h); g.drawImage(Paint.imgLogo, GameCanvas.h >> 1, GameCanvas.w >> 1, 3); }
// Token: 0x06000380 RID: 896 RVA: 0x00005199 File Offset: 0x00003399 public void paintScroll(mGraphics g, int x, int y, int h) { g.setColor(3847752); g.fillRect(x, y, 4, h); }
// Token: 0x06000372 RID: 882 RVA: 0x000050CE File Offset: 0x000032CE public void paintSelect(mGraphics g, int x, int y, int w, int h) { g.setColor(16774843); g.fillRect(x, y, w, h); }