| 赞 | 164 |
| VIP | |
| 好人卡 | |
| 积分 | 299 |
| 经验 | |
| 最后登录 | 2026-10-1 |
| 在线时间 | 5733 小时 |
- 梦石
- 0
- 星屑
- 29896
- 在线时间
- 5733 小时
- 注册时间
- 2016-3-8
- 回帖
- 1653
|
发表于 2024-2-27 12:29:26
|
显示全部楼层
本帖最后由 alexncf125 于 2024-2-27 12:44 编辑
别听楼上乱说了,打开rmmz_windows.js查找以下代码修改,或者另写成一个插件也行
[pre lang="javascript"]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");
};[/pre] |
|