设为首页收藏本站|繁體中文

Project1

 找回密码
 注册会员
搜索
查看: 6765|回复: 3
打印 上一主题 下一主题

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

[复制链接]

Lv3.寻梦者

梦石
0
星屑
3657
在线时间
4466 小时
注册时间
2008-6-12
帖子
802
跳转到指定楼层
1
发表于 2015-11-24 13:47:16 | 只看该作者 |只看大图 回帖奖励 |倒序浏览 |阅读模式

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

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

x
效果如下:



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

JAVASCRIPT 代码复制下载
  1. //=============================================================================
  2. // MrLiu_FullScreenOpition.js
  3. //=============================================================================
  4.  
  5. /*:
  6.  * @plugindesc 在RMMV游戏中的选项菜单显示窗口/全屏切换选项
  7.  * @author MrLiu-过眼云烟
  8.  *
  9.  * @param FullScreen Option
  10.  * @desc 选项中显示全屏、窗口模式的切换文字
  11.  * @default 窗口/全屏切换
  12.  *
  13.  */
  14. //-----------------------------------------------------------------------------
  15. var Lmd = Lmd || {};
  16.   var parameters = PluginManager.parameters('MrLiu_FullScreenOpition');//Yanfly.Param.ASP3CameraOption = String(Yanfly.Parameters['Camera Option']);
  17.   var fullScreenOpitionText = String(parameters['FullScreen Option']);
  18.  
  19.  
  20. var _Window_Options_addGeneralOptions = Window_Options.prototype.addGeneralOptions;
  21. Window_Options.prototype.addGeneralOptions = function() {
  22.     _Window_Options_addGeneralOptions.call(this);
  23.     this.addCommand(fullScreenOpitionText, 'FullScreen');
  24. };
  25.  
  26.  
  27.  
  28.  
  29. var _Window_Options_cursorRight = Window_Options.prototype.cursorRight;
  30. Window_Options.prototype.cursorRight = function(wrap) {
  31.         _Window_Options_cursorRight.call(this);
  32.         var index = this.index();
  33.     var symbol = this.commandSymbol(index);
  34.     var value = this.getConfigValue(symbol);
  35.         if (this.isScreenChangeSymbol(symbol)) {
  36.                 Graphics._switchFullScreen();
  37.     }   
  38. };
  39. var _Window_Options_cursorLeft = Window_Options.prototype.cursorLeft;
  40. Window_Options.prototype.cursorLeft = function(wrap) {
  41.         _Window_Options_cursorLeft.call(this);
  42.         var index = this.index();
  43.     var symbol = this.commandSymbol(index);
  44.     var value = this.getConfigValue(symbol);
  45.         if (this.isScreenChangeSymbol(symbol)) {
  46.                 Graphics._switchFullScreen();
  47.     }  
  48. };
  49.  
  50. Window_Options.prototype.isScreenChangeSymbol = function(symbol) {
  51.     return symbol.contains('FullScreen');
  52. };

MrLiu_FullScreenOpition.rar

741 Bytes, 下载次数: 306

评分

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

查看全部评分

本人三无老人,请大神轻拍

Lv1.梦旅人

梦石
0
星屑
70
在线时间
269 小时
注册时间
2015-9-6
帖子
82
2
发表于 2015-11-24 19:17:47 | 只看该作者
感谢LZ分享,顺便求个标题界面退出游戏功能,全屏退出游戏还得切到桌面用任务管理器结束进程。
Alt+F4能用,不过隐藏的不够直观。
回复 支持 反对

使用道具 举报

Lv4.逐梦者

梦石
0
星屑
5692
在线时间
1556 小时
注册时间
2011-6-14
帖子
520
3
发表于 2016-2-6 22:30:49 | 只看该作者
额 我手机和电脑都不能全屏
回复 支持 反对

使用道具 举报

Lv1.梦旅人

梦石
0
星屑
199
在线时间
248 小时
注册时间
2012-4-29
帖子
386
4
发表于 2016-10-9 20:17:14 | 只看该作者
经过测试脚本没效果
你的意思就是要打架咯?
回复 支持 反对

使用道具 举报

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

本版积分规则

拿上你的纸笔,建造一个属于你的梦想世界,加入吧。
 注册会员
找回密码

站长信箱:[email protected]|手机版|小黑屋|无图版|Project1游戏制作

GMT+8, 2024-4-20 09:13

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表