class Window_Base < Window
def opening?
return @opening
end
end
Thank you = D but what i want to know is, how can i access that (window) part.drop that somewhere after Window_Base.Code:class Window_Base < Window def opening? return @opening end end
that variable is defined, by default, but not instanced for use outside of the class.
that should open it for use, read only.
access it by (window).opening?
Thank you = D but what i want to know is, how can i access that (window) part.
For exampe in this case is KeyItem window.
I tried (Window_KeyItem).opening? and Window_KeyItem.opening? but both doesn't work
Does if @opening = false / true not work ?Thank you = D but what i want to know is, how can i access that (window) part.
For exampe in this case is KeyItem window.
I tried (Window_KeyItem).opening? and Window_KeyItem.opening? but both doesn't work
Ah, thank you very much! It's perfect!somewhere in the code there should be a line:
@windowname = Window_KeyItem.new(param, param, .....)
use @windowname.opening?