Hi,
i'm very new to scripting and i reccently made my first window. Here is the script:
class Window_First < Window_Base
#------------------------------------------------#
# Object Initialization #
#------------------------------------------------#
def initialize
super(0, 0, 256, 96)
self.contents = Bitmap.new(width - 32, height - 32)
refresh
end
#------------------------------------------------#
# Refresh #
#------------------------------------------------#
def refresh
self.contents.clear
self.contents.draw_text(0, 0, 256, 32, "Hello, World", 1)
end
end
And my question is, how can you make it so when the person playing the game can remove the window by pressing a button, lets say C? I belive it has something to do with $window.dispose but i can't quite figure it out >.<
Thx.
//Gando