| 赞 | 2 |
| VIP | |
| 好人卡 | |
| 积分 | 1 |
| 经验 | |
| 最后登录 | 2019-7-2 |
| 在线时间 | 21 小时 |
- 梦石
- 0
- 星屑
- 143
- 在线时间
- 21 小时
- 注册时间
- 2018-7-25
- 回帖
- 15
|
发表于 2018-7-27 18:14:20
|
显示全部楼层
哈哈哈哈哈,问了下大佬,再参考源码js,弄出了一个原始的表现。
大致是这种效果
说下步骤吧:
找到Window_Status;
照着其他条目编写:
[pre lang="javascript"]Window_Status.prototype.drawxyz = function(x, y) {
var lineHeight = this.lineHeight();
this.changeTextColor(this.systemColor());
this.drawText("名望", x, y + lineHeight * 0,160);
this.drawText("艺术", x, y + lineHeight * 1,160);
this.resetTextColor();
this.drawText($gameVariables.value(N), x + 160, y + lineHeight * 0, 60, 'right');
this.drawText($gameVariables.value(N2), x + 160, y + lineHeight * 1, 60, 'right');
};[/pre]
记得在Window_Status.prototype.drawBlock3这里把你修改的部分加上去,不然不会显示。我这里是把装备去掉了。
[pre lang="javascript"]Window_Status.prototype.drawBlock3 = function(y) {
this.drawParameters(48, y);
this.drawxyz(432, y);
};[/pre]
这种方法非常原始,内容和数值完全靠硬写完成,对我来说还算够用,等技术提高了再改成变量式的显示好了哈哈哈哈。
希望可以帮到你。
|
|