Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

How to make a Scrolling Window.

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
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:
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top