var _Scene_Menu_start = Scene_Menu.prototype.start; Scene_Menu.prototype.start = function() { _Scene_Menu_start.call(this); this._myWindow = new My_Window(30,100); this.addWindow(this._myWindow); }; var _Scene_Menu_update = Scene_Menu.prototype.update; Scene_Menu.prototype.update = function() { _Scene_Menu_update.call(this); this._myWindow.refresh(); }; function My_Window() { this.initialize.apply(this, arguments); } My_Window.prototype = Object.create(Window_Base.prototype); My_Window.prototype.constructor = My_Window; My_Window.prototype.initialize = function(x, y) { Window_Base.prototype.initialize.call(this, 0, 445, this.windowWidth(), this.windowHeight()); time = $gameSystem.playtime(); this.changeTextColor(this.systemColor()); this.drawText('Play Time',0,0); this.resetTextColor(); this.drawText($gameSystem.playtimeText(),0,35); }; My_Window.prototype.refresh = function(){ if (time != $gameSystem.playtime()){ this.contents.clear(); this.changeTextColor(this.systemColor()); this.drawText('Play Time',0,0); this.resetTextColor(); this.drawText($gameSystem.playtimeText(),0,35);}} My_Window.prototype.windowWidth = function(){ return 240; }; My_Window.prototype.windowHeight = function(){ return this.fittingHeight(2); };