#==============================================================================
# ■ Window_Base
#==============================================================================
class Window_Base < Window
def draw_item_name(item, x, y, enabled = true)
if item != nil
draw_icon(item.icon_index, x, y, enabled)
if RPG::Weapon
self.contents.font.color = text_color(item.text_color.to_i)
end
if RPG::Armor
self.contents.font.color = text_color(item.text_color.to_i)
end
if RPG::Item
case item.id
when 1
self.contents.font.color = text_color(24)
when 3
self.contents.font.color = text_color(30)
when 4,15,19,36,81,172
self.contents.font.color = text_color(24)
when 5,29,6,38,7,2,107,152..154,174
self.contents.font.color = text_color(6)
when 8..14,16,18,20,39,42,108,122,123,159,175
self.contents.font.color = text_color(30)
when 21,23..28,40,44,45,53,55..64,80,102,103,109,176,201..210
self.contents.font.color = text_color(27)
when 22,31,35,161
self.contents.font.color = text_color(0)
when 30,48..51,105,110,113..115,125..137,162,165
self.contents.font.color = text_color(17)
when 33,37,101,106,158,173
self.contents.font.color = text_color(1)
when 41,111,112
self.contents.font.color = text_color(18)
when 71..77,104,160,177
self.contents.font.color = text_color(2)
end
end
self.contents.font.color.alpha = enabled ? 255 : 128
self.contents.draw_text(x + 24, y, 172, WLH, item.name)
end
end
end
#==============================================================================
# ■ Window_Base
#==============================================================================
class Window_Base < Window
def draw_item_name(item, x, y, enabled = true)
if item != nil
draw_icon(item.icon_index, x, y, enabled)
if RPG::Weapon
self.contents.font.color = text_color(item.text_color.to_i)
end
if RPG::Armor
self.contents.font.color = text_color(item.text_color.to_i)
end
if RPG::Item
case item.id
when 1
self.contents.font.color = text_color(24)
when 3
self.contents.font.color = text_color(30)
when 4,15,19,36,81,172
self.contents.font.color = text_color(24)
when 5,29,6,38,7,2,107,152..154,174
self.contents.font.color = text_color(6)
when 8..14,16,18,20,39,42,108,122,123,159,175
self.contents.font.color = text_color(30)
when 21,23..28,40,44,45,53,55..64,80,102,103,109,176,201..210
self.contents.font.color = text_color(27)
when 22,31,35,161
self.contents.font.color = text_color(0)
when 30,48..51,105,110,113..115,125..137,162,165
self.contents.font.color = text_color(17)
when 33,37,101,106,158,173
self.contents.font.color = text_color(1)
when 41,111,112
self.contents.font.color = text_color(18)
when 71..77,104,160,177
self.contents.font.color = text_color(2)
end
end
self.contents.font.color.alpha = enabled ? 255 : 128
self.contents.draw_text(x + 24, y, 172, WLH, item.name)
end
end
end