29 lines
981 B
JavaScript
29 lines
981 B
JavaScript
/*:
|
|
* @plugindesc Reduces the skill/item description font size in the battle help window.
|
|
* @author DazedTranslations
|
|
*
|
|
* @param fontSize
|
|
* @text Battle Help Font Size
|
|
* @type number
|
|
* @min 8
|
|
* @max 72
|
|
* @default 20
|
|
* @desc Font size used for the help window description during battle.
|
|
*/
|
|
|
|
(function() {
|
|
'use strict';
|
|
|
|
var parameters = PluginManager.parameters('BattleHelpFontSize');
|
|
var battleHelpFontSize = Number(parameters['fontSize'] || 20);
|
|
|
|
// drawTextEx internally calls resetFontSettings(), so we override that
|
|
// on Window_Help to apply the smaller size whenever we're in battle.
|
|
var _Window_Help_resetFontSettings = Window_Help.prototype.resetFontSettings;
|
|
Window_Help.prototype.resetFontSettings = function() {
|
|
_Window_Help_resetFontSettings.call(this);
|
|
if (SceneManager._scene instanceof Scene_Battle) {
|
|
this.contents.fontSize = battleHelpFontSize;
|
|
}
|
|
};
|
|
})();
|