|
发表于 2009-11-30 09:08:01
|
显示全部楼层
替换Window_base最下面的那个方法
#--------------------------------------------------------------------------
# ● 描绘物品名
# item : 物品
# x : 描画目标 X 坐标
# y : 描画目标 Y 坐标
#--------------------------------------------------------------------------
def draw_item_name(item, x, y)
if item == nil
return
end
bitmap = RPG::Cache.icon(item.icon_name)
self.contents.blt(x, y + 4, bitmap, Rect.new(0, 0, 24, 24))
unless item.name.split('@')[1]
self.contents.font.color = normal_color
else
self.contents.font.color = text_color(item.name.split('@')[1].to_i)
end
self.contents.draw_text(x + 28, y, 212, 32, item.name.split('@')[0])
end
用的是text_color你可以自己仿照 Window_Base 中的 def text_color 自己做一个 装备的颜色方法
将我上面的text_color 改成你需要的 颜色就可以了 |
|