Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Window_MenuVariables < Window_Base
- WLH = 20
- def initialize( x, y, width, height )
- super( x, y, width, height )
- refresh()
- end
- def refresh()
- scw = self.contents.width
- self.contents.font.size = Font.default_size - 2
- 10.times { |i|
- self.contents.font.color = system_color
- self.contents.draw_text( 0, i*WLH, scw, WLH, "Stuff")
- self.contents.font.color = normal_color
- self.contents.draw_text( 192, i*WLH, scw, WLH, i)
- }
- end
- end
- class Scene_Menu < Scene_Base
- alias :meh_start :start unless $@
- def start( *args, &block )
- meh_start( *args, &block )
- h = (@command_window.height+@gold_window.height)
- @variable_window = Window_MenuVariables.new(
- @command_window.x, @command_window.y+@command_window.height,
- @command_window.width, Graphics.height-h)
- end
- alias :meh_terminate :terminate unless $@
- def terminate( *args, &block )
- @variable_window.dispose() unless @variable_window.nil?()
- @variable_window = nil
- meh_terminate( *args, &block )
- end
- alias :meh_update :update unless $@
- def update( *args, &block )
- meh_update( *args, &block )
- @variable_window.update()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment