VirusChris
Member
I want to know how to change the code in the RGSS so instead of the box displaying how many steps you've taken, I want it to display the current map you're on when you open up the menu. Can someone tell me what to do please?
#==============================================================================
# ** Window_Location
#---
class Game_Map
def name
load_data("Data/MapInfos.rxdata")[@map_id].name
end
end
class Window_Location < Window_Base
#--------------------------------------------------------------------------
# * Object Initialization
#--------------------------------------------------------------------------
def initialize
super(0, 0, 160, 95)
self.contents = Bitmap.new(width - 32, height - 32)
refresh
end
#--------------------------------------------------------------------------
# * Refresh
#--------------------------------------------------------------------------
def refresh
self.contents.clear
self.contents.font.color = system_color
self.contents.font.bold = true
self.contents.font.size = 20
self.contents.draw_text(4, 0, 120, 32, "Location")
self.contents.font.color = normal_color
self.contents.draw_text(4, 20, 400, 40, $game_map.name.to_s)
end
end
with@steps_window = Window_Steps.new
@steps_window = Window_Location.new