查看: 4064|回复: 2

[有事请教] 请问如何删除主菜单的【设置】选项。

[复制链接]
梦石
0
星屑
2097
在线时间
271 小时
注册时间
2020-2-27
回帖
20
发表于 2020-3-22 02:12:48 | 显示全部楼层 |阅读模式

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

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

×
如题,我不需要这个选项...请问有没有大佬有办法删除这个选项?
梦石
0
星屑
7801
在线时间
683 小时
注册时间
2012-7-29
回帖
172
发表于 2020-3-22 08:46:49 | 显示全部楼层
以文本形式打开\js\rpg_windows.js,在大概1590行的位置找到这样一堆代码:
  1. Window_MenuCommand.prototype.makeCommandList = function() {
  2.     this.addMainCommands();
  3.     this.addFormationCommand();
  4.     this.addOriginalCommands();
  5.     this.addOptionsCommand();
  6.     this.addSaveCommand();
  7.     this.addGameEndCommand();
  8. };
复制代码

将 this.addOptionsCommand(); 这一行注释掉,【设置】选项就没了。如果注释掉其他的行,其他选项就也没了。
回复 1 0

使用道具 举报

梦石
0
星屑
2097
在线时间
271 小时
注册时间
2020-2-27
回帖
20
 楼主| 发表于 2020-3-22 10:09:36 | 显示全部楼层
开关关 发表于 2020-3-22 08:46
以文本形式打开\js\rpg_windows.js,在大概1590行的位置找到这样一堆代码:

将 this.addOptionsCommand(); ...

神仙!十分感谢!
回复

使用道具 举报

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

本版积分规则

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

在本版发帖返回顶部