예제 #1
0
    // Token: 0x060004F7 RID: 1271 RVA: 0x0003B2E0 File Offset: 0x000394E0
    private void paintShadow(mGraphics g)
    {
        int num = (int)TileMap.size;

        g.drawImage(BachTuoc.shadowBig, this.xSd, this.yFirst, 3);
        g.setClip(GameScr.cmx, GameScr.cmy - GameCanvas.transY, GameScr.gW, GameScr.gH + 2 * GameCanvas.transY);
    }
예제 #2
0
    // Token: 0x0600018D RID: 397 RVA: 0x0000ECB8 File Offset: 0x0000CEB8
    public void _drawString(mGraphics g, string st, int x0, int y0, int align)
    {
        y0 += mFont.yAddFont;
        GUIStyle guistyle = new GUIStyle(GUI.skin.label);

        guistyle.font = this.myFont;
        float num  = 0f;
        float num2 = 0f;

        switch (align)
        {
        case 0:
            num  = (float)x0;
            num2 = (float)y0;
            guistyle.alignment = TextAnchor.UpperLeft;
            break;

        case 1:
            num  = (float)(x0 - GameCanvas.w);
            num2 = (float)y0;
            guistyle.alignment = TextAnchor.UpperRight;
            break;

        case 2:
        case 3:
            num  = (float)(x0 - GameCanvas.w / 2);
            num2 = (float)y0;
            guistyle.alignment = TextAnchor.UpperCenter;
            break;
        }
        guistyle.normal.textColor = this.color1;
        g.drawString(st, (int)num, (int)num2, guistyle);
    }
예제 #3
0
 // 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);
 }
예제 #4
0
    // Token: 0x0600076E RID: 1902 RVA: 0x00063458 File Offset: 0x00061658
    public override void paint(mGraphics g)
    {
        g.setClip(0, 0, GameCanvas.w, GameCanvas.h);
        if (LoginScr.isContinueToLogin)
        {
            return;
        }
        int num = GameCanvas.h - this.h - 38;
        int w   = GameCanvas.w - this.padLeft * 2;

        GameCanvas.paintz.paintPopUp(this.padLeft, num, w, this.h, g);
        int num2 = num + (this.h - this.info.Length * mFont.tahoma_8b.getHeight()) / 2 - 2;

        if (this.isWait)
        {
            num2 += 8;
            GameCanvas.paintShukiren(GameCanvas.hw, num2 - 12, g);
        }
        int i    = 0;
        int num3 = num2;

        while (i < this.info.Length)
        {
            mFont.tahoma_7b_dark.drawString(g, this.info[i], GameCanvas.hw, num3, 2);
            i++;
            num3 += mFont.tahoma_8b.getHeight();
        }
        base.paint(g);
    }
예제 #5
0
 // 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);
 }
예제 #6
0
    // 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);
            }
        }
    }
예제 #7
0
    // Token: 0x060006E9 RID: 1769 RVA: 0x0005C54C File Offset: 0x0005A74C
    public static void paint(mGraphics g)
    {
        if (!InfoDlg.isShow)
        {
            return;
        }
        if (InfoDlg.isLock && InfoDlg.delay > 4990)
        {
            return;
        }
        if (GameScr.isPaintAlert)
        {
            return;
        }
        int num = 10;

        GameCanvas.paintz.paintPopUp(GameCanvas.hw - 75, num, 150, 55, g);
        if (InfoDlg.isLock)
        {
            GameCanvas.paintShukiren(GameCanvas.hw - mFont.tahoma_8b.getWidth(InfoDlg.title) / 2 - 10, num + 28, g);
            mFont.tahoma_8b.drawString(g, InfoDlg.title, GameCanvas.hw + 5, num + 21, 2);
        }
        else if (InfoDlg.subtitke != null)
        {
            mFont.tahoma_8b.drawString(g, InfoDlg.title, GameCanvas.hw, num + 13, 2);
            mFont.tahoma_7_green2.drawString(g, InfoDlg.subtitke, GameCanvas.hw, num + 30, 2);
        }
        else
        {
            mFont.tahoma_8b.drawString(g, InfoDlg.title, GameCanvas.hw, num + 21, 2);
        }
    }
예제 #8
0
 // 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);
         }
     }
 }
예제 #9
0
 // 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);
 }
예제 #10
0
 // 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);
 }
예제 #11
0
 // 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);
 }
예제 #12
0
    // Token: 0x06000396 RID: 918 RVA: 0x0001C030 File Offset: 0x0001A230
    public void paint(mGraphics g)
    {
        if (!this.isActive)
        {
            return;
        }
        int num       = MonsterDart.findDirIndexFromAngle(360 - this.angle);
        int num2      = (int)MonsterDart.FRAME[num];
        int transform = MonsterDart.TRANSFORM[num];

        for (int i = this.darts.size() / 2; i < this.darts.size(); i++)
        {
            SmallDart smallDart = (SmallDart)this.darts.elementAt(i);
            SmallImage.drawSmallImage(g, (int)this.info.tailBorder[smallDart.index], smallDart.x, smallDart.y, 0, 3);
        }
        int num3 = GameCanvas.gameTick % this.info.headBorder.Length;

        SmallImage.drawSmallImage(g, (int)this.info.headBorder[num3][num2], this.x, this.y, transform, 3);
        for (int j = 0; j < this.darts.size(); j++)
        {
            SmallDart smallDart2 = (SmallDart)this.darts.elementAt(j);
            SmallImage.drawSmallImage(g, (int)this.info.tail[smallDart2.index], smallDart2.x, smallDart2.y, 0, 3);
        }
        SmallImage.drawSmallImage(g, (int)this.info.head[num3][num2], this.x, this.y, transform, 3);
        for (int k = 0; k < this.darts.size(); k++)
        {
            SmallDart smallDart3 = (SmallDart)this.darts.elementAt(k);
            if (Res.abs(MonsterDart.r.nextInt(100)) < (int)this.info.xdPercent)
            {
                SmallImage.drawSmallImage(g, (int)((GameCanvas.gameTick % 2 != 0) ? this.info.xd2[smallDart3.index] : this.info.xd1[smallDart3.index]), smallDart3.x, smallDart3.y, 0, 3);
            }
        }
        g.setColor(16711680);
    }
예제 #13
0
 // Token: 0x06000261 RID: 609 RVA: 0x00013128 File Offset: 0x00011328
 public void paintFrame(mGraphics g, int f, int x, int y, int trans, int layer)
 {
     if (this.frame != null && this.frame.Length != 0)
     {
         Frame frame = this.frame[f];
         for (int i = 0; i < frame.dx.Length; i++)
         {
             ImageInfo imageInfo = this.getImageInfo(frame.idImg[i]);
             try
             {
                 if (trans == 0)
                 {
                     g.drawRegion(this.img, imageInfo.x0, imageInfo.y0, imageInfo.w, imageInfo.h, 0, x + (int)frame.dx[i], y + (int)frame.dy[i] - ((layer >= 4 || layer <= 0) ? 0 : GameCanvas.transY), 0);
                 }
                 if (trans == 1)
                 {
                     g.drawRegion(this.img, imageInfo.x0, imageInfo.y0, imageInfo.w, imageInfo.h, 2, x - (int)frame.dx[i], y + (int)frame.dy[i] - ((layer >= 4 || layer <= 0) ? 0 : GameCanvas.transY), StaticObj.TOP_RIGHT);
                 }
                 if (trans == 2)
                 {
                     g.drawRegion(this.img, imageInfo.x0, imageInfo.y0, imageInfo.w, imageInfo.h, 7, x - (int)frame.dx[i], y + (int)frame.dy[i] - ((layer >= 4 || layer <= 0) ? 0 : GameCanvas.transY), StaticObj.VCENTER_HCENTER);
                 }
             }
             catch (Exception ex)
             {
             }
         }
     }
 }
예제 #14
0
 // Token: 0x060003A9 RID: 937 RVA: 0x0001CC08 File Offset: 0x0001AE08
 public static void paintAll(mGraphics g)
 {
     for (int i = 0; i < PopUp.vPopups.size(); i++)
     {
         ((PopUp)PopUp.vPopups.elementAt(i)).paint(g);
     }
 }
예제 #15
0
 // Token: 0x060003E2 RID: 994 RVA: 0x0001E49C File Offset: 0x0001C69C
 public static void drawSmallImage(mGraphics g, int id, int f, int x, int y, int w, int h, int transform, int anchor)
 {
     if (SmallImage.imgbig == null)
     {
         Small small = SmallImage.imgNew[id];
         if (small == null)
         {
             SmallImage.createImage(id);
         }
         else
         {
             g.drawRegion(small.img, 0, f * w, w, h, transform, x, y, anchor);
         }
         return;
     }
     if (SmallImage.smallImg != null)
     {
         if (id >= SmallImage.smallImg.Length || SmallImage.smallImg[id] == null || SmallImage.smallImg[id][1] >= 256 || SmallImage.smallImg[id][3] >= 256 || SmallImage.smallImg[id][2] >= 256 || SmallImage.smallImg[id][4] >= 256)
         {
             Small small2 = SmallImage.imgNew[id];
             if (small2 == null)
             {
                 SmallImage.createImage(id);
             }
             else
             {
                 small2.paint(g, transform, f, x, y, w, h, anchor);
             }
         }
         else if (SmallImage.smallImg[id][0] != 4 && SmallImage.imgbig[SmallImage.smallImg[id][0]] != null)
         {
             g.drawRegion(SmallImage.imgbig[SmallImage.smallImg[id][0]], 0, f * w, w, h, transform, x, y, anchor);
         }
         else
         {
             Small small3 = SmallImage.imgNew[id];
             if (small3 == null)
             {
                 SmallImage.createImage(id);
             }
             else
             {
                 small3.paint(g, transform, f, x, y, w, h, anchor);
             }
         }
     }
     else if (GameCanvas.currentScreen != GameScr.gI())
     {
         Small small4 = SmallImage.imgNew[id];
         if (small4 == null)
         {
             SmallImage.createImage(id);
         }
         else
         {
             small4.paint(g, transform, f, x, y, w, h, anchor);
         }
     }
 }
예제 #16
0
 // Token: 0x0600042C RID: 1068 RVA: 0x00023718 File Offset: 0x00021918
 public static void paint(mGraphics g, string str, int x, int y, int w, int h, mFont f)
 {
     if (TextInfo.wStr != f.getWidth(str) || !TextInfo.laststring.Equals(str))
     {
         TextInfo.laststring = str;
         TextInfo.dx         = 0;
         TextInfo.wStr       = f.getWidth(str);
         TextInfo.isBack     = false;
         TextInfo.tx         = 0;
     }
     g.setClip(x, y, w, h);
     if (TextInfo.wStr > w)
     {
         f.drawString(g, str, x - TextInfo.dx, y, 0);
     }
     else
     {
         f.drawString(g, str, x + w / 2, y, 2);
     }
     GameCanvas.resetTrans(g);
     if (TextInfo.wStr > w)
     {
         if (!TextInfo.isBack)
         {
             TextInfo.tx++;
             if (TextInfo.tx > 50)
             {
                 TextInfo.dx++;
                 if (TextInfo.dx >= TextInfo.wStr)
                 {
                     TextInfo.tx     = 0;
                     TextInfo.dx     = -w + 30;
                     TextInfo.isBack = true;
                 }
             }
         }
         else
         {
             if (TextInfo.dx < 0)
             {
                 int num = w + TextInfo.dx >> 1;
                 TextInfo.dx += num;
             }
             if (TextInfo.dx > 0)
             {
                 TextInfo.dx = 0;
             }
             if (TextInfo.dx == 0)
             {
                 TextInfo.tx++;
                 if (TextInfo.tx == 50)
                 {
                     TextInfo.tx     = 0;
                     TextInfo.isBack = false;
                 }
             }
         }
     }
 }
예제 #17
0
 // Token: 0x06000378 RID: 888 RVA: 0x000050F7 File Offset: 0x000032F7
 public void paintCheck(mGraphics g, int x, int y, int index)
 {
     g.drawImage(Paint.imgTick[1], x, y, 3);
     if (index == 1)
     {
         g.drawImage(Paint.imgTick[0], x + 1, y - 3, 3);
     }
 }
