Window_ShopStatus下。 # 描绘能力值变化 if change > 0 self.contents.font.color = Color.new(120, 255, 120, 255)#绿 elsif change < 0 self.contents.font.color = Color.new(255, 120, 120, 255)#红 else self.contents.font.color = normal_color #白 end self.contents.draw_text(124, 64 + 64 * i, 112, 32, sprintf("%+d", change), 2) end # 描绘物品 if item1 != nil x = 4 y = 64 + 64 * i + 32 bitmap = RPG::Cache.icon(item1.icon_name) opacity = self.contents.font.color == normal_color ? 255 : 128 self.contents.blt(x, y + 4, bitmap, Rect.new(0, 0, 24, 24), opacity) self.contents.font.color = normal_color #没有这一句的话,【铁剑】的文字也会一起变色。 self.contents.draw_text(x + 28, y, 212, 32, item1.name) |
站长信箱:[email protected]|手机版|小黑屋|无图版|Project1游戏制作
GMT+8, 2025-1-8 11:43
Powered by Discuz! X3.1
© 2001-2013 Comsenz Inc.