Created
August 23, 2023 13:25
-
-
Save triacontane/cbf45783a9cb9d668dd8d96d5ed84b18 to your computer and use it in GitHub Desktop.
セーブ画面のウィンドウサイズを変更するためのプラグイン
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*: | |
* @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; | |
}; | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
By ChatGPT