예제 #18
0
    // Token: 0x0600029F RID: 671 RVA: 0x00014700 File Offset: 0x00012900
    public void paint(mGraphics g)
    {
        int dx   = this.axTo - this.ax;
        int num  = this.ayTo - this.ay;
        int num2 = Arrow.findDirIndexFromAngle(Res.angle(dx, -num));

        SmallImage.drawSmallImage(g, this.arrp.imgId[(int)Arrow.FRAME[num2]], this.ax, this.ay, Arrow.TRANSFORM[num2], mGraphics.VCENTER | mGraphics.HCENTER);
    }
예제 #19
0
 // Token: 0x060003D3 RID: 979 RVA: 0x0001DEFC File Offset: 0x0001C0FC
 public void paint(mGraphics g, int transform, int x, int y, int anchor)
 {
     g.drawRegion(this.img, 0, 0, mGraphics.getImageWidth(this.img), mGraphics.getImageHeight(this.img), transform, x, y, anchor);
     if (GameCanvas.gameTick % 1000 == 0)
     {
         this.timePaint++;
         this.timeUpdate = this.timePaint;
     }
 }
예제 #20
0
 // 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);
 }
예제 #21
0
 // Token: 0x0600093E RID: 2366 RVA: 0x00084144 File Offset: 0x00082344
 public void paint(mGraphics g)
 {
     if (GameScr.isAnalog == 0)
     {
         return;
     }
     g.drawImage(GameScr.imgAnalog1, this.xC, this.yC, mGraphics.HCENTER | mGraphics.VCENTER);
     g.drawImage(GameScr.imgAnalog2, this.xM, this.yM, mGraphics.HCENTER | mGraphics.VCENTER);
 }
예제 #22
0
    // Token: 0x060008C7 RID: 2247 RVA: 0x0007F904 File Offset: 0x0007DB04
    public static void paintOutTilemap(mGraphics g)
    {
        if (GameCanvas.lowGraphic)
        {
            return;
        }
        int num = 0;

        for (int i = GameScr.gssx; i < GameScr.gssxe; i++)
        {
            for (int j = GameScr.gssy; j < GameScr.gssye; j++)
            {
                num++;
                if ((TileMap.tileTypeAt(i, j) & 64) == 64)
                {
                    Image arg;
                    if (TileMap.tileID == 5)
                    {
                        arg = TileMap.imgWaterlowN;
                    }
                    else if (TileMap.tileID == 8)
                    {
                        arg = TileMap.imgWaterlowN2;
                    }
                    else
                    {
                        arg = TileMap.imgWaterflow;
                    }
                    if (!TileMap.isWaterEff())
                    {
                        g.drawRegion(arg, 0, 0, 24, 24, 0, i * (int)TileMap.size, j * (int)TileMap.size - 1, 0);
                        g.drawRegion(arg, 0, 0, 24, 24, 0, i * (int)TileMap.size, j * (int)TileMap.size - 3, 0);
                    }
                    g.drawRegion(arg, 0, (GameCanvas.gameTick % 8 >> 2) * 24, 24, 24, 0, i * (int)TileMap.size, j * (int)TileMap.size - 12, 0);
                    if (TileMap.yWater == 0 && TileMap.isWaterEff())
                    {
                        TileMap.yWater = j * (int)TileMap.size - 12;
                        int color = 16777215;
                        if (GameCanvas.typeBg == 2)
                        {
                            color = 10871287;
                        }
                        else if (GameCanvas.typeBg == 4)
                        {
                            color = 8111470;
                        }
                        else if (GameCanvas.typeBg == 7)
                        {
                            color = 5693125;
                        }
                        BackgroudEffect.addWater(color, TileMap.yWater + 15);
                    }
                }
            }
        }
        BackgroudEffect.paintWaterAll(g);
    }
