silver-bullet/js/plugins/Keke_AutoDeveloperTool.js
2024-07-02 14:17:45 -05:00

50 lines
1.5 KiB
JavaScript

//=============================================================================
// Keke_AutoDeveloperTool - 自動でデベロッパーツール
// バージョン: 1.0.1
//=============================================================================
// Copyright (c) 2020 ケケー
// Released under the MIT license
// http://opensource.org/licenses/mit-license.php
//=============================================================================
/*:
* @target MZ
* @plugindesc 自動でデベロッパーツールを開く
* @author ケケー
* @url http://kekeelabo.com
*
*
* 【ver.1.0.1】
* 自動でデベロッパーツールを開く
*
* ● 利用規約 ●
* MITライセンスのもと、自由に使ってくれて大丈夫です
*
*
*
* [ver.1.0.1]
* Automatically open developer tools
*
* ● Terms of Use ●
* Feel free to use it under the MIT license.
*/
(() => {
// 自動でデベロッパーツールを起動
let _SceneManager_initialize = SceneManager.initialize;
SceneManager.initialize = function () {
if (Utils.isNwjs() && Utils.isOptionValid("test")) {
require("nw.gui").Window.get().showDevTools();
}
_SceneManager_initialize.call(this);
};
// ゲーム画面を自動で前面にする
let _Scene_Title_initialize = Scene_Title.prototype.initialize;
Scene_Title.prototype.initialize = function () {
_Scene_Title_initialize.call(this);
if (Utils.isNwjs() && Utils.isOptionValid("test")) {
require("nw.gui").Window.get().focus();
}
};
})();