IceDragon200

[RUBY]WindowTest (IceD.Edit)

Apr 15th, 2012
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.79 KB | None | 0 0
  1. class Window_Mine < Window_Base
  2.   def initialize
  3.     super(0,0,320,240)
  4.     refresh() # // Not exactly nessacry but looks nicer
  5.   end  
  6.   def refresh()
  7.     actor = $game_actors[1]
  8.     x,y = 5, 50
  9.     draw_actor_face(actor, x, y)
  10.   end
  11. end
  12. class Scene_Mine < Scene_Base
  13.   def start()
  14.     super() # // Empty but still call it
  15.     @my_window = Window_Mine.new()
  16.   end
  17.   def update()
  18.     super() # // Call to have Graphics and Input Update
  19.     #@my_window.update() # // No need to update windows in Ace
  20.     if Input.trigger?(Input::C)
  21.       #$scene = Scene_Map.new # // Only for VX
  22.       SceneManager.goto(Scene_Map) # // Ace way of doing Scene changes
  23.     end
  24.   end
  25.   def terminate()
  26.     super() # // Though the default is empty, be sure to call it
  27.     @my_window.dispose
  28.   end
  29. end
Advertisement
Add Comment
Please, Sign In to add comment