コード例 #1
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);
         }
     }
 }
コード例 #2
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);
     }
 }
コード例 #3
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);
 }
コード例 #4
0
    // Token: 0x06000370 RID: 880 RVA: 0x0001B348 File Offset: 0x00019548
    public void paintCmdBar(mGraphics g, Command left, Command center, Command right)
    {
        mFont mFont = (!GameCanvas.isTouch) ? mFont.tahoma_7b_dark : mFont.tahoma_7b_dark;
        int   num   = 3;

        if (left != null)
        {
            Paint.lenCaption = mFont.getWidth(left.caption);
            if (Paint.lenCaption > 0)
            {
                if (left.x >= 0 && left.y > 0)
                {
                    left.paint(g);
                }
                else
                {
                    g.drawImage((mScreen.keyTouch != 0) ? GameScr.imgLbtn : GameScr.imgLbtnFocus, 1, GameCanvas.h - mScreen.cmdH - 1, 0);
                    mFont.drawString(g, left.caption, 35, GameCanvas.h - mScreen.cmdH + 3 + num, 2);
                }
            }
        }
        if (center != null)
        {
            Paint.lenCaption = mFont.getWidth(center.caption);
            if (Paint.lenCaption > 0)
            {
                if (center.x > 0 && center.y > 0)
                {
                    center.paint(g);
                }
                else
                {
                    g.drawImage((mScreen.keyTouch != 1) ? GameScr.imgLbtn : GameScr.imgLbtnFocus, GameCanvas.hw - 35, GameCanvas.h - mScreen.cmdH - 1, 0);
                    mFont.drawString(g, center.caption, GameCanvas.hw, GameCanvas.h - mScreen.cmdH + 3 + num, 2);
                }
            }
        }
        if (right != null)
        {
            Paint.lenCaption = mFont.getWidth(right.caption);
            if (Paint.lenCaption > 0)
            {
                if (right.x > 0 && right.y > 0)
                {
                    right.paint(g);
                }
                else
                {
                    g.drawImage((mScreen.keyTouch != 2) ? GameScr.imgLbtn : GameScr.imgLbtnFocus, GameCanvas.w - 71, GameCanvas.h - mScreen.cmdH - 1, 0);
                    mFont.drawString(g, right.caption, GameCanvas.w - 35, GameCanvas.h - mScreen.cmdH + 3 + num, 2);
                }
            }
        }
    }
コード例 #5
0
 // 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);
     }
 }
コード例 #6
0
 // 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);
 }
コード例 #7
0
    // Token: 0x060002C0 RID: 704 RVA: 0x00015E2C File Offset: 0x0001402C
    public static void paintOngMau(Image img0, Image img1, Image img2, int x, int y, int size, mGraphics g)
    {
        for (int i = 10; i <= size - 20; i += 10)
        {
            g.drawImage(img1, x + i, y, 0);
        }
        int num = size % 10;

        if (num > 0)
        {
            g.drawRegion(img1, 0, 0, num, 24, 0, x + size - 10 - num, y, 0);
        }
        g.drawImage(img0, x, y, 0);
        g.drawImage(img2, x + size - 10, y, 0);
    }
コード例 #8
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);
    }
コード例 #9
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);
            }
        }
    }
コード例 #10
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();
 }
コード例 #11
0
 // 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());
 }
コード例 #12
0
 // Token: 0x060008C3 RID: 2243 RVA: 0x0007F2A8 File Offset: 0x0007D4A8
 public static void paintTile(mGraphics g, int frame, int x, int y, int w, int h)
 {
     if (TileMap.imgTile == null)
     {
         return;
     }
     if (TileMap.imgTile.Length == 1)
     {
         g.drawRegion(TileMap.imgTile[0], 0, frame * w, w, w, 0, x, y, 0);
     }
     else
     {
         g.drawImage(TileMap.imgTile[frame], x, y, 0);
     }
 }
コード例 #13
0
 // 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);
 }
