设为首页收藏本站|繁體中文

Project1

 找回密码
 注册会员
搜索
查看: 3716|回复: 2

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

[复制链接]

Lv3.寻梦者

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

头像被屏蔽

Lv4.逐梦者 (禁止发言)

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

使用道具 举报

Lv3.寻梦者

梦石
0
星屑
3091
在线时间
276 小时
注册时间
2019-4-23
帖子
202
发表于 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行的代码吧
回复

使用道具 举报

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

本版积分规则

拿上你的纸笔,建造一个属于你的梦想世界,加入吧。
 注册会员
找回密码

站长信箱:[email protected]|手机版|小黑屋|无图版|Project1游戏制作

GMT+8, 2024-3-29 15:30

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表