查看: 4090|回复: 4

[有事请教] 如何修改菜单画面中血/蓝条的长度?

[复制链接]
梦石
0
星屑
325
在线时间
252 小时
注册时间
2014-4-11
回帖
184
发表于 2018-2-10 15:48:20 | 显示全部楼层 |阅读模式

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

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

×
就是这个的
无标题.png
梦石
0
星屑
1893
在线时间
436 小时
注册时间
2018-1-18
回帖
368
发表于 2018-2-10 16:16:57 | 显示全部楼层
你可以试试把窗口大小调一下,条就自己跟着变长变短了
回复

使用道具 举报

梦石
0
星屑
1573
在线时间
374 小时
注册时间
2017-12-26
回帖
291
发表于 2018-2-10 17:02:00 | 显示全部楼层
本帖最后由 qq1065526265 于 2018-2-10 18:13 编辑

核心引擎好像可以设置  但是我找不到  然后我就把指令那边改小了 看着就长了
回复

使用道具 举报

梦石
0
星屑
149
在线时间
32 小时
注册时间
2015-12-30
回帖
16
发表于 2018-2-10 19:26:59 | 显示全部楼层
在rpg_windows.js裡的drawActorSimpleStatus裡,自己可以寫一個小插件改長度

[pre lang="javascript"]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]

長度應該是看drawActorHp和drawActorMp裡的width2
自己可以翻翻看
回复

使用道具 举报

梦石
0
星屑
325
在线时间
252 小时
注册时间
2014-4-11
回帖
184
 楼主| 发表于 2018-2-10 21:18:54 | 显示全部楼层
tmh2009 发表于 2018-2-10 19:26
在rpg_windows.js裡的drawActorSimpleStatus裡,自己可以寫一個小插件改長度

Window_Base.prototype.drawA ...

哦感谢,的确可行。
回复

使用道具 举报

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

本版积分规则

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

在本版发帖返回顶部