class Window_Information < Window_Base
# Append text lines onto this constant to change the text displayed.
# When adding lines to it don't forget the comma between two elements
# and the closing bracket at the end.
INFORMATION_TEXT = ['First line of text to be displayed',
'Second line of text to be displayed',
'Third line of text to be displayed',
'Fourth line of text to be displayed']
def initialize
super(0,0,640,480) # <- Because we want to cover the whole screen
self.contents = Bitmap.new(width - 32, height - 32)
refresh
end
def refresh
self.contents.clear
x, y = 0, (height / 2) - (INFORMATION_TEXT.size * 32)
for sz_text in INFORMATION_TEXT
self.contents.draw_text( x, y += 32, 640, 32, sz_text, 1 )
end
end
end