예제 #23
0
 // Token: 0x0600011E RID: 286 RVA: 0x0000B864 File Offset: 0x00009A64
 public static void paintFlyText(mGraphics g)
 {
     for (int i = 0; i < 5; i++)
     {
         if (GameScr.flyTextState[i] != -1)
         {
             if (GameCanvas.isPaint(GameScr.flyTextX[i], GameScr.flyTextY[i]))
             {
                 if (GameScr.flyTextColor[i] == mFont.RED)
                 {
                     mFont.bigNumber_red.drawStringBorder(g, GameScr.flyTextString[i], GameScr.flyTextX[i], GameScr.flyTextY[i], mFont.CENTER);
                 }
                 else if (GameScr.flyTextColor[i] == mFont.YELLOW)
                 {
                     mFont.bigNumber_yellow.drawStringBorder(g, GameScr.flyTextString[i], GameScr.flyTextX[i], GameScr.flyTextY[i], mFont.CENTER);
                 }
                 else if (GameScr.flyTextColor[i] == mFont.GREEN)
                 {
                     mFont.bigNumber_green.drawStringBorder(g, GameScr.flyTextString[i], GameScr.flyTextX[i], GameScr.flyTextY[i], mFont.CENTER);
                 }
                 else if (GameScr.flyTextColor[i] == mFont.FATAL)
                 {
                     mFont.bigNumber_yellow.drawStringBorder(g, GameScr.flyTextString[i], GameScr.flyTextX[i], GameScr.flyTextY[i], mFont.CENTER, mFont.bigNumber_black);
                 }
                 else if (GameScr.flyTextColor[i] == mFont.FATAL_ME)
                 {
                     mFont.bigNumber_green.drawStringBorder(g, GameScr.flyTextString[i], GameScr.flyTextX[i], GameScr.flyTextY[i], mFont.CENTER, mFont.bigNumber_black);
                 }
                 else if (GameScr.flyTextColor[i] == mFont.MISS)
                 {
                     mFont.bigNumber_While.drawStringBorder(g, GameScr.flyTextString[i], GameScr.flyTextX[i], GameScr.flyTextY[i], mFont.CENTER, mFont.tahoma_7_grey);
                 }
                 else if (GameScr.flyTextColor[i] == mFont.ORANGE)
                 {
                     mFont.bigNumber_orange.drawStringBorder(g, GameScr.flyTextString[i], GameScr.flyTextX[i], GameScr.flyTextY[i], mFont.CENTER);
                 }
                 else if (GameScr.flyTextColor[i] == mFont.ADDMONEY)
                 {
                     mFont.bigNumber_yellow.drawStringBorder(g, GameScr.flyTextString[i], GameScr.flyTextX[i], GameScr.flyTextY[i], mFont.CENTER, mFont.bigNumber_black);
                 }
                 else if (GameScr.flyTextColor[i] == mFont.MISS_ME)
                 {
                     mFont.bigNumber_While.drawStringBorder(g, GameScr.flyTextString[i], GameScr.flyTextX[i], GameScr.flyTextY[i], mFont.CENTER, mFont.bigNumber_black);
                 }
                 else if (GameScr.flyTextColor[i] == mFont.HP)
                 {
                     mFont.bigNumber_red.drawStringBorder(g, GameScr.flyTextString[i], GameScr.flyTextX[i], GameScr.flyTextY[i], mFont.CENTER, mFont.bigNumber_black);
                 }
                 else if (GameScr.flyTextColor[i] == mFont.MP)
                 {
                     mFont.bigNumber_blue.drawStringBorder(g, GameScr.flyTextString[i], GameScr.flyTextX[i], GameScr.flyTextY[i], mFont.CENTER, mFont.bigNumber_black);
                 }
             }
         }
     }
 }
예제 #24
0
    // Token: 0x060001C9 RID: 457 RVA: 0x00010E54 File Offset: 0x0000F054
    public void drawLine(mGraphics g, int x, int y, int xTo, int yTo, int nLine, int color)
    {
        MyVector myVector = new MyVector();

        for (int i = 0; i < nLine; i++)
        {
            myVector.addElement(new mLine(x, y, xTo + i, yTo + i, color));
        }
        g.drawlineGL(myVector);
    }
