赞 | 451 |
VIP | 56 |
好人卡 | 75 |
积分 | 427 |
经验 | 124650 |
最后登录 | 2024-12-22 |
在线时间 | 7616 小时 |
Lv5.捕梦者 (管理员) 老黄鸡
- 梦石
- 0
- 星屑
- 42664
- 在线时间
- 7616 小时
- 注册时间
- 2009-7-6
- 帖子
- 13506
|
插入到Main上方,Scene_Menu下方任意位置- # 喵
- class Scene_Menu < Scene_Base
-
- def create_command_window
- s1 = Vocab::item
- s2 = Vocab::save
- s3 = Vocab::game_end
- @command_window = Window_Command.new(160, [s1, s2, s3])
- @command_window.index = @menu_index
- if $game_party.members.size == 0 # 如果队伍为空
- @command_window.draw_item(0, false) # 无效化物品选项
-
- if $game_system.save_disabled # 如果禁止存档
- @command_window.draw_item(1, false) # 无效化存档选项
- end
- end
- def update_command_selection
- if Input.trigger?(Input::B)
- Sound.play_cancel
- $scene = Scene_Map.new
- elsif Input.trigger?(Input::C)
- if $game_party.members.size == 0 and @command_window.index < 4
- Sound.play_buzzer
- return
- elsif $game_system.save_disabled and @command_window.index == 4
- Sound.play_buzzer
- return
- end
- Sound.play_decision
- case @command_window.index
- when 0 # 物品
- $scene = Scene_Item.new
- when 1 # 存档
- $scene = Scene_File.new(true, false, false)
- when 2 # 结束游戏
- $scene = Scene_End.new
- end
- end
- end
-
- end
- class Scene_File < Scene_Base
-
- def return_scene
- if @from_title
- $scene = Scene_Title.new
- elsif @from_event
- $scene = Scene_Map.new
- else
- $scene = Scene_Menu.new(1)
- end
- end
-
- end
- class Scene_End < Scene_Base
- def return_scene
- $scene = Scene_Menu.new(2)
- end
-
- end
复制代码 |
|