设为首页收藏本站|繁體中文

Project1

 找回密码
 注册会员
搜索
查看: 5986|回复: 14
打印 上一主题 下一主题

[搬运汉化] 信息提示插件三个 - CommonPopupCore & GetInformation & PopupMessage

[复制链接]

Lv2.观梦者

梦石
0
星屑
683
在线时间
81 小时
注册时间
2021-6-3
帖子
40
1
发表于 2021-8-31 10:16:23 | 显示全部楼层
仇九 发表于 2021-5-9 18:48
在已经将565行改了的前提下,解决这又一个问题的最简单的办法是将第246行的bitmap.clear();这一条删去或 ...

大佬 这插件有没有办法获取到物品的颜色 有用到品质颜色插件

点评

我得知道更多的信息才能帮你啊。你说一下具体你是要怎么用,用的品质颜色插件是哪一个……  发表于 2021-8-31 11:27
回复 支持 反对

使用道具 举报

Lv2.观梦者

梦石
0
星屑
683
在线时间
81 小时
注册时间
2021-6-3
帖子
40
2
发表于 2021-8-31 15:29:45 | 显示全部楼层
(function() {
        var _drawItemName = Window_Base.prototype.drawItemName

        Window_Base.prototype.drawItemName = function(item, x, y, width) {
    width = width || 312;


        Color1 = '#FFFFFF' // 一般品质的色彩(白,1)
    Color2 = '#008000' //平庸品质的色彩(绿,2)
    Color3 = '#0000FF'//# 精良品质的色彩(蓝,3)
    Color4 = '#9400D3'  //  # 卓越品质的色彩(紫,4)
    Color5 = '#FF0000'// # 神秘品质的色彩(红,5)
    Color6 = '#FFA500'  //  # 传说品质的色彩(橙,6)
    Color7 = '#FFFF00'//  # 特殊品质的色彩(黄,7)
    if (item)
        {
                var iconBoxWidth = Window_Base._iconWidth + 24;
                var result = item.meta.quality;
                //if (result)
                //{
            if(result == '1')
              {
            YANSE = Color1;
                    this.contents.fillRect(x-1, y+2, 34, -2, Color1);
                    this.contents.fillRect(x-1, y+2-1, 2, 32, Color1);
                    this.contents.fillRect(x-1, y+2+31, 34, 2, Color1);
                    this.contents.fillRect(x+33, y+2, -2, 32, Color1);
                    //this.contents.fillRect(x+2+32, y+2, 1+2, 33+2, '#ff1493');
            this.drawIcon(item.iconIndex, x, y+2 );

                    this.changeTextColor(Color1);
            this.drawText(item.name, x + iconBoxWidth, y, width - iconBoxWidth);
               }
       else if (result == '2')
          {
        YANSE = Color2;
                this.contents.fillRect(x-1, y+2, 34, -2, Color2);
                this.contents.fillRect(x-1, y+2-1, 2, 32, Color2);
                this.contents.fillRect(x-1, y+2+31, 34, 2, Color2);
                this.contents.fillRect(x+33, y+2, -2, 32, Color2);
                //this.contents.fillRect(x+2+32, y+2, 1+2, 33+2, '#ff1493');
        this.drawIcon(item.iconIndex, x, y+2 );

                this.changeTextColor(Color2);
        this.drawText(item.name, x + iconBoxWidth, y, width - iconBoxWidth);
      }
          else if (result == '3')
                  {
        YANSE = Color3;
                this.contents.fillRect(x-1, y+2, 34, -2, Color3);
                this.contents.fillRect(x-1, y+2-1, 2, 32, Color3);
                this.contents.fillRect(x-1, y+2+31, 34, 2, Color3);
                this.contents.fillRect(x+33, y+2, -2, 32, Color3);
                //this.contents.fillRect(x+2+32, y+2, 1+2, 33+2, '#ff1493');
        this.drawIcon(item.iconIndex, x, y+2 );

                this.changeTextColor(Color3);
        this.drawText(item.name, x + iconBoxWidth, y, width - iconBoxWidth);
        }
           else if (result == '4')
          {
        YANSE = Color4;
                this.contents.fillRect(x-1, y+2, 34, -2, Color4);
                this.contents.fillRect(x-1, y+2-1, 2, 32, Color4);
                this.contents.fillRect(x-1, y+2+31, 34, 2, Color4);
                this.contents.fillRect(x+33, y+2, -2, 32, Color4);
                //this.contents.fillRect(x+2+32, y+2, 1+2, 33+2, '#ff1493');
        this.drawIcon(item.iconIndex, x, y+2 );

                this.changeTextColor(Color4);
        this.drawText(item.name, x + iconBoxWidth, y, width - iconBoxWidth);
      }
          else if (result == '5')
                  {
        YANSE = Color5;
                this.contents.fillRect(x-1, y+2, 34, -2, Color5);
                this.contents.fillRect(x-1, y+2-1, 2, 32, Color5);
                this.contents.fillRect(x-1, y+2+31, 34, 2, Color5);
                this.contents.fillRect(x+33, y+2, -2, 32, Color5);
                //this.contents.fillRect(x+2+32, y+2, 1+2, 33+2, '#ff1493');
        this.drawIcon(item.iconIndex, x, y+2 );

                this.changeTextColor(Color5);
        this.drawText(item.name, x + iconBoxWidth, y, width - iconBoxWidth);
          }
          else if (result == '6')
          {
        YANSE = Color6;
                this.contents.fillRect(x-1, y+2, 34, -2, Color6);
                this.contents.fillRect(x-1, y+2-1, 2, 32, Color6);
                this.contents.fillRect(x-1, y+2+31, 34, 2, Color6);
                this.contents.fillRect(x+33, y+2, -2, 32, Color6);
                //this.contents.fillRect(x+2+32, y+2, 1+2, 33+2, '#ff1493');
        this.drawIcon(item.iconIndex, x, y+2 );

                this.changeTextColor(Color6);
        this.drawText(item.name, x + iconBoxWidth, y, width - iconBoxWidth);
      }
          else if (result == '7')
          {
        YANSE = Color7;
                this.contents.fillRect(x-1, y+2, 34, -2, Color7);
                this.contents.fillRect(x-1, y+2-1, 2, 32, Color7);
                this.contents.fillRect(x-1, y+2+31, 34, 2, Color7);
                this.contents.fillRect(x+33, y+2, -2, 32, Color7);
                //this.contents.fillRect(x+2+32, y+2, 1+2, 33+2, '#ff1493');
        this.drawIcon(item.iconIndex, x, y+2 );

                this.changeTextColor(Color7);
        this.drawText(item.name, x + iconBoxWidth, y, width - iconBoxWidth);
      }
          else {
         this.drawIcon(item.iconIndex, x, y+2 );

                this.resetTextColor();
        this.drawText(item.name, x + iconBoxWidth, y, width - iconBoxWidth);
           }

    }
        //else
        //{
        //        his.drawIcon(item.iconIndex, x, y+2 );
        //        
                //this.resetTextColor();
     //   this.drawText(item.name, x + iconBoxWidth, y, width - iconBoxWidth);}


                //this.contents.fillRect(x+-1, y+1, 34, 34, '#ff1493');
                //this.contents.fillRect(x-1, y+2, 34, -2, '#ff1493');
                //this.contents.fillRect(x-1, y+2-1, 2, 32, '#ff1493');
                //this.contents.fillRect(x-1, y+2+31, 34, 2, '#ff1493');
                //this.contents.fillRect(x+33, y+2, -2, 32, '#ff1493');
                //this.contents.fillRect(x+2+32, y+2, 1+2, 33+2, '#ff1493');
        //this.drawIcon(item.iconIndex, x, y+2 );

                //this.changeTextColor('#ff1493');
        //this.drawText(item.name, x + iconBoxWidth, y, width - iconBoxWidth);
   // }
    //}
        ;


}
})();

就是这个颜色插件  我想获得物品的时候能对应上物品的颜色 尤其是装备 谢谢大佬
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册会员

本版积分规则

拿上你的纸笔,建造一个属于你的梦想世界,加入吧。
 注册会员
找回密码

站长信箱:[email protected]|手机版|小黑屋|无图版|Project1游戏制作

GMT+8, 2024-5-12 00:10

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表