예제 #25
0
 // Token: 0x06000244 RID: 580 RVA: 0x0001268C File Offset: 0x0001088C
 public static void paintBackGroundUnderLayer(mGraphics g, int x, int y, int layer)
 {
     for (int i = 0; i < EffecMn.vEff.size(); i++)
     {
         if (((Effect)EffecMn.vEff.elementAt(i)).layer == -layer)
         {
             ((Effect)EffecMn.vEff.elementAt(i)).paintUnderBackground(g, x, y);
         }
     }
 }
예제 #26
0
 // Token: 0x06000248 RID: 584 RVA: 0x000127FC File Offset: 0x000109FC
 public static void paintLayer4(mGraphics g)
 {
     for (int i = 0; i < EffecMn.vEff.size(); i++)
     {
         if (((Effect)EffecMn.vEff.elementAt(i)).layer == 4)
         {
             ((Effect)EffecMn.vEff.elementAt(i)).paint(g);
         }
     }
 }
예제 #27
0
 // 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);
 }
예제 #28
0
 // Token: 0x06000355 RID: 853 RVA: 0x00019B1C File Offset: 0x00017D1C
 public static void paint(mGraphics g, int x, int y)
 {
     if (!MobCapcha.isAttack)
     {
         if (GameCanvas.gameTick % 3 == 0)
         {
             if (global::Char.myCharz().cdir == 1)
             {
                 MobCapcha.cmtoX = x - 20 - GameScr.cmx;
             }
             if (global::Char.myCharz().cdir == -1)
             {
                 MobCapcha.cmtoX = x + 20 - GameScr.cmx;
             }
         }
         MobCapcha.cmtoY = global::Char.myCharz().cy - 40 - GameScr.cmy;
     }
     else
     {
         MobCapcha.delay++;
         if (MobCapcha.delay == 5)
         {
             MobCapcha.isAttack = false;
             MobCapcha.delay    = 0;
         }
         MobCapcha.cmtoX = x - GameScr.cmx;
         MobCapcha.cmtoY = y - GameScr.cmy;
     }
     if (MobCapcha.cmx > x - GameScr.cmx)
     {
         MobCapcha.dir = -1;
     }
     else
     {
         MobCapcha.dir = 1;
     }
     g.drawImage(GameScr.imgCapcha, MobCapcha.cmx, MobCapcha.cmy - 40, 3);
     PopUp.paintPopUp(g, MobCapcha.cmx - 25, MobCapcha.cmy - 70, 50, 20, 16777215, false);
     mFont.tahoma_7b_dark.drawString(g, GameScr.gI().keyInput, MobCapcha.cmx, MobCapcha.cmy - 65, 2);
     if (MobCapcha.isCreateMob)
     {
         MobCapcha.isCreateMob = false;
         EffecMn.addEff(new Effect(18, MobCapcha.cmx + GameScr.cmx, MobCapcha.cmy + GameScr.cmy, 2, 10, -1));
     }
     if (MobCapcha.explode)
     {
         MobCapcha.explode = false;
         EffecMn.addEff(new Effect(18, MobCapcha.cmx + GameScr.cmx, MobCapcha.cmy + GameScr.cmy, 2, 10, -1));
         GameScr.gI().mobCapcha = null;
         MobCapcha.cmtoX = -GameScr.cmx;
         MobCapcha.cmtoY = -GameScr.cmy;
     }
     g.drawRegion(MobCapcha.imgMob, 0, MobCapcha.f * 40, 40, 40, (MobCapcha.dir != 1) ? 2 : 0, MobCapcha.cmx, MobCapcha.cmy + 3 + ((GameCanvas.gameTick % 10 <= 5) ? 0 : 1), 3);
     MobCapcha.moveCamera();
 }
