//============================================================================= // KN_VolumeStepCustomize.js //============================================================================= /*: * @target MZ * @plugindesc オプション画面の音量調整幅を変更します * @author Kanata * * @param volumeStep * @text 音量変化量 * @desc オプション画面で音量を調整する際の変化量です。 * @type number * @min 1 * @max 100 * @default 10 * * @help KN_VolumeStepCustomize.js * * オプション画面の音量調整幅をカスタマイズします。 * デフォルトは20ずつですが、このプラグインで変更できます。 * * プラグインパラメータで変化量を設定してください。 */ (() => { 'use strict'; const pluginName = 'KN_VolumeStepCustomize'; const parameters = PluginManager.parameters(pluginName); const volumeStep = Number(parameters['volumeStep'] || 10); // Window_Options.prototype.volumeOffset をオーバーライド Window_Options.prototype.volumeOffset = function() { return volumeStep; }; })();