コード例 #14
0
 // Token: 0x060008C2 RID: 2242 RVA: 0x0007F22C File Offset: 0x0007D42C
 public static void paintTile(mGraphics g, int frame, int indexX, int indexY)
 {
     if (TileMap.imgTile == null)
     {
         return;
     }
     if (TileMap.imgTile.Length == 1)
     {
         g.drawRegion(TileMap.imgTile[0], 0, frame * (int)TileMap.size, (int)TileMap.size, (int)TileMap.size, 0, indexX * (int)TileMap.size, indexY * (int)TileMap.size, 0);
     }
     else
     {
         g.drawImage(TileMap.imgTile[frame], indexX * (int)TileMap.size, indexY * (int)TileMap.size, 0);
     }
 }
コード例 #15
0
 // Token: 0x0600034D RID: 845 RVA: 0x000194C0 File Offset: 0x000176C0
 public override void paint(mGraphics g)
 {
     if (this.id == 0)
     {
         return;
     }
     SmallImage.drawSmallImage(g, this.id, this.cx, this.cy, 0, StaticObj.BOTTOM_HCENTER);
     if (global::Char.myCharz().npcFocus != null && global::Char.myCharz().npcFocus.Equals(this))
     {
         g.drawRegion(Mob.imgHP, 0, 0, 9, 6, 0, this.cx, this.cy - SmallImage.smallImg[this.id][4] - 1, mGraphics.BOTTOM | mGraphics.HCENTER);
         if (this.name != null)
         {
             mFont.tahoma_7b_white.drawString(g, this.name, this.cx, this.cy - SmallImage.smallImg[this.id][4] - 20, mFont.CENTER, mFont.tahoma_7_grey);
         }
     }
     else if (this.name != null)
     {
         mFont.tahoma_7b_white.drawString(g, this.name, this.cx, this.cy - SmallImage.smallImg[this.id][4] - 17, mFont.CENTER, mFont.tahoma_7_grey);
     }
     try
     {
         for (int i = 0; i < this.currPeas; i++)
         {
             g.drawImage(MagicTree.pea, this.cx + this.peaPostionX[i] - SmallImage.smallImg[this.id][3] / 2, this.cy + this.peaPostionY[i] - SmallImage.smallImg[this.id][4], 0);
         }
     }
     catch (Exception ex)
     {
     }
     if (this.indexEffTask >= 0 && this.effTask != null && (int)this.cTypePk == 0)
     {
         SmallImage.drawSmallImage(g, this.effTask.arrEfInfo[this.indexEffTask].idImg, this.cx + this.effTask.arrEfInfo[this.indexEffTask].dx + SmallImage.smallImg[this.id][3] / 2 + 5, this.cy - 15 + this.effTask.arrEfInfo[this.indexEffTask].dy, 0, mGraphics.VCENTER | mGraphics.HCENTER);
         if (GameCanvas.gameTick % 2 == 0)
         {
             this.indexEffTask++;
             if (this.indexEffTask >= this.effTask.arrEfInfo.Length)
             {
                 this.indexEffTask = 0;
             }
         }
     }
 }
コード例 #16
0
 // Token: 0x06000325 RID: 805 RVA: 0x00018900 File Offset: 0x00016B00
 public void paintAuraItemEff(mGraphics g)
 {
     if (!GameCanvas.lowGraphic && this.isAuraItem())
     {
         for (int i = 0; i < this.yArg.Length; i++)
         {
             if (this.count == i)
             {
                 if (this.countAura <= 20)
                 {
                     g.drawImage(ItemMap.imageAuraItem3, this.xDot[i], this.yDot[i] + 3, mGraphics.BOTTOM | mGraphics.HCENTER);
                 }
                 else
                 {
                     SmallImage.drawSmallImage(g, (int)this.template.iconID, this.xDot[i], this.yDot[i] + 3, 0, mGraphics.BOTTOM | mGraphics.HCENTER);
                 }
             }
         }
     }
 }
