Window Test

Hello i have problem for this script

/*---------------------------------------------- * Scene_Test *---------------------------------------------*/ function Scene_Test() { this.initialize.apply(this, arguments); } Scene_Test.prototype = Object.create(Scene_MenuBase.prototype); Scene_Test.prototype.constructor = Scene_Test; Scene_Test.prototype.initialize = function(){ Scene_MenuBase.prototype.initialize.call(this); }; Scene_Test.prototype.prepare = function(category) { this._category = category; }; Scene_Test.prototype.create = function(){ Scene_MenuBase.prototype.create.call(this); // Create category window this._categoryWindow = new SceneTest_Category(this._category); this.addWindow(this._categoryWindow); this._activeWindow = 0; }; Scene_Test.prototype.processCancel = function() { Window_Selectable.prototype.processCancel.call(this); }; /*---------------------------------------------- * SceneTest_Category *---------------------------------------------*/ function SceneTest_Category(){ this.initialize.apply(this, arguments); } SceneTest_Category.prototype = Object.create(Window_Base.prototype); SceneTest_Category.prototype.constructor = SceneTest_Category; SceneTest_Category.prototype.initialize = function(category) { this._category = category; Window_Base.prototype.initialize.call(this, 0,0,Graphics.boxWidth, this.fittingHeight(1)); this.refresh(); }; SceneTest_Category.prototype.refresh = function(){ this.drawText('First Test', 0,0,this.contents.width, this.lineHeight(), 'center'); };Whit this script i create a empty window.

now how to close when i press Cancel?

Original thread: https://forums.rpgmakerweb.com/threads/window-test.49441/