| 
 
| 赞 | 3 |  
| VIP | 0 |  
| 好人卡 | 0 |  
| 积分 | 23 |  
| 经验 | 2892 |  
| 最后登录 | 2025-3-19 |  
| 在线时间 | 275 小时 |  
 Lv3.寻梦者 
	梦石0 星屑2338 在线时间275 小时注册时间2017-7-25帖子163 | 
| 
本帖最后由 骷髅岛遗老 于 2020-11-8 14:10 编辑
x
加入我们,或者,欢迎回来。您需要 登录 才可以下载或查看,没有帐号?注册会员  
 
  用了一个修改物品图标的脚本: 
 复制代码class RPG::BaseItem
  #--------------------------------------------------------------------------
  # ● 获取图标
  #--------------------------------------------------------------------------
  def get_icon
    self.note.split(/[\r\n]+/).each { |line|
      return $1 if line =~ /<ICON:(\S+)>/i
    }
    return nil
  end
  #--------------------------------------------------------------------------
  # ● 图标 index
  #--------------------------------------------------------------------------
  alias vip_20140928_icon_index icon_index
  def icon_index
    return get_icon if get_icon
    return vip_20140928_icon_index
  end
end
class Window_Base
  #--------------------------------------------------------------------------
  # ● 绘制图标
  #--------------------------------------------------------------------------
  alias vip_20140928_draw_icon draw_icon
  def draw_icon(icon_index, x, y, enabled = true)
    if icon_index.is_a?(Integer)
      vip_20140928_draw_icon(icon_index, x, y, enabled)
    else
      bitmap = Cache.load_bitmap("Graphics/Icons/", icon_index)
      rect = Rect.new( 0, 0, 50, 50)
      contents.blt(x, y, bitmap, rect, enabled ? 255 : translucent_alpha)
    end
  end
end
但是发现一旦东西多了在物品栏里就会:
 
   感觉似乎把行间距同步改大一点就能解决了,但是改了脚本以后发现所有的文字间距都变得非常巨大
   所以求教一下如何精准修改物品/装备/技能栏的行间距,如果能在这个脚本里面改就更感激不尽了……
 | 
 |