Skip to content

Instantly share code, notes, and snippets.

@triacontane
Created October 29, 2021 06:36
Show Gist options
  • Save triacontane/a7d5fbaaac483473d9d92899c685d6ed to your computer and use it in GitHub Desktop.
Save triacontane/a7d5fbaaac483473d9d92899c685d6ed to your computer and use it in GitHub Desktop.
スキル選択時にヘルプウィンドウを再描画
/*:
* @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();
};
})();
@triacontane
Copy link
Author

ヘルプウィンドウの中身は『表示するテキストが変更されない限り再描画されない』仕様になっています。
ここでいう『表示するテキスト』とは制御文字を変換する前の状態のテキストを指します。
つまり、変数の中身が変わっただけでは変更とはみなされず再描画されません。
このプラグイン(Rawボタンでダウンロード)で強制再描画できます。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment