I wanted to play with windows, So I built this really basic thing:
class Game_Interpreter
def call_sample
SceneManager.call(Scene_Sample)
end
end
class Sample < Window_Base
def initialize(x, y, width, height)
super
end
end
class Scene_Sample < Scene_MenuBase
def start
super
create_window
end
def create_window
@window = Sample.new(122, 122, 122, 122)
end
end
calling: call_sample will open your window, how ever hitting esc, like on any other window won't close it.....I've seen numerous scripts do this and no one seems to have a dispose method built for their windows. How are they doing it? How are they closing windows when you hit esc?
-- Updated code to show a better example