- Joined
- Aug 15, 2013
- Messages
- 72
- Reaction score
- 32
- First Language
- English
- Primarily Uses
- RMMV
Hi all,
I'm working through the new MZ codebase, and I figured I'd start from the beginning this time rather than trying to cobble together the advanced stuff first (which I probably should have done from the start when working with MV. Oops).
I've made a new class which inherits from Window_Base. I'm able to get the blank window to show up, but there is also a back button which appears in the top-left hand corner. This back button appears to have no functionality. Does anyone know how to pass it a method, and does anyone know how I may remove this back button, should I need to?

I'm working through the new MZ codebase, and I figured I'd start from the beginning this time rather than trying to cobble together the advanced stuff first (which I probably should have done from the start when working with MV. Oops).
I've made a new class which inherits from Window_Base. I'm able to get the blank window to show up, but there is also a back button which appears in the top-left hand corner. This back button appears to have no functionality. Does anyone know how to pass it a method, and does anyone know how I may remove this back button, should I need to?
JavaScript:
function NP_Window_TestWindow() {
this.initialize.apply(this, arguments);
}
NP_Window_TestWindow.prototype = Object.create(Window_Base.prototype);
NP_Window_TestWindow.prototype.constructor = NP_Window_TestWindow;
NP_Window_TestWindow.prototype.initialize = function(rect, onClose) {
Window_Base.prototype.initialize.call(this, rect);
this._onClose = onClose;
}
NP_Window_TestWindow.prototype.destroy = function(options){
Window_Base.prototype.destroy.call(this, options);
this._onClose.call(this);
}

