#==============================================================================
# ** Location Window
#------------------------------------------------------------------------------
# Juan
# Version 1.4
# made 10/13/07
# Date last time updated 12/30/07
#==============================================================================
# Any bugs email me
juanpena1111@yahoo.com# Version History
#
# Version 1.0
# -> This script was first made.
# Version 1.1
# -> Fixed font bug
# Version 1.2
# -> Removed * in map name.
# Version 1.3
# -> You can now change the location name.
# Version 1.4
# -> Improed coding
#
# Compatibility:
# This script changes the windows steps window to display the map name. What that means
# is this script will not work on some cms(custom menu systems) if they
# don't use the step window
#
# Features
# Displays the map name.
# Removed the * in map name.
# Less code than other location scripts
#
# Author's Notes
# Any bugs email me
juanpena1111@yahoo.com# Credit me and enjoy.
#
#
#==============================================================================
# ** Window_Location
#------------------------------------------------------------------------------
# This window displays map location on the menu screen.
#==============================================================================
class Window_Location < Window_Base
#--------------------------------------------------------------------------
# * Object Initialization
#--------------------------------------------------------------------------
def initialize
super(0, 0, 160, 96)
self.contents =
Bitmap.new(width - 32, height - 32)
refresh
end
#--------------------------------------------------------------------------
# * Refresh
#--------------------------------------------------------------------------
def refresh
if $fontface != nil
self.contents.font.name = $fontface
elsif $defaultfonttype != nil
self.contents.font.name = $defaultfonttype
end
self.contents.font.size = 21
self.contents.clear
self.contents.font.color = system_color
self.contents.draw_text(4, 0, 80, 32, " ")
self.contents.font.color = normal_color
if $game_
map.name.include?('*')
self.contents.draw_text(4, 32, 120, 32, $game_
map.name.delete!('*'), 2)
else
self.contents.draw_text(4, 32, 120, 32, $game_
map.name, 2)
end
end
end