Skip to content

Instantly share code, notes, and snippets.

@triacontane
Created February 23, 2022 06:57
Show Gist options
  • Save triacontane/5866914620e8d1afee1f9fe77e3d7cde to your computer and use it in GitHub Desktop.
Save triacontane/5866914620e8d1afee1f9fe77e3d7cde to your computer and use it in GitHub Desktop.
制御文字で使っている変数値が変更されたときにヘルプウィンドウを再描画
/*:
* @plugindesc 制御文字で使っている変数値が変更されたときにヘルプウィンドウを再描画
* @target MZ
*/
(()=> {
const _Window_SkillList_refresh = Window_SkillList.prototype.refresh;
Window_SkillList.prototype.refresh = function () {
_Window_SkillList_refresh.apply(this, arguments);
this._helpWindow.clear();
};
const _Window_ItemList_refresh = Window_ItemList.prototype.refresh;
Window_ItemList.prototype.refresh = function () {
_Window_ItemList_refresh.apply(this, arguments);
this._helpWindow.clear();
};
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment