Created
October 29, 2021 06:36
-
-
Save triacontane/a7d5fbaaac483473d9d92899c685d6ed 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
| /*: | |
| * @plugindesc スキル選択時にヘルプウィンドウを再描画 | |
| * @target MZ | |
| */ | |
| (()=> { | |
| const _Scene_Battle_commandSkill = Scene_Battle.prototype.commandSkill; | |
| Scene_Battle.prototype.commandSkill = function() { | |
| _Scene_Battle_commandSkill.apply(this, arguments); | |
| this._helpWindow.refresh(); | |
| }; | |
| const _Scene_Battle_commandItem = Scene_Battle.prototype.commandItem; | |
| Scene_Battle.prototype.commandItem = function() { | |
| _Scene_Battle_commandItem.apply(this, arguments); | |
| this._helpWindow.refresh(); | |
| }; | |
| })(); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ヘルプウィンドウの中身は『表示するテキストが変更されない限り再描画されない』仕様になっています。
ここでいう『表示するテキスト』とは制御文字を変換する前の状態のテキストを指します。
つまり、変数の中身が変わっただけでは変更とはみなされず再描画されません。
このプラグイン(Rawボタンでダウンロード)で強制再描画できます。