查看: 4445|回复: 2

[有事请教] YEP物品核心的一个小问题

[复制链接]
梦石
0
星屑
1623
在线时间
253 小时
注册时间
2020-1-24
回帖
35
发表于 2020-4-8 03:31:09 | 显示全部楼层 |阅读模式
悬赏50星屑未解决
问题1.jpg
如图,修改了每排显示的数量后,字体变得不正常,修改哪段代码可以修改正常啊,还有就是怎么把显示数量前面 的那个X去掉。

头像被屏蔽
梦石
0
星屑
16944
在线时间
33 小时
注册时间
2020-5-15
回帖
25
发表于 2020-5-15 20:18:31 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复

使用道具 举报

梦石
0
星屑
4092
在线时间
302 小时
注册时间
2019-4-23
回帖
185
发表于 2020-5-15 21:06:13 | 显示全部楼层
  1. Window_ItemList.prototype.drawItemCarryNumber = function (item, dx, dy, dw) {
  2.     if (DataManager.isItem(item)) {
  3.         var index = $gameParty.items().indexOf(item);
  4.     } else if (DataManager.isWeapon(item)) {
  5.         var index = $gameParty.weapons().indexOf(item);
  6.     } else if (DataManager.isArmor(item)) {
  7.         var index = $gameParty.armors().indexOf(item);
  8.     }
  9.     if (index < 0) return this.drawEquippedActor(item, dx, dy, dw);
  10.     index += 1;
  11.     var max = $gameParty.getIndependentItemTypeMax(item);
  12.     var fmt = Yanfly.Param.ItemCarryFmt;
  13.     var text = fmt.format(Yanfly.Util.toGroup(index), Yanfly.Util.toGroup(max));
  14.     if (Yanfly.Param.ItemQuantitySize) {
  15.         this.contents.fontSize = Yanfly.Param.ItemQuantitySize;
  16.     }
  17.     if (index > max) {
  18.         this.changeTextColor(this.powerDownColor());
  19.     } else if (index === max) {
  20.         this.changeTextColor(this.crisisColor());
  21.     } else {
  22.         this.changeTextColor(this.normalColor());
  23.     }
  24.     this.drawText(text, dx, dy, dw, 'right');
  25.     this.resetFontSettings();
  26. };
复制代码


1705行的代码吧
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册会员

本版积分规则

Powered by Discuz! X5.0 © 2001-2026 Discuz! Team.

在本版发帖返回顶部