#==============================================================================
# ** Window_Instructions
#------------------------------------------------------------------------------
# This window shows instructions. Called from Scene_Title.
#==============================================================================
class Window_Instructions < Window_Base
#--------------------------------------------------------------------------
# * Object Initialization
#--------------------------------------------------------------------------
def initialize
super(0, 0, 640, 284)
self.contents = Bitmap.new(width - 32, height - 32)
self.back_opacity = 160
refresh
end
#--------------------------------------------------------------------------
# Refresh
#--------------------------------------------------------------------------
def refresh
text = []
text[0] = "Instructions"
# GUIDE |------------------------------------------------------------------------|
text[1] = "This is some sample text to test the screen width. we can go a lot wider"
text[2] = "More text"
text[3] = "More text"
text[4] = "More text"
text[5] = "More text"
text[6] = "More text"
text[7] = "Last line of text with hanging type to make sure we don't cut off g y p"
# Redraw text
self.contents.clear
self.contents.font.color = normal_color
self.contents.draw_text(4, 0, self.width - 40, 32, text[0], 1)
for i in 1..(text.size - 1)
self.contents.draw_text(4, 32 * i, self.width - 40, 32, text[i], 0)
end
end
end