コード例 #17
0
    // Token: 0x06000741 RID: 1857 RVA: 0x00060DEC File Offset: 0x0005EFEC
    private void paintShadow(mGraphics g)
    {
        int num = (int)TileMap.size;

        if (TileMap.tileTypeAt(this.xSd + num / 2, this.ySd + 1, 4))
        {
            g.setClip(this.xSd / num * num, (this.ySd - 30) / num * num, num, 100);
        }
        else if (TileMap.tileTypeAt((this.xSd - num / 2) / num, (this.ySd + 1) / num) == 0)
        {
            g.setClip(this.xSd / num * num, (this.ySd - 30) / num * num, 100, 100);
        }
        else if (TileMap.tileTypeAt((this.xSd + num / 2) / num, (this.ySd + 1) / num) == 0)
        {
            g.setClip(this.xSd / num * num, (this.ySd - 30) / num * num, num, 100);
        }
        else if (TileMap.tileTypeAt(this.xSd - num / 2, this.ySd + 1, 8))
        {
            g.setClip(this.xSd / 24 * num, (this.ySd - 30) / num * num, num, 100);
        }
        g.drawImage(TileMap.bong, this.xSd, this.ySd, 3);
        g.setClip(GameScr.cmx, GameScr.cmy - GameCanvas.transY, GameScr.gW, GameScr.gH + 2 * GameCanvas.transY);
    }
コード例 #18
0
 // Token: 0x06000321 RID: 801 RVA: 0x00018590 File Offset: 0x00016790
 public void paint(mGraphics g)
 {
     if (this.isAuraItem())
     {
         g.drawImage(TileMap.bong, this.x + 3, this.y, mGraphics.VCENTER | mGraphics.HCENTER);
         if ((int)this.status <= 0)
         {
             if (this.countAura < 10)
             {
                 g.drawImage(ItemMap.imageAuraItem1, this.x, this.y + (int)this.status + 3, mGraphics.BOTTOM | mGraphics.HCENTER);
             }
             else
             {
                 g.drawImage(ItemMap.imageAuraItem2, this.x, this.y + (int)this.status + 3, mGraphics.BOTTOM | mGraphics.HCENTER);
             }
         }
         else if (this.countAura < 10)
         {
             g.drawImage(ItemMap.imageAuraItem1, this.x, this.y + 3, mGraphics.BOTTOM | mGraphics.HCENTER);
         }
         else
         {
             g.drawImage(ItemMap.imageAuraItem2, this.x, this.y + 3, mGraphics.BOTTOM | mGraphics.HCENTER);
         }
     }
     else if (!this.isAuraItem())
     {
         if (GameCanvas.gameTick % 4 == 0)
         {
             g.drawImage(ItemMap.imageFlare, this.x, this.y + (int)this.status + 13, mGraphics.BOTTOM | mGraphics.HCENTER);
         }
         if ((int)this.status <= 0)
         {
             SmallImage.drawSmallImage(g, (int)this.template.iconID, this.x, this.y + (int)this.status + 3, 0, mGraphics.BOTTOM | mGraphics.HCENTER);
         }
         else
         {
             SmallImage.drawSmallImage(g, (int)this.template.iconID, this.x, this.y + 3, 0, mGraphics.BOTTOM | mGraphics.HCENTER);
         }
         if (global::Char.myCharz().itemFocus != null && global::Char.myCharz().itemFocus.Equals(this) && (int)this.status != 2)
         {
             g.drawRegion(Mob.imgHP, 0, 24, 9, 6, 0, this.x, this.y - 17, 3);
         }
     }
 }
コード例 #19
0
 // 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);
 }
コード例 #20
0
 // 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);
 }
コード例 #21
0
        // 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);
        }
コード例 #22
0
 // Token: 0x06000361 RID: 865 RVA: 0x0001A2A0 File Offset: 0x000184A0
 public override void paint(mGraphics g)
 {
     if (global::Char.isLoadingMap)
     {
         return;
     }
     if (this.isHide)
     {
         return;
     }
     if (!base.isPaint())
     {
         return;
     }
     if (this.statusMe == 15)
     {
         return;
     }
     if ((int)this.cTypePk != 0)
     {
         base.paint(g);
         return;
     }
     if (this.template == null)
     {
         return;
     }
     if (this.template.npcTemplateId != 4 && this.template.npcTemplateId != 51 && this.template.npcTemplateId != 50)
     {
         g.drawImage(TileMap.bong, this.cx, this.cy, 3);
     }
     if (this.template.npcTemplateId == 3)
     {
         SmallImage.drawSmallImage(g, 265, this.cx, this.cy, 0, mGraphics.BOTTOM | mGraphics.HCENTER);
         if (global::Char.myCharz().npcFocus != null && global::Char.myCharz().npcFocus.Equals(this))
         {
             if (ChatPopup.currChatPopup == null)
             {
                 g.drawRegion(Mob.imgHP, 0, 0, 9, 6, 0, this.cx, this.cy - this.ch + 4, mGraphics.BOTTOM | mGraphics.HCENTER);
             }
         }
         this.dyEff = 60;
     }
     else if (this.template.npcTemplateId != 4)
     {
         if (this.template.npcTemplateId == 50 || this.template.npcTemplateId == 51)
         {
             if (this.duahau != null)
             {
                 if (this.template.npcTemplateId == 50 && Npc.mabuEff)
                 {
                     Npc.tMabuEff++;
                     if (GameCanvas.gameTick % 3 == 0)
                     {
                         Effect me = new Effect(19, this.cx + Res.random(-50, 50), this.cy, 2, 1, -1);
                         EffecMn.addEff(me);
                     }
                     if (GameCanvas.gameTick % 15 == 0)
                     {
                         Effect me2 = new Effect(18, this.cx + Res.random(-5, 5), this.cy + Res.random(-90, 0), 2, 1, -1);
                         EffecMn.addEff(me2);
                     }
                     if (Npc.tMabuEff == 100)
                     {
                         GameScr.gI().activeSuperPower(this.cx, this.cy);
                     }
                     if (Npc.tMabuEff == 110)
                     {
                         Npc.mabuEff = false;
                         this.template.npcTemplateId = 4;
                     }
                 }
                 int num = 0;
                 if (SmallImage.imgNew[this.duahau[this.duaHauIndex]] != null && SmallImage.imgNew[this.duahau[this.duaHauIndex]].img != null)
                 {
                     num = mGraphics.getImageHeight(SmallImage.imgNew[this.duahau[this.duaHauIndex]].img);
                 }
                 SmallImage.drawSmallImage(g, this.duahau[this.duaHauIndex], this.cx + Res.random(-1, 1), this.cy, 0, mGraphics.BOTTOM | mGraphics.HCENTER);
                 if (global::Char.myCharz().npcFocus != null && global::Char.myCharz().npcFocus.Equals(this))
                 {
                     if (ChatPopup.currChatPopup == null)
                     {
                         g.drawRegion(Mob.imgHP, 0, 0, 9, 6, 0, this.cx, this.cy - this.ch - 9 + 16 - num, mGraphics.BOTTOM | mGraphics.HCENTER);
                     }
                     mFont.tahoma_7b_white.drawString(g, NinjaUtil.getTime(this.seconds), this.cx, this.cy - this.ch - 16 - mFont.tahoma_7.getHeight() - 20 - num + 16, mFont.CENTER, mFont.tahoma_7b_dark);
                 }
                 else
                 {
                     mFont.tahoma_7b_white.drawString(g, NinjaUtil.getTime(this.seconds), this.cx, this.cy - this.ch - 8 - mFont.tahoma_7.getHeight() - 20 - num + 16, mFont.CENTER, mFont.tahoma_7b_dark);
                 }
             }
         }
         else if (this.template.npcTemplateId == 6)
         {
             SmallImage.drawSmallImage(g, 545, this.cx, this.cy + 5, 0, mGraphics.BOTTOM | mGraphics.HCENTER);
             if (global::Char.myCharz().npcFocus != null && global::Char.myCharz().npcFocus.Equals(this))
             {
                 if (ChatPopup.currChatPopup == null)
                 {
                     g.drawRegion(Mob.imgHP, 0, 0, 9, 6, 0, this.cx, this.cy - this.ch - 9, mGraphics.BOTTOM | mGraphics.HCENTER);
                 }
             }
             mFont.tahoma_7b_white.drawString(g, TileMap.zoneID + string.Empty, this.cx, this.cy - this.ch + 19 - mFont.tahoma_7.getHeight(), mFont.CENTER);
         }
         else
         {
             int  headId = this.template.headId;
             int  legId  = this.template.legId;
             int  bodyId = this.template.bodyId;
             Part part   = GameScr.parts[headId];
             Part part2  = GameScr.parts[legId];
             Part part3  = GameScr.parts[bodyId];
             if (this.cdir == 1)
             {
                 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, 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, 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, 0, 0);
             }
             else
             {
                 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, 2, 24);
                 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, 2, 24);
                 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, 2, 24);
             }
             if (TileMap.mapID != 51)
             {
                 int num2 = 15;
                 if (this.template.npcTemplateId == 47)
                 {
                     num2 = 47;
                 }
                 if (global::Char.myCharz().npcFocus != null && global::Char.myCharz().npcFocus.Equals(this))
                 {
                     if (ChatPopup.currChatPopup == null)
                     {
                         g.drawRegion(Mob.imgHP, 0, 0, 9, 6, 0, this.cx, this.cy - this.ch - (num2 - 8), mGraphics.BOTTOM | mGraphics.HCENTER);
                     }
                 }
                 else if (this.template.npcTemplateId == 47)
                 {
                 }
             }
             this.dyEff = 65;
         }
     }
     if (this.indexEffTask >= 0 && this.effTask != null && (int)this.cTypePk == 0)
     {
         SmallImage.drawSmallImage(g, this.effTask.arrEfInfo[this.indexEffTask].idImg, this.cx + this.effTask.arrEfInfo[this.indexEffTask].dx, this.cy + this.effTask.arrEfInfo[this.indexEffTask].dy - this.dyEff, 0, mGraphics.VCENTER | mGraphics.HCENTER);
         if (GameCanvas.gameTick % 2 == 0)
         {
             this.indexEffTask++;
             if (this.indexEffTask >= this.effTask.arrEfInfo.Length)
             {
                 this.indexEffTask = 0;
             }
         }
     }
     if (this.chatInfo != null)
     {
         this.chatInfo.paint(g, this.cx, this.cy - this.ch, this.cdir);
     }
 }
コード例 #23
0
    // 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);
    }
コード例 #24
0
    // Token: 0x060002BF RID: 703 RVA: 0x00015B5C File Offset: 0x00013D5C
    public void paint(mGraphics g)
    {
        if (this.img != null)
        {
            g.drawImage(this.img, this.x, this.y + mGraphics.addYWhenOpenKeyBoard, 0);
            if (this.isFocus)
            {
                if (this.imgFocus == null)
                {
                    if (this.cmdClosePanel)
                    {
                        g.drawImage(ItemMap.imageFlare, this.x + 8, this.y + mGraphics.addYWhenOpenKeyBoard + 8, 3);
                    }
                    else
                    {
                        g.drawImage(ItemMap.imageFlare, this.x - ((!this.img.Equals(GameScr.imgMenu)) ? 0 : 10), this.y + mGraphics.addYWhenOpenKeyBoard, 0);
                    }
                }
                else
                {
                    g.drawImage(this.imgFocus, this.x, this.y + mGraphics.addYWhenOpenKeyBoard, 0);
                }
            }
            if (this.caption != "menu" && this.caption != null)
            {
                if (!this.isFocus)
                {
                    mFont.tahoma_7b_dark.drawString(g, this.caption, this.x + mGraphics.getImageWidth(this.img) / 2, this.y + mGraphics.getImageHeight(this.img) / 2 - 5, 2);
                }
                else
                {
                    mFont.tahoma_7b_green2.drawString(g, this.caption, this.x + mGraphics.getImageWidth(this.img) / 2, this.y + mGraphics.getImageHeight(this.img) / 2 - 5, 2);
                }
            }
            return;
        }
        if (this.caption != string.Empty)
        {
            if (this.type == 1)
            {
                if (!this.isFocus)
                {
                    Command.paintOngMau(Command.btn0left, Command.btn0mid, Command.btn0right, this.x, this.y, 160, g);
                }
                else
                {
                    Command.paintOngMau(Command.btn1left, Command.btn1mid, Command.btn1right, this.x, this.y, 160, g);
                }
            }
            else if (!this.isFocus)
            {
                Command.paintOngMau(Command.btn0left, Command.btn0mid, Command.btn0right, this.x, this.y, 76, g);
            }
            else
            {
                Command.paintOngMau(Command.btn1left, Command.btn1mid, Command.btn1right, this.x, this.y, 76, g);
            }
        }
        int num;

        if (this.type == 1)
        {
            num = this.x + this.hw;
        }
        else
        {
            num = this.x + 38;
        }
        if (!this.isFocus)
        {
            mFont.tahoma_7b_dark.drawString(g, this.caption, num, this.y + 7, 2);
        }
        else
        {
            mFont.tahoma_7b_green2.drawString(g, this.caption, num, this.y + 7, 2);
        }
    }
