class Show_Photo < Sprite
def initialize(viewport = nil)
super(viewport)
@picture_name = ""
end
def show(picture_name)
if @picture_name != picture_name
@picture_name = picture_name
if self.bitmap != nil
self.bitmap.dispose
end
self.bitmap = RPG::Cache.picture(@picture_name)
end
self.opacity = 0
self.ox = self.bitmap.width / 2
self.oy = self.bitmap.height / 2
self.x = 272
self.y = 208
16.times do
self.opacity += 16
Graphics.update
end
end
def fade
16.times do
self.opacity -= 16
Graphics.update
end
end
end
class Show_Photo < Sprite
def initialize(viewport = nil)
super(viewport)
@picture_name = ""
end
def show(picture_name)
if @picture_name != picture_name
@picture_name = picture_name
if self.bitmap != nil
self.bitmap.dispose
end
self.bitmap = RPG::Cache.picture(@picture_name)
end
self.opacity = 0
self.ox = self.bitmap.width / 2
self.oy = self.bitmap.height / 2
self.x = 272
self.y = 208
16.times do
self.opacity += 16
Graphics.update
end
end
def fade
16.times do
self.opacity -= 16
Graphics.update
end
end
end