Marcel_Makkink
Member
It's probaly a very easy thing to do but I can't seem to figure it out. Could anyone modify this location window so that if a switch is on it will be visible else it will not. Thanks in advance
class Window_Location < Window_Base
#--------------------------------------------------------------------------
# * Object Initialization
#--------------------------------------------------------------------------
def initialize
super(340, 430, 300, 50)
self.contents = Bitmap.new(width - 32, height - 32)
self.back_opacity = 160
refresh
end
#--------------------------------------------------------------------------
# ? ??????
#--------------------------------------------------------------------------
def refresh
self.contents.clear
self.contents.font.color = normal_color
$data_map_infos = load_data("Data/MapInfos.rxdata")
self.contents.draw_text(0, 0, 260, 17, $data_map_infos[$game_map.map_id].name)
end
end
[\spoiler]
#--------------------------------------------------------------------------
# * Object Initialization
#--------------------------------------------------------------------------
def initialize
super(340, 430, 300, 50)
self.contents = Bitmap.new(width - 32, height - 32)
self.back_opacity = 160
refresh
end
#--------------------------------------------------------------------------
# ? ??????
#--------------------------------------------------------------------------
def refresh
self.contents.clear
self.contents.font.color = normal_color
$data_map_infos = load_data("Data/MapInfos.rxdata")
self.contents.draw_text(0, 0, 260, 17, $data_map_infos[$game_map.map_id].name)
end
end
[\spoiler]