| 赞 | 0 |
| VIP | |
| 好人卡 | |
| 积分 | 3 |
| 经验 | |
| 最后登录 | 2024-7-15 |
| 在线时间 | 45 小时 |
- 梦石
- 0
- 星屑
- 302
- 在线时间
- 45 小时
- 注册时间
- 2017-5-16
- 回帖
- 11
|
加入我们,或者,欢迎回来。
您需要 登录 才可以下载或查看,没有账号?注册会员
×
如题,我的禁止存档失效了
尝试找了很多相关的帖子却解决不了问题
场景是在某个地图/迷宫禁止玩家存档
我设置事件是:
并行处理+禁止存档+打开独立开关A > 事件条件独立开关A
然而在试玩时,在此地图尝试打开菜单却出现了问题(如图):
Window_Command脚本:
[pre lang="ruby"]#==============================================================================
# ■ Window_Command
#------------------------------------------------------------------------------
# 一般的命令选择行窗口。
#==============================================================================
class Window_Command < Window_Selectable
#--------------------------------------------------------------------------
# ● 初始化对像
# width : 窗口的宽
# commands : 命令字符串序列
#--------------------------------------------------------------------------
def initialize(width, commands)
# 由命令的个数计算出窗口的高
super(0, 0, width, commands.size * 32 + 32)
@item_max = commands.size
@commands = commands
self.contents = Bitmap.new(width - 32, @item_max * 32)
refresh
self.index = 0
end
#--------------------------------------------------------------------------
# ● 刷新
#--------------------------------------------------------------------------
def refresh
self.contents.clear
for i in 0...@item_max
draw_item(i, normal_color)
end
end
#--------------------------------------------------------------------------
# ● 描绘项目
# index : 项目编号
# color : 文字色
#--------------------------------------------------------------------------
def draw_item(index, color)
self.contents.font.color = color
rect = Rect.new(4, 32 * index, self.contents.width - 8, 32)
self.contents.fill_rect(rect, Color.new(0, 0, 0, 0))
self.contents.draw_text(rect, @commands[index])
end
#--------------------------------------------------------------------------
# ● 项目无效化
# index : 项目编号
#--------------------------------------------------------------------------
def disable_item(index)
draw_item(index, disabled_color)
end
end
[/pre]
看不懂脚本我也不知道到底是哪出现了问题所以前来跪下求助了QAQ!
希望找到解决方案,谢谢!(跪
第一次发帖,若有什么地方违规的话也请多指教! |
|