Hi Again.
Well, continuing with my Window, I try to use the Method of the MACL to make the window scroll to show all the text, my question is how to use it?. or what i need agree to my window script to make it scrolling
This is the window Script:
class Window_Profesion_Info < Window_Base
PD: This window is on a scene.
Thanks in advance.:thumb:
Well, continuing with my Window, I try to use the Method of the MACL to make the window scroll to show all the text, my question is how to use it?. or what i need agree to my window script to make it scrolling
This is the window Script:
class Window_Profesion_Info < Window_Base
Code:
class Window_Profesion_Info < Window_Base
#--------------------------------------------------------------------------
# * Object Initialization
#--------------------------------------------------------------------------
def initialize
super(0, 0, 480, 200)
self.contents = Bitmap.new(width - 32, height - 32)
@parameters = nil
end
def refresh
self.contents.clear
return if @parameters.nil? or @parameters == []
# Draw Description
self.contents.draw_formatted_text(0, 0, width - 32, 32, @parameters[1])
end
def set_parameters(array)
@parameters = array
refresh
end
end
PD: This window is on a scene.
Thanks in advance.:thumb: