Skip to content

Instantly share code, notes, and snippets.

@triacontane
Last active May 10, 2022 12:09
Show Gist options
  • Save triacontane/48742824e9228179c72dec0560d107f4 to your computer and use it in GitHub Desktop.
Save triacontane/48742824e9228179c72dec0560d107f4 to your computer and use it in GitHub Desktop.
イベント実行中はコマンドウィンドウを閉じる
/*=============================================================================
(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