//============================================================================= // MrLiu_FullScreenOpition.js //============================================================================= /*: * @plugindesc 在RMMV游戏中的选项菜单显示窗口/全屏切换选项 * @author MrLiu-过眼云烟 * * @param FullScreen Option * @desc 选项中显示全屏、窗口模式的切换文字 * @default 窗口/全屏切换 * */ //----------------------------------------------------------------------------- var Lmd = Lmd || {}; var parameters = PluginManager.parameters('MrLiu_FullScreenOpition');//Yanfly.Param.ASP3CameraOption = String(Yanfly.Parameters['Camera Option']); var fullScreenOpitionText = String(parameters['FullScreen Option']); var _Window_Options_addGeneralOptions = Window_Options.prototype.addGeneralOptions; Window_Options.prototype.addGeneralOptions = function() { _Window_Options_addGeneralOptions.call(this); this.addCommand(fullScreenOpitionText, 'FullScreen'); }; var _Window_Options_cursorRight = Window_Options.prototype.cursorRight; Window_Options.prototype.cursorRight = function(wrap) { _Window_Options_cursorRight.call(this); var index = this.index(); var symbol = this.commandSymbol(index); var value = this.getConfigValue(symbol); if (this.isScreenChangeSymbol(symbol)) { Graphics._switchFullScreen(); } }; var _Window_Options_cursorLeft = Window_Options.prototype.cursorLeft; Window_Options.prototype.cursorLeft = function(wrap) { _Window_Options_cursorLeft.call(this); var index = this.index(); var symbol = this.commandSymbol(index); var value = this.getConfigValue(symbol); if (this.isScreenChangeSymbol(symbol)) { Graphics._switchFullScreen(); } }; Window_Options.prototype.isScreenChangeSymbol = function(symbol) { return symbol.contains('FullScreen'); };
741 Bytes, 下载次数: 306
欢迎光临 Project1 (https://rpg.blue/) | Powered by Discuz! X3.1 |