Last active
May 10, 2022 12:09
-
-
Save triacontane/48742824e9228179c72dec0560d107f4 to your computer and use it in GitHub Desktop.
イベント実行中はコマンドウィンドウを閉じる
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*============================================================================= | |
(C)2022 Triacontane | |
This software is released under the MIT License. | |
http://opensource.org/licenses/mit-license.php | |
=============================================================================*/ | |
/*: | |
* @plugindesc イベント時のアクターコマンド非表示 | |
* @target MZ | |
* @author トリアコンタン | |
* | |
* @help | |
* イベント時のアクターコマンド非表示 | |
*/ | |
(()=> { | |
const _Scene_Battle_updateInputWindowVisibility = Scene_Battle.prototype.updateInputWindowVisibility; | |
Scene_Battle.prototype.updateInputWindowVisibility = function() { | |
_Scene_Battle_updateInputWindowVisibility.apply(this, arguments); | |
if ($gameTroop.isEventRunning() && $gameVariables.value(1)) { | |
this.closeCommandWindows(); | |
this.hideSubInputWindows(); | |
} | |
}; | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment