Hi guys i know its a noobish question but how do i gonna call a custom made window from a script event into my game?
Like this sample window script.
Like this sample window script.
class Top_Win < Window_Base
 def initialize
  super(0, 0, 544, 312)
  self.contents = Bitmap.new(width - 32, height - 32)
  refresh
 end
Â
 def refresh
  self.contents.clear
 end
end
Â
class Bot_Win < Window_Base
 def initialize
  super(0, 312, 544, 104)
  self.contents = Bitmap.new(width - 32, height - 32)
  refresh
 end
Â
 def refresh
  self.contents.clear
 end
end
Â
#==============================================================================
# ** Scene_Example
#------------------------------------------------------------------------------
# Â This is just an example scene.
#==============================================================================
Â
class Scene_Example < Scene_Base
 #--------------------------------------------------------------------------
 # * Start processing
 #--------------------------------------------------------------------------
 def start
  super
  create_menu_background
  @some_window1 = Top_Win.new
  @some_window2 = Bot_Win.new
 end
 #--------------------------------------------------------------------------
 # * Termination Processing
 #--------------------------------------------------------------------------
 def terminate
  super
  dispose_menu_background
  @some_window1.dispose
  @some_window2.dispose
 end
 #--------------------------------------------------------------------------
 # * Frame Update
 #--------------------------------------------------------------------------
 def update
  super
  update_menu_background
  @some_window1.update
  @some_window2.update
 end
end
Â
Â
 def initialize
  super(0, 0, 544, 312)
  self.contents = Bitmap.new(width - 32, height - 32)
  refresh
 end
Â
 def refresh
  self.contents.clear
 end
end
Â
class Bot_Win < Window_Base
 def initialize
  super(0, 312, 544, 104)
  self.contents = Bitmap.new(width - 32, height - 32)
  refresh
 end
Â
 def refresh
  self.contents.clear
 end
end
Â
#==============================================================================
# ** Scene_Example
#------------------------------------------------------------------------------
# Â This is just an example scene.
#==============================================================================
Â
class Scene_Example < Scene_Base
 #--------------------------------------------------------------------------
 # * Start processing
 #--------------------------------------------------------------------------
 def start
  super
  create_menu_background
  @some_window1 = Top_Win.new
  @some_window2 = Bot_Win.new
 end
 #--------------------------------------------------------------------------
 # * Termination Processing
 #--------------------------------------------------------------------------
 def terminate
  super
  dispose_menu_background
  @some_window1.dispose
  @some_window2.dispose
 end
 #--------------------------------------------------------------------------
 # * Frame Update
 #--------------------------------------------------------------------------
 def update
  super
  update_menu_background
  @some_window1.update
  @some_window2.update
 end
end
Â
Â