KY]@]G8VGH_L4DAV3AQ}_(2.png (86.56 KB, 下载次数: 18)
小秋橙 发表于 2025-4-6 12:33
rmmz_windows.js 第 2580 行附近有以下很多函数,可以试着更改其中的一些数字比如那个 return 48;
...
l734273398 发表于 2025-4-6 18:12
完美老哥装备栏那里没问题了,状态栏呢,在那修改呢
//-----------------------------------------------------------------------------
// Window_StatusParams
//
// The window for displaying parameters on the status screen.
function Window_StatusParams() {
this.initialize(...arguments);
}
Window_StatusParams.prototype = Object.create(Window_StatusBase.prototype);
Window_StatusParams.prototype.constructor = Window_StatusParams;
Window_StatusParams.prototype.initialize = function(rect) {
Window_StatusBase.prototype.initialize.call(this, rect);
this._actor = null;
};
Window_StatusParams.prototype.setActor = function(actor) {
if (this._actor !== actor) {
this._actor = actor;
this.refresh();
}
};
Window_StatusParams.prototype.maxItems = function() {
return 6;
};
Window_StatusParams.prototype.itemHeight = function() {
return this.lineHeight();
};
Window_StatusParams.prototype.drawItem = function(index) {
const rect = this.itemLineRect(index);
const paramId = index + 2;
const name = TextManager.param(paramId);
const value = this._actor.param(paramId);
this.changeTextColor(ColorManager.systemColor());
this.drawText(name, rect.x, rect.y, 160);
this.resetTextColor();
this.drawText(value, rect.x + 160, rect.y, 60, "right"); // 这里的 160 和 60 以及上面的 160 非常可疑
};
Window_StatusParams.prototype.drawItemBackground = function(/*index*/) {
//
};
小秋橙 发表于 2025-4-11 12:12
抱歉让楼主久等了,状态栏中的六项属性相关代码在 rmmz_windows.js 第 2900 行左右。
//---------------- ...
欢迎光临 Project1 (https://rpg.blue/) | Powered by Discuz! X3.1 |