赞 | 35 |
VIP | 0 |
好人卡 | 0 |
积分 | 68 |
经验 | 0 |
最后登录 | 2025-4-15 |
在线时间 | 445 小时 |
Lv4.逐梦者
- 梦石
- 0
- 星屑
- 6750
- 在线时间
- 445 小时
- 注册时间
- 2021-12-4
- 帖子
- 482
|
rmmz_windows.js 第 2580 行附近有以下很多函数,可以试着更改其中的一些数字比如那个 return 48;
- Window_EquipStatus.prototype.drawAllParams = function() {
- for (let i = 0; i < 6; i++) {
- const x = this.itemPadding();
- const y = this.paramY(i);
- this.drawItem(x, y, 2 + i);
- }
- };
- Window_EquipStatus.prototype.drawItem = function(x, y, paramId) {
- const paramX = this.paramX();
- const paramWidth = this.paramWidth();
- const rightArrowWidth = this.rightArrowWidth();
- this.drawParamName(x, y, paramId);
- if (this._actor) {
- this.drawCurrentParam(paramX, y, paramId);
- }
- this.drawRightArrow(paramX + paramWidth, y);
- if (this._tempActor) {
- this.drawNewParam(paramX + paramWidth + rightArrowWidth, y, paramId);
- }
- };
- Window_EquipStatus.prototype.drawParamName = function(x, y, paramId) {
- const width = this.paramX() - this.itemPadding() * 2;
- this.changeTextColor(ColorManager.systemColor());
- this.drawText(TextManager.param(paramId), x, y, width);
- };
- Window_EquipStatus.prototype.drawCurrentParam = function(x, y, paramId) {
- const paramWidth = this.paramWidth();
- this.resetTextColor();
- this.drawText(this._actor.param(paramId), x, y, paramWidth, "right");
- };
- Window_EquipStatus.prototype.drawRightArrow = function(x, y) {
- const rightArrowWidth = this.rightArrowWidth();
- this.changeTextColor(ColorManager.systemColor());
- this.drawText("\u2192", x, y, rightArrowWidth, "center");
- };
- Window_EquipStatus.prototype.drawNewParam = function(x, y, paramId) {
- const paramWidth = this.paramWidth();
- const newValue = this._tempActor.param(paramId);
- const diffvalue = newValue - this._actor.param(paramId);
- this.changeTextColor(ColorManager.paramchangeTextColor(diffvalue));
- this.drawText(newValue, x, y, paramWidth, "right");
- };
- Window_EquipStatus.prototype.rightArrowWidth = function() {
- return 32;
- };
- Window_EquipStatus.prototype.paramWidth = function() {
- return 48; // 这里很可疑
- };
- Window_EquipStatus.prototype.paramX = function() {
- const itemPadding = this.itemPadding();
- const rightArrowWidth = this.rightArrowWidth();
- const paramWidth = this.paramWidth();
- return this.innerWidth - itemPadding - paramWidth * 2 - rightArrowWidth;
- };
- Window_EquipStatus.prototype.paramY = function(index) {
- const faceHeight = ImageManager.standardFaceHeight;
- return faceHeight + Math.floor(this.lineHeight() * (index + 1.5));
- };
复制代码 |
|