Skip to content

Instantly share code, notes, and snippets.

@triacontane
Created August 23, 2023 13:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save triacontane/cbf45783a9cb9d668dd8d96d5ed84b18 to your computer and use it in GitHub Desktop.
Save triacontane/cbf45783a9cb9d668dd8d96d5ed84b18 to your computer and use it in GitHub Desktop.
セーブ画面のウィンドウサイズを変更するためのプラグイン
/*:
* @plugindesc Changes the size of the save window in RPG Maker MZ.
* @author YourName
* @target MZ
*
* @param Window Width
* @desc The width of the save window.
* @type number
* @default 816
*
* @help
* This plugin allows you to change the width of the save window.
* Just change the "Window Width" parameter to your desired size.
*/
(() => {
const parameters = PluginManager.parameters('SaveWindowResize');
const windowWidth = Number(parameters['Window Width'] || 816);
const _Scene_File_create = Scene_File.prototype.create;
Scene_File.prototype.create = function() {
_Scene_File_create.call(this);
this._listWindow.width = windowWidth;
this._listWindow.refresh();
//this._statusWindow.x = this._listWindow.width;
};
})();
@triacontane
Copy link
Author

By ChatGPT
image

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