赞 | 159 |
VIP | 0 |
好人卡 | 0 |
积分 | 263 |
经验 | 0 |
最后登录 | 2024-11-25 |
在线时间 | 5362 小时 |
Lv5.捕梦者
- 梦石
- 0
- 星屑
- 26318
- 在线时间
- 5362 小时
- 注册时间
- 2016-3-8
- 帖子
- 1656
|
本帖最后由 alexncf125 于 2024-2-27 12:44 编辑
别听楼上乱说了,打开rmmz_windows.js查找以下代码修改,或者另写成一个插件也行
Window_Base.prototype.drawCurrencyValue = function (value, unit, x, y, width) { // const unitWidth = Math.min(80, this.textWidth(unit)); // this.resetTextColor(); // this.drawText(value, x, y, width - unitWidth - 6, "right"); // this.changeTextColor(ColorManager.systemColor()); // this.drawText(unit, x + width - unitWidth, y, unitWidth, "right"); const guan = Math.floor(value / 1000); const wen = value % 1000; const wenWidth = Math.min(80, this.textWidth(String(wen))); const unitWidth = Math.min(80, this.textWidth(unit)); if (guan > 0) { this.resetTextColor(); this.drawText(guan, x, y, width - unitWidth * 2 - wenWidth - 18, "right"); this.changeTextColor(ColorManager.systemColor()); this.drawText("贯", x + width - unitWidth * 2 - wenWidth - 12, y, unitWidth, "right"); }; this.resetTextColor(); this.drawText(wen, x, y, width - unitWidth - 6, "right"); this.changeTextColor(ColorManager.systemColor()); this.drawText(unit, x + width - unitWidth, y, unitWidth, "right"); };
Window_Base.prototype.drawCurrencyValue = function (value, unit, x, y, width) {
// const unitWidth = Math.min(80, this.textWidth(unit));
// this.resetTextColor();
// this.drawText(value, x, y, width - unitWidth - 6, "right");
// this.changeTextColor(ColorManager.systemColor());
// this.drawText(unit, x + width - unitWidth, y, unitWidth, "right");
const guan = Math.floor(value / 1000);
const wen = value % 1000;
const wenWidth = Math.min(80, this.textWidth(String(wen)));
const unitWidth = Math.min(80, this.textWidth(unit));
if (guan > 0) {
this.resetTextColor();
this.drawText(guan, x, y, width - unitWidth * 2 - wenWidth - 18, "right");
this.changeTextColor(ColorManager.systemColor());
this.drawText("贯", x + width - unitWidth * 2 - wenWidth - 12, y, unitWidth, "right");
};
this.resetTextColor();
this.drawText(wen, x, y, width - unitWidth - 6, "right");
this.changeTextColor(ColorManager.systemColor());
this.drawText(unit, x + width - unitWidth, y, unitWidth, "right");
};
|
|