查看: 3747|回复: 3

[有事请教] 求助VisuMZ的主菜单插件设置5个人物显示

[复制链接]
梦石
0
星屑
1321
在线时间
157 小时
注册时间
2006-2-12
回帖
157
发表于 2023-8-1 23:10:21 | 显示全部楼层 |阅读模式

加入我们,或者,欢迎回来。

您需要 登录 才可以下载或查看,没有账号?注册会员

×
如图只能显示4个人物,请问如何让5个人物都显示在一页上面。
由于VisuMZ插件加密只能提供少量js代码自定义,我找到了以下一段不知道是不是在这里面修改,求大佬帮我看看~~

[pre lang="js"]// Declare Constants
const actor = arguments[0];
const rect = arguments[1];

// Make Constants
const lineHeight = this.lineHeight();
const gaugeLineHeight = this.gaugeLineHeight();
const totalHeight = (lineHeight * 4.5) + (gaugeLineHeight * ($dataSystem.optDisplayTp ? 3 : 2));

// Draw Actor Graphic
const gw = rect.width;
const gh = rect.height;
const gx = rect.x;
const gy = rect.y;
this.drawItemActorMenuImage(actor, gx, gy, gw, gh);

// Draw Dark Rectangle
let sx = rect.x;
let sy = Math.max(rect.y, rect.y + (rect.height - totalHeight));
let sw = rect.width;
let sh = rect.y + rect.height - sy;
this.contents.fillRect(sx+1, sy+lineHeight/2, sw-2, sh-1-lineHeight/2, ColorManager.dimColor1());
this.contents.gradientFillRect(sx+1, sy-lineHeight/2, sw-2, lineHeight, ColorManager.dimColor2(), ColorManager.dimColor1(), true);

// Draw Actor Name
this.drawText(actor.name(), sx, sy, sw, 'center');

// Draw Actor Level
sx = rect.x + Math.round((rect.width - 128) / 2);
sy += lineHeight;
this.drawActorLevel(actor, sx, sy);

// Draw Actor Class
const className = actor.currentClass().name;
sx = rect.x + Math.round((rect.width - this.textSizeEx(className).width) / 2);
sy += lineHeight;
this.drawTextEx(className, sx, sy, sw);

// Draw Actor Icons
sx = rect.x + Math.round((rect.width - 128) / 2);
sy += lineHeight;
this.drawActorIcons(actor, sx, sy);

// Draw Gauges
sx = rect.x + Math.round((rect.width - 128) / 2);
sy += lineHeight;
this.placeGauge(actor, "hp", sx, sy);
sy += gaugeLineHeight;
this.placeGauge(actor, "mp", sx, sy);
sy += gaugeLineHeight;
if ($dataSystem.optDisplayTp) {
    this.placeGauge(actor, "tp", sx, sy);
}[/pre]
5201690882358_.pic.jpg
梦石
0
星屑
1321
在线时间
157 小时
注册时间
2006-2-12
回帖
157
 楼主| 发表于 2023-8-2 11:55:34 | 显示全部楼层
已经自我解决,在另一个插件party system里面设置最大成员数为5个即可
回复

使用道具 举报

梦石
0
星屑
1737
在线时间
123 小时
注册时间
2023-12-26
回帖
184
发表于 2025-2-28 09:39:22 | 显示全部楼层
douqunbo 发表于 2023-8-2 11:55
已经自我解决,在另一个插件party system里面设置最大成员数为5个即可

能不能发个你这菜单插件出来呀
回复

使用道具 举报

梦石
0
星屑
1321
在线时间
157 小时
注册时间
2006-2-12
回帖
157
 楼主| 发表于 2025-3-3 17:17:56 | 显示全部楼层
djs789783 发表于 2025-2-28 09:39
能不能发个你这菜单插件出来呀

就在这个插件 VisuMZ 2 PartySystem 的插件设置里面,General Settings 中有一个 Max Battle Members
回复

使用道具 举报

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

本版积分规则

Powered by Discuz! X5.0 © 2001-2026 Discuz! Team.

在本版发帖返回顶部