| 赞 | 0  | 
 
| VIP | 40 | 
 
| 好人卡 | 24 | 
 
| 积分 | 1 | 
 
| 经验 | 23627 | 
 
| 最后登录 | 2020-8-25 | 
 
| 在线时间 | 869 小时 | 
 
 
 
 
 
Lv1.梦旅人 
	- 梦石
 - 0 
 
        - 星屑
 - 55 
 
        - 在线时间
 - 869 小时
 
        - 注册时间
 - 2009-3-13
 
        - 帖子
 - 782
 
 
 
 | 
	
 本帖最后由 认真的学 于 2013-7-22 13:13 编辑  
 
其实非常不推荐这样修改= =因为牵一发而动全身,技能图标、状态图标等等都要修改,窗口大小和行距也要修改= = 
将下面的脚本加入到main前- #==============================================================================
 
 - # ■ Window_Base
 
 - #------------------------------------------------------------------------------
 
 - #  游戏中全部窗口的超级类。
 
 - #==============================================================================
 
  
- class Window_Base < Window
 
 -   #--------------------------------------------------------------------------
 
 -   # ● 常量
 
 -   #--------------------------------------------------------------------------
 
 -   WLH = 64                  # 窗口行高(Window Line Height)
 
 -   #--------------------------------------------------------------------------
 
 -   # ● 绘制图标
 
 -   #     icon_index : 图标号
 
 -   #     x     : 描画目标 X 坐标
 
 -   #     y     : 描画目标 Y 坐标
 
 -   #     enabled    : 有效化标志,为 false 时则图标半透明化。
 
 -   #--------------------------------------------------------------------------
 
 -   def draw_icon(pic, x, y, enabled = true)
 
 -     return if pic == ""
 
 -     bitmap = Bitmap.new("Graphics/Icons/"+pic)
 
 -     rect = Rect.new(0,0,64,64)
 
 -     self.contents.blt(x, y, bitmap, rect, enabled ? 255 : 128)
 
 -   end
 
 -   
 
 -   #--------------------------------------------------------------------------
 
 -   # ● 绘制物品
 
 -   #     item    : 物品(技能、武器、防具也合用)
 
 -   #     x       : 描画目标 X 坐标
 
 -   #     y       : 描画目标 Y 坐标
 
 -   #     enabled : 有效化标志,为 false 时则物品半透明化。
 
 -   #--------------------------------------------------------------------------
 
 -   def draw_item_name(item, x, y, enabled = true)
 
 -     if item != nil
 
 -       draw_icon(get_name(item), x, y, enabled)
 
 -       self.contents.font.color = normal_color
 
 -       self.contents.font.color.alpha = enabled ? 255 : 128
 
 -       self.contents.draw_text(x + 64, y, 172, WLH, item.name)
 
 -     end
 
 -   end
 
 -   
 
 -   #--------------------------------------------------------------------------
 
 -   # ● 获取物品图标文件名
 
 -   #--------------------------------------------------------------------------
 
 -   def get_name(item)
 
 -     regexp = /<icon>(.+?)<\\icon>/
 
 -     regexp =~ item.note
 
 -     return "" if Regexp.last_match == nil
 
 -     return Regexp.last_match[1]
 
 -   end
 
 - end
 
 
  复制代码 在物品的注释中写上<icon>文件名<\icon>,然后把图片文件放入Graphics\Icons下(文件夹自己建一个)就可以了。 
 
不过效果看起来可能比较猎奇= = |   
 
评分
- 
查看全部评分
 
 
 
 
 
 |