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

Project1

 找回密码
 注册会员
搜索

如何修改菜单画面中血/蓝条的长度?

查看数: 3510 | 评论数: 4 | 收藏 0
关灯 | 提示:支持键盘翻页<-左 右->
    组图打开中,请稍候......
发布时间: 2018-2-10 15:48

正文摘要:

就是这个的

回复

眼中目之瞳 发表于 2018-2-10 21:18:54
tmh2009 发表于 2018-2-10 19:26
在rpg_windows.js裡的drawActorSimpleStatus裡,自己可以寫一個小插件改長度

Window_Base.prototype.drawA ...

哦感谢,的确可行。
tmh2009 发表于 2018-2-10 19:26:59
在rpg_windows.js裡的drawActorSimpleStatus裡,自己可以寫一個小插件改長度

JAVASCRIPT 代码复制
  1. Window_Base.prototype.drawActorSimpleStatus = function(actor, x, y, width) {
  2.     var lineHeight = this.lineHeight();
  3.     var x2 = x + 180;
  4.     var width2 = Math.min(200, width - 180 - this.textPadding());
  5.     this.drawActorName(actor, x, y);
  6.     this.drawActorLevel(actor, x, y + lineHeight * 1);
  7.     this.drawActorIcons(actor, x, y + lineHeight * 2);
  8.     this.drawActorClass(actor, x2, y);
  9.     this.drawActorHp(actor, x2, y + lineHeight * 1, width2);
  10.     this.drawActorMp(actor, x2, y + lineHeight * 2, width2);
  11. };


長度應該是看drawActorHp和drawActorMp裡的width2
自己可以翻翻看
qq1065526265 发表于 2018-2-10 17:02:00
本帖最后由 qq1065526265 于 2018-2-10 18:13 编辑

核心引擎好像可以设置  但是我找不到  然后我就把指令那边改小了 看着就长了
Williamnice 发表于 2018-2-10 16:16:57
你可以试试把窗口大小调一下,条就自己跟着变长变短了
拿上你的纸笔,建造一个属于你的梦想世界,加入吧。
 注册会员
找回密码

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

GMT+8, 2024-6-3 02:32

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

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