查看: 7977|回复: 3

[原创发布] 【插件】选项菜单窗口全屏切换

[复制链接]
梦石
0
星屑
3682
在线时间
4468 小时
注册时间
2008-6-12
回帖
776
发表于 2015-11-24 13:47:16 | 显示全部楼层 |阅读模式

加入我们,或者,欢迎回来。

您需要 登录 才可以下载或查看,没有账号?注册会员

×
效果如下:
窗口全屏.jpg


烦请各位帮忙测试,在手机上全屏是否有效,谢谢!

  1. //=============================================================================
  2. // MrLiu_FullScreenOpition.js
  3. //=============================================================================

  4. /*:
  5. * @plugindesc 在RMMV游戏中的选项菜单显示窗口/全屏切换选项
  6. * @author MrLiu-过眼云烟
  7. *
  8. * @param FullScreen Option
  9. * @desc 选项中显示全屏、窗口模式的切换文字
  10. * @default 窗口/全屏切换
  11. *
  12. */
  13. //-----------------------------------------------------------------------------
  14. var Lmd = Lmd || {};
  15.   var parameters = PluginManager.parameters('MrLiu_FullScreenOpition');//Yanfly.Param.ASP3CameraOption = String(Yanfly.Parameters['Camera Option']);
  16.   var fullScreenOpitionText = String(parameters['FullScreen Option']);


  17. var _Window_Options_addGeneralOptions = Window_Options.prototype.addGeneralOptions;
  18. Window_Options.prototype.addGeneralOptions = function() {
  19.     _Window_Options_addGeneralOptions.call(this);
  20.     this.addCommand(fullScreenOpitionText, 'FullScreen');
  21. };




  22. var _Window_Options_cursorRight = Window_Options.prototype.cursorRight;
  23. Window_Options.prototype.cursorRight = function(wrap) {
  24.         _Window_Options_cursorRight.call(this);
  25.         var index = this.index();
  26.     var symbol = this.commandSymbol(index);
  27.     var value = this.getConfigValue(symbol);
  28.         if (this.isScreenChangeSymbol(symbol)) {
  29.                 Graphics._switchFullScreen();
  30.     }   
  31. };
  32. var _Window_Options_cursorLeft = Window_Options.prototype.cursorLeft;
  33. Window_Options.prototype.cursorLeft = function(wrap) {
  34.         _Window_Options_cursorLeft.call(this);
  35.         var index = this.index();
  36.     var symbol = this.commandSymbol(index);
  37.     var value = this.getConfigValue(symbol);
  38.         if (this.isScreenChangeSymbol(symbol)) {
  39.                 Graphics._switchFullScreen();
  40.     }  
  41. };

  42. Window_Options.prototype.isScreenChangeSymbol = function(symbol) {
  43.     return symbol.contains('FullScreen');
  44. };
复制代码

MrLiu_FullScreenOpition.rar

741 Bytes, 下载次数: 313

评分

参与人数 2梦石 +1 赞 +1 收起 理由
冰冷水藍 + 1 有效,感謝分享!!!
余烬之中 + 1 发布奖励

查看全部评分

本人三无老人,请大神轻拍
梦石
0
星屑
70
在线时间
269 小时
注册时间
2015-9-6
回帖
82
发表于 2015-11-24 19:17:47 | 显示全部楼层
感谢LZ分享,顺便求个标题界面退出游戏功能,全屏退出游戏还得切到桌面用任务管理器结束进程。
Alt+F4能用,不过隐藏的不够直观。
回复

使用道具 举报

梦石
0
星屑
6963
在线时间
1557 小时
注册时间
2011-6-14
回帖
425
发表于 2016-2-6 22:30:49 | 显示全部楼层
额 我手机和电脑都不能全屏
回复

使用道具 举报

梦石
0
星屑
199
在线时间
248 小时
注册时间
2012-4-29
回帖
313
发表于 2016-10-9 20:17:14 | 显示全部楼层
经过测试脚本没效果
你的意思就是要打架咯?
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册会员

本版积分规则

Powered by Discuz! X5.0 © 2001-2026 Discuz! Team.

在本版发帖返回顶部