#==============================================================================
# â–�  Place_Window 
#------------------------------------------------------------------------------
#  To place a window at the top left of the screen showing your location
#   in the game by name, and an icon.
#==============================================================================
class Place_Window < Window_Base  #Uses Window_Base's variables
attr_accessor  :text            #Defines text
attr_accessor  :icon            #Defines which icon to use
def initialize(text, icon)      #Stores the text to print in the variable, "text"
 #Draws a window at position 0,0  with a width of the # of chars in text
 #times 14, and a height of 55
 super(0, 0, text.size*12+32, 55)   
 #Creates a Bitmap viewport without any arrows (removing the -32's shows arrows)
 self.contents = Bitmap.new(width-32, height-32)
 #Sets the font's face to Times New Roman
 self.contents.font.name = "Times New Roman"  
 #Sets the font's size to 20
 self.contents.font.size = 20
 #Sets the opacity of the background of the window to 160
 self.back_opacity=160
 bitmap = RPG:

ache.icon(icon)
 self.contents.blt(x, y, bitmap, Rect.new(0, 0, 24, 24))
 #Draws the text inside the variable, "text" within a viewport with the 
 #dimensions of the number of characters in text times 14, and the 
 #height of 20 pixels tall; all at locaiton 0,0
 self.contents.draw_text(32, 0, text.size*12+32, 20, text)
end
end