def judge
return true if @x != $game_player.x
return true if @y != $game_player.y
return true if @id != $game_map.map_id
return false
end
end
class Scene_Map
alias xy_66rpg_main main
def main
@xy_window = Window_xy.new
@xy_window.x = - 16
@xy_window.y = - 16
xy_66rpg_main
@xy_window.dispose
end
alias xy_66rpg_update update
def update
xy_66rpg_update
@xy_window.visible = false
@xy_window.refresh if @xy_window.judge
else
if $game_switches[41]
@xy_window.visible = true
else
@xy_window.visible = false
end