Skip to content

Instantly share code, notes, and snippets.

@triacontane
Last active November 3, 2021 03:47
Show Gist options
  • Save triacontane/c7d0d5d870e1b979d4b267064b9aca4e to your computer and use it in GitHub Desktop.
Save triacontane/c7d0d5d870e1b979d4b267064b9aca4e to your computer and use it in GitHub Desktop.
装備画面を右にずらす
/*:
* @plugindesc 装備画面を右にずらす
* @target MZ
*/
(()=> {
const offsetX = 200;
Scene_Equip.prototype.statusWindowRect = function() {
const wx = offsetX;
const wy = this.mainAreaTop();
const ww = this.statusWidth() - offsetX;
const wh = this.mainAreaHeight();
return new Rectangle(wx, wy, ww, wh);
};
const _Scene_Equip_statusWidth = Scene_Equip.prototype.statusWidth;
Scene_Equip.prototype.statusWidth = function() {
return _Scene_Equip_statusWidth.apply(this, arguments) + offsetX;
};
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment