Skip to content

Instantly share code, notes, and snippets.

@elleonard
Last active July 24, 2021 20:38
Show Gist options
  • Save elleonard/e28cc7781c3313def08119c9ded9df35 to your computer and use it in GitHub Desktop.
Save elleonard/e28cc7781c3313def08119c9ded9df35 to your computer and use it in GitHub Desktop.
BMSP_StateDisplayExtensionでステートアイコンがリフレッシュされない不具合を修正するパッチ
(function () {
'use strict';
Window_Base.prototype.clearUpdateArea = function () {
this.areaManager.unregisterAll();
};
const _Window_Status_refresh = Window_Status.prototype.refresh;
Window_Status.prototype.refresh = function () {
this.clearUpdateArea();
_Window_Status_refresh.call(this);
};
const _Window_BattleStatus_refresh = Window_BattleStatus.prototype.refresh;
Window_BattleStatus.prototype.refresh = function() {
this.clearUpdateArea();
_Window_BattleStatus_refresh.call(this);
};
const _Window_Selectable_refresh = Window_Selectable.prototype.refresh;
Window_Selectable.prototype.refresh = function() {
this.clearUpdateArea();
_Window_Selectable_refresh.call(this);
};
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment