class Window_QuestInfo < Window_Base
def initialize(name, info, location, reward, completed)
super(300, 64, 340, 416)
@name = name
@info = info
self.z = 200
@location = location
@reward = reward
@completed = completed
refresh
end
def refresh
self.contents.clear
self.contents.font.color = system_color
self.contents.draw_text(4, 0, 300, 32, "Quest")
self.contents.draw_text(4, 64, 300, 32, "Description")
self.contents.draw_text(4, 160, 300, 32, "Location")
self.contents.draw_text(4, 256, 300, 32, "Reward")
self.contents.draw_text(4, 320, 300, 32, "Completed")
self.contents.font.color = normal_color
self.contents.draw_text(4, 32, 300, 32, @name)
self.contents.draw_text(4, 96, 300, 32, @info)
self.contents.draw_text(4, 192, 300, 32, @location)
self.contents.draw_text(4, 288, 300, 32, @reward)
self.contents.draw_text(4, 352, 300, 32, @completed)
end
end