Project1

标题: iconset图标过长导致打包安卓图标变成黑块的问题。 [打印本页]

作者: 工体大黄蜂    时间: 2023-10-12 01:41
标题: iconset图标过长导致打包安卓图标变成黑块的问题。
我自己测试了一下像素到512x4096已经是极限了,超过4096高度图标就变成黑块了。


在论坛内搜了一下只找到了MV的解决方案:
KRZ_iconimprove 解决iconset图片 过长黑块的问题
https://rpg.blue/thread-484110-1-1.html


请问有类似的MZ插件或者解决办法么。

这是电脑上正常显示的样子


这是安卓端上出现黑块的情况



各大论坛找了很久都没找到解决方案~(除了删减图标)  请求大佬帮助!
作者: 工体大黄蜂    时间: 2023-10-12 09:03
好像是个好主意,不过该怎么修改呢?
作者: 小秋橙    时间: 2023-10-12 14:27
Window_Base.prototype.drawIcon = function(iconIndex, x, y) {
    const bitmap = ImageManager.loadSystem("IconSet");
    const pw = ImageManager.iconWidth;
    const ph = ImageManager.iconHeight;
    const sx = (iconIndex % 16) * pw;
    const sy = Math.floor(iconIndex / 16) * ph;
    this.contents.blt(bitmap, sx, sy, pw, ph, x, y);
}; // rmmz_windows.js 第455行
先修改这里的两个16为更大的倍数,比如都改为64。然后需要使用支持透明度的绘图工具(如win10的 画图3d),把图片的每几行(比如64/16=4行)合并为一行。或者加Q群568785370获取32*32格子的便捷ps工具~
作者: 工体大黄蜂    时间: 2023-10-12 22:21
小秋橙 发表于 2023-10-12 14:27
Window_Base.prototype.drawIcon = function(iconIndex, x, y) {
    const bitmap = ImageManager.loadSys ...

感谢,我懂了
作者: w641915379    时间: 2025-3-24 19:51
图像太大了,我也是新手,一步步试了下,图标像素是32*32,和48不一样,设置ps 512*16000也就是说rpg mz应该最大可以显示550行图标。反正我现在可以用了,挺好的。不用插件。就用ps设置一下。
作者: 糜腥珊瑚态耄耋    时间: 2025-3-24 20:22
改名叫icoset1 icoset2  拿index取余得到文件名咯




欢迎光临 Project1 (https://rpg.blue/) Powered by Discuz! X3.1