-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMapNameAfterLoad.js
39 lines (36 loc) · 1.16 KB
/
MapNameAfterLoad.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
//=============================================================================
// MapNameAfterLoad.js
//=============================================================================
/*:
* @target MZ
* @plugindesc Shows map name after loading savefile.
* @author Toru Higuruma
* @url https://github.com/neofuji/RPGMZ-Plugins
*
* @help MapNameAfterLoad v1.0 (2020-08-20)
* Copyright (c) 2020 Toru Higuruma
* This plugin is provided under the MIT License.
*
* It does not provide plugin commands.
*/
/*:ja
* @target MZ
* @plugindesc セーブファイルのロード後にマップ名を表示します。
* @author Toru Higuruma
* @url https://github.com/neofuji/RPGMZ-Plugins
*
* @help MapNameAfterLoad v1.0 (2020-08-20)
* Copyright (c) 2020 Toru Higuruma
* このプラグインは MIT License の下で提供されます。
*
* プラグインコマンドはありません。
*/
(() => {
const _Scene_Map_start = Scene_Map.prototype.start;
Scene_Map.prototype.start = function() {
_Scene_Map_start.apply(this, arguments);
if (SceneManager.isPreviousScene(Scene_Load)) {
this._mapNameWindow.open();
}
};
})();