// Token: 0x060003AD RID: 941 RVA: 0x0001CD8C File Offset: 0x0001AF8C public void paint(mGraphics g) { PopUp.paintPopUp(g, this.X, this.Y, this.W, this.H + (GameCanvas.isTouch ? 0 : 10), 16777215, false); if (this.info != null) { TextInfo.paint(g, this.info[0], this.X + 5, this.Y + this.H / 2 - ((!GameCanvas.isTouch) ? 6 : 4), this.W - 10, this.H, mFont.tahoma_7); if (GameCanvas.isTouch) { this.cmdYes.paint(g); mFont.tahoma_7_yellow.drawString(g, this.dem + string.Empty, this.cmdYes.x + this.cmdYes.w / 2, this.cmdYes.y + this.cmdYes.h + 5, 2, mFont.tahoma_7_grey); } else if (TField.isQwerty) { mFont.tahoma_7b_blue.drawString(g, mResources.do_accept_qwerty + this.dem + ")", this.X + this.W / 2, this.Y + this.H - 6, 2); } else { mFont.tahoma_7b_blue.drawString(g, mResources.do_accept + this.dem + ")", this.X + this.W / 2, this.Y + this.H - 6, 2); } } }
// 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); } }