コード例 #25
0
 // Token: 0x06000384 RID: 900 RVA: 0x000051F2 File Offset: 0x000033F2
 public void paintSellectBoard(mGraphics g, int x, int y, int w, int h)
 {
     g.drawImage(Paint.imgSelectBoard, x - 7, y, 0);
 }
コード例 #26
0
    // 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);
        }
    }
コード例 #27
0
 // Token: 0x06000379 RID: 889 RVA: 0x00005125 File Offset: 0x00003325
 public void paintImgMsg(mGraphics g, int x, int y, int index)
 {
     g.drawImage(Paint.imgMsg[index], x, y, 0);
 }
コード例 #28
0
    // Token: 0x06000718 RID: 1816 RVA: 0x0005E3F4 File Offset: 0x0005C5F4
    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;
        }
        mFont.tahoma_7_white.drawString(g, "v" + GameMidlet.VERSION, GameCanvas.w - 2, 17, 1, mFont.tahoma_7_grey);
        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, 2, 1, mFont.tahoma_7_grey);
        }
        if (ChatPopup.currChatPopup != null)
        {
            return;
        }
        if (ChatPopup.serverChatPopUp != null)
        {
            return;
        }
        if (GameCanvas.currentDialog == null)
        {
            int h = 105;
            int w = (GameCanvas.w < 200) ? 160 : 180;
            PopUp.paintPopUp(g, this.xLog, this.yLog - 10, w, h, -1, true);
            if (GameCanvas.h > 160 && LoginScr.imgTitle != null)
            {
                g.drawImage(LoginScr.imgTitle, GameCanvas.hw, num, 3);
            }
            GameCanvas.debug("PLG4", 1);
            int num2 = 4;
            int num3 = num2 * 32 + 23 + 33;
            if (num3 >= GameCanvas.w)
            {
                num2--;
                num3 = num2 * 32 + 23 + 33;
            }
            this.xLog     = GameCanvas.w / 2 - num3 / 2;
            this.tfUser.x = this.xLog + 10;
            this.tfUser.y = this.yLog + 20;
            this.tfPass.x = this.xLog + 10;
            this.tfPass.y = this.yLog + 55;
            this.tfUser.paint(g);
            this.tfPass.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.tfPass.x - 35, this.tfPass.y + 7, 0);
                mFont.tahoma_7b_green2.drawString(g, mResources.server + ":" + LoginScr.serverName, GameCanvas.w / 2, this.tfPass.y + 32, 2);
            }
        }
        base.paint(g);
    }
コード例 #29
0
 // Token: 0x06000373 RID: 883 RVA: 0x000050E7 File Offset: 0x000032E7
 public void paintLogo(mGraphics g, int x, int y)
 {
     g.drawImage(Paint.imgLogo, x, y, 3);
 }