def initialize
super(0, 308, 621, 150)
self.contents = Bitmap.new(width-32, height-32)
self.contents.font.name = 'Arial'
self.contents.font.size = 24
refresh
end
def refresh
self.contents.clear
if $variable * 53 != @@password
refresh_3
else
refresh_2
end
end
def refresh_2
self.contents.clear
self.contents.font.color = text_color(6)
self.contents.draw_text(0, 0, 400, 32, 'Thank you, the gate is now open.')
end
def refresh_3
self.contents.clear
self.contents.font.color = text_color(6)
self.contents.draw_text(0, 0, 400, 32, 'Im sorry but those credentials arent')
self.contents.draw_text(0, 25, 400, 32, 'valid, please come back and try again')
self.contents.draw_text(0, 50, 400, 32, 'in a moment when the screen refreshes.')
end