The Sea King
Member
I need a script that adds the window skin borders to the picture.
#-------------------------------------------------------------------------------
#
# Picture Window - Use to display a picture in a window frame
#
# In an event 'Script' command, enter $pf = Picture_Window.new("Pic_Name")
# Use $pf.dispose to erase the picture
#
# You can also set a different window skin below, or comment the line to
# use the default windowskin
#
# Brew - 11MAR08
#-------------------------------------------------------------------------------
class Picture_Window < Window_Base
def initialize(picture)
super(0, 0, 160, 64)
#---------------------------------------
# Enter your custom windowskin name here
# Or comment this line to use the default
#
self.windowskin = RPG::Cache.windowskin("wstemplate")
#
#---------------------------------------
self.contents = Bitmap.new("Graphics\\Pictures\\" + picture)
self.width = self.contents.width + 32
self.height = self.contents.height + 32
self.x = (640 - self.width) / 2
self.y = (480 - self.height) / 2
end
end
$pf = Picture_Window.new("Pic_Name")
$pf.x = 40
$pf.y = 210