a simple script that tells you your location in menu
CODE
#======================================================================
========
# Location Window by Dorkfr3sh - E-mail:shamar.sabree@yahoo.com
#------------------------------------------------------------------------------
# Adds a simple location window to the menu.
#------------------------------------------------------------------------------
# http://www.rpgrevolution.com/
#==============================================================================
############
# Scene_Menu #
############
class Scene_Menu
alias location_show_scn_mnu_start start
alias location_show_scn_mnu_terminate terminate
def start
location_show_scn_mnu_start
@mapname_window = Window_Mapname.new(0, 272)
end
def terminate
location_show_scn_mnu_terminate
@mapname_window.dispose
end
end
############
# Game_Map #
############
class Game_Map
attr_reader :map_id
def mpname
$mpname = load_data("Data/MapInfos.rvdata")
$mpname[@map_id].name
end
end
###############
# Window_Time #
###############
class Window_Mapname < Window_Base
def initialize(x, y)
super(x, y, 160, WLH + 64)
refresh
end
def refresh
self.contents.clear
self.contents.font.color = system_color
self.contents.draw_text(4, 0, 120, 32, "Destination:")
draw_icon(153, 100, 2)
self.contents.font.color = normal_color
self.contents.draw_text(4, 28, 120, 32, $game_map.mpname.to_s, 2)
end
end
========
# Location Window by Dorkfr3sh - E-mail:shamar.sabree@yahoo.com
#------------------------------------------------------------------------------
# Adds a simple location window to the menu.
#------------------------------------------------------------------------------
# http://www.rpgrevolution.com/
#==============================================================================
############
# Scene_Menu #
############
class Scene_Menu
alias location_show_scn_mnu_start start
alias location_show_scn_mnu_terminate terminate
def start
location_show_scn_mnu_start
@mapname_window = Window_Mapname.new(0, 272)
end
def terminate
location_show_scn_mnu_terminate
@mapname_window.dispose
end
end
############
# Game_Map #
############
class Game_Map
attr_reader :map_id
def mpname
$mpname = load_data("Data/MapInfos.rvdata")
$mpname[@map_id].name
end
end
###############
# Window_Time #
###############
class Window_Mapname < Window_Base
def initialize(x, y)
super(x, y, 160, WLH + 64)
refresh
end
def refresh
self.contents.clear
self.contents.font.color = system_color
self.contents.draw_text(4, 0, 120, 32, "Destination:")
draw_icon(153, 100, 2)
self.contents.font.color = normal_color
self.contents.draw_text(4, 28, 120, 32, $game_map.mpname.to_s, 2)
end
end
