-
Notifications
You must be signed in to change notification settings - Fork 0
/
IgnisSkipTitle.js
67 lines (56 loc) · 2 KB
/
IgnisSkipTitle.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
/*:
* @target MZ
* @plugindesc Jumps the Title Screen, this enables the maker to create title screen with events.
* @help You can call the old Title with SceneManager.push(Ignis_Scene_Title)
* @author Reisen (Mauricio Pastana
* @help IgnisSkipTitle.js
*/
//////////////////////////////////////////////////////////////////////////////////////////////////
// SKIP TITLE
//////////////////////////////////////////////////////////////////////////////////////////////////
let reisenEngine_Scene_Title_create = Scene_Title.prototype.create
let reisenEngine_Scene_Title_terminate = Scene_Title.prototype.terminate
let reisenEngine_Scene_Title_isBusy = Scene_Title.prototype.isBusy
let reisenEngine_Scene_Title_start = Scene_Title.prototype.start
//-----------------------------------------------------------------------------
// Scene_Title
//
// The scene class of the title screen.
function Ignis_Scene_Title() {
this.initialize.apply(this, arguments);
}
Ignis_Scene_Title.prototype = Object.create(Scene_Title.prototype);
Ignis_Scene_Title.prototype.constructor = Ignis_Scene_Title;
Scene_Title.prototype.create = function () {
if (this instanceof Ignis_Scene_Title){
reisenEngine_Scene_Title_create.call(this)
}
else {
Scene_Base.prototype.create.call(this)
}
}
Scene_Title.prototype.terminate = function () {
if (this instanceof Ignis_Scene_Title)
reisenEngine_Scene_Title_terminate.call(this)
else {
Scene_Base.prototype.terminate.call(this);
}
}
Scene_Title.prototype.isBusy = function () {
if (this instanceof Ignis_Scene_Title)
return reisenEngine_Scene_Title_isBusy.call(this)
else {
return false
}
};
Scene_Title.prototype.start = function () {
if (this instanceof Ignis_Scene_Title) {
reisenEngine_Scene_Title_start.call(this)
}
else {
Scene_Base.prototype.start.call(this)
SceneManager.clearStack()
DataManager.setupNewGame()
SceneManager.goto(Scene_Map)
}
}