예제 #29
0
 // Token: 0x060008C4 RID: 2244 RVA: 0x0007F2FC File Offset: 0x0007D4FC
 public static void paintTilemapLOW(mGraphics g)
 {
     for (int i = GameScr.gssx; i < GameScr.gssxe; i++)
     {
         for (int j = GameScr.gssy; j < GameScr.gssye; j++)
         {
             int num = TileMap.maps[j * TileMap.tmw + i] - 1;
             if (num != -1)
             {
                 TileMap.paintTile(g, num, i, j);
             }
             if ((TileMap.tileTypeAt(i, j) & 32) == 32)
             {
                 g.drawRegion(TileMap.imgWaterfall, 0, 24 * (GameCanvas.gameTick % 4), 24, 24, 0, i * (int)TileMap.size, j * (int)TileMap.size, 0);
             }
             else if ((TileMap.tileTypeAt(i, j) & 64) == 64)
             {
                 if ((TileMap.tileTypeAt(i, j - 1) & 32) == 32)
                 {
                     g.drawRegion(TileMap.imgWaterfall, 0, 24 * (GameCanvas.gameTick % 4), 24, 24, 0, i * (int)TileMap.size, j * (int)TileMap.size, 0);
                 }
                 else if ((TileMap.tileTypeAt(i, j - 1) & 4096) == 4096)
                 {
                     TileMap.paintTile(g, 21, i, j);
                 }
                 Image arg;
                 if (TileMap.tileID == 5)
                 {
                     arg = TileMap.imgWaterlowN;
                 }
                 else if (TileMap.tileID == 8)
                 {
                     arg = TileMap.imgWaterlowN2;
                 }
                 else
                 {
                     arg = TileMap.imgWaterflow;
                 }
                 g.drawRegion(arg, 0, (GameCanvas.gameTick % 8 >> 2) * 24, 24, 24, 0, i * (int)TileMap.size, j * (int)TileMap.size, 0);
             }
             if ((TileMap.tileTypeAt(i, j) & 2048) == 2048)
             {
                 if ((TileMap.tileTypeAt(i, j - 1) & 32) == 32)
                 {
                     g.drawRegion(TileMap.imgWaterfall, 0, 24 * (GameCanvas.gameTick % 4), 24, 24, 0, i * (int)TileMap.size, j * (int)TileMap.size, 0);
                 }
                 else if ((TileMap.tileTypeAt(i, j - 1) & 4096) == 4096)
                 {
                     TileMap.paintTile(g, 21, i, j);
                 }
                 TileMap.paintTile(g, TileMap.maps[j * TileMap.tmw + i] - 1, i, j);
             }
         }
     }
 }
예제 #30
0
    // Token: 0x06000210 RID: 528 RVA: 0x000117D8 File Offset: 0x0000F9D8
    public void paint(mGraphics g, int x, int y)
    {
        mFont mFont = mFont.tahoma_7b_dark;

        if ((int)this.role == 0)
        {
            mFont = mFont.tahoma_7b_red;
        }
        else if ((int)this.role == 1)
        {
            mFont = mFont.tahoma_7b_green;
        }
        else if ((int)this.role == 2)
        {
            mFont = mFont.tahoma_7b_green2;
        }
        if (this.type == 0)
        {
            mFont.drawString(g, this.playerName, x + 3, y + 1, 0);
            if ((int)this.color == 0)
            {
                mFont.tahoma_7_grey.drawString(g, this.chat[0] + ((this.chat.Length <= 1) ? string.Empty : "..."), x + 3, y + 11, 0);
            }
            else
            {
                mFont.tahoma_7_red.drawString(g, this.chat[0] + ((this.chat.Length <= 1) ? string.Empty : "..."), x + 3, y + 11, 0);
            }
            mFont.tahoma_7_grey.drawString(g, NinjaUtil.getTimeAgo(this.timeAgo) + " " + mResources.ago, x + GameCanvas.panel.wScroll - 3, y + 1, mFont.RIGHT);
        }
        if (this.type == 1)
        {
            mFont.drawString(g, string.Concat(new object[]
            {
                this.playerName,
                " (",
                this.recieve,
                "/",
                this.maxCap,
                ")"
            }), x + 3, y + 1, 0);
            mFont.tahoma_7_blue.drawString(g, string.Concat(new string[]
            {
                mResources.request_pea,
                " ",
                NinjaUtil.getTimeAgo(this.timeAgo),
                " ",
                mResources.ago
            }), x + 3, y + 11, 0);
        }
        if (this.type == 2)
        {
            mFont.drawString(g, this.playerName, x + 3, y + 1, 0);
            mFont.tahoma_7_blue.drawString(g, mResources.request_join_clan, x + 3, y + 11, 0);
        }
    }