# * Location Window by mewsterus # * To install, just insert this in a descriptive code slot right above Main # * # * This replaces the playtime window. Replace the class method below to # * Window_Steps if you prefer that the step counter window be the one replaced #=============================================================================== # ¦ Window_Playtime #------------------------------------------------------------------------------- # Written by mewsterus; the location window #=============================================================================== class Window_PlayTime < Window_Base #----------------------------------------------------------------------------- # @ Refresh the window #----------------------------------------------------------------------------- def refresh self.contents.clear self.contents.font.color = system_color self.contents.draw_text(4, 0, 120, 32, "Location") self.contents.font.color = normal_color self.contents.draw_text(4, 32, 120, 32, $game_map.name.delete("*").to_s, 2) end end #=============================================================================== # ¦ Game_Map #------------------------------------------------------------------------------- # Written by mewsterus #=============================================================================== class Game_Map #----------------------------------------------------------------------------- # @ Return map name #----------------------------------------------------------------------------- def name $data_map[@map_id] end end #=============================================================================== # ¦ Main #------------------------------------------------------------------------------- # Written by mewsterus #=============================================================================== begin $location_enabled = true $data_map = load_data("Data/MapInfos.rxdata") for key in $data_map.keys $data_map[key] = $data_map[key].name end end