| 赞 | 86 |
| VIP | |
| 好人卡 | |
| 积分 | 103 |
| 经验 | |
| 最后登录 | 2026-9-19 |
| 在线时间 | 1919 小时 |
- 梦石
- 0
- 星屑
- 10274
- 在线时间
- 1919 小时
- 注册时间
- 2020-1-2
- 回帖
- 1043
|
发表于 2021-9-4 19:02:07
|
显示全部楼层
[pre lang="javascript" line="587" file="rpg_windows"]Window_Base.prototype.drawActorSimpleStatus = function(actor, x, y, width) {
var lineHeight = this.lineHeight();
var x2 = x + 180;
var width2 = Math.min(200, width - 180 - this.textPadding());
this.drawActorName(actor, x, y);
this.drawActorLevel(actor, x, y + lineHeight * 1);
this.drawActorIcons(actor, x, y + lineHeight * 2);
this.drawActorClass(actor, x2, y);
this.drawActorHp(actor, x2, y + lineHeight * 1, width2);
this.drawActorMp(actor, x2, y + lineHeight * 2, width2);
};[/pre]
这个是菜单的 如果状态也需要的话再找我
打开工程文件的JS里面有一个rpg_windows.js你可以用记事本或者DW打开
然后找到这一串代码
如何修改 width2 这个是宽度 你可以修改基础值var width2 = Math.min(200, width - 180 - this.textPadding());
或则直接在 this.drawActorHp(actor, x2, y + lineHeight * 1, width2 * 2);基础值 X 2长度
虽然你HP显示条长度增加但是需要修改X2位置因为X2相当于显示起点
如果还有不会的可以加群问吧 727783732 密码5378938
|
评分
-
查看全部评分
|