-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Scene_Options.js
31 lines (25 loc) · 927 Bytes
/
Scene_Options.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
//-----------------------------------------------------------------------------
// Scene_Options
//
// The scene class of the options screen.
function Scene_Options() {
this.initialize.apply(this, arguments);
}
Scene_Options.prototype = Object.create(Scene_MenuBase.prototype);
Scene_Options.prototype.constructor = Scene_Options;
Scene_Options.prototype.initialize = function() {
Scene_MenuBase.prototype.initialize.call(this);
};
Scene_Options.prototype.create = function() {
Scene_MenuBase.prototype.create.call(this);
this.createOptionsWindow();
};
Scene_Options.prototype.terminate = function() {
Scene_MenuBase.prototype.terminate.call(this);
ConfigManager.save();
};
Scene_Options.prototype.createOptionsWindow = function() {
this._optionsWindow = new Window_Options();
this._optionsWindow.setHandler('cancel', this.popScene.bind(this));
this.addWindow(this._optionsWindow);
};