Skip to content

Instantly share code, notes, and snippets.

@triacontane
Last active October 8, 2023 14:27
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/a64afa3f6cf1d4464d31267be768d4d2 to your computer and use it in GitHub Desktop.
Save triacontane/a64afa3f6cf1d4464d31267be768d4d2 to your computer and use it in GitHub Desktop.
オプションウィンドウの横幅を自由に変更する。(RPGツクールMV)
/*:
* @plugindesc オプション画面のウィンドウの横幅を変更するプラグイン
* @author ChatGPT
*
* @param Window Width
* @desc オプション画面のウィンドウの横幅
* @type number
* @default 400
*
* @help
* このプラグインを使うと、オプション画面のウィンドウの横幅を
* プラグインのパラメータで指定した値に変更できます。
*/
(function() {
var parameters = PluginManager.parameters('OptionWindowWidth');
var windowWidth = Number(parameters['Window Width'] || 400);
Window_Options.prototype.windowWidth = function() {
return windowWidth;
};
})();
@triacontane
Copy link
Author

ChatGPTが作りました。

image

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