赞 | 451 |
VIP | 56 |
好人卡 | 75 |
积分 | 423 |
经验 | 124650 |
最后登录 | 2024-11-15 |
在线时间 | 7599 小时 |
Lv5.捕梦者 (管理员) 老黄鸡
- 梦石
- 0
- 星屑
- 42344
- 在线时间
- 7599 小时
- 注册时间
- 2009-7-6
- 帖子
- 13506
|
本帖最后由 fux2 于 2010-12-24 11:06 编辑
插入到Main上方,Scene_Menu下方任意位置- # 喵
- class Scene_Menu < Scene_Base
-
- def create_command_window
- s1 = Vocab::item
- s2 = Vocab::skill
- s3 = Vocab::save
- s4 = Vocab::game_end
- @command_window = Window_Command.new(160, [s1, s2, s3, s4])
- @command_window.index = @menu_index
- if $game_party.members.size == 0 # 如果队伍为空
- @command_window.draw_item(0, false) # 无效化物品选项
- @command_window.draw_item(1, false) # 无效化技能选项
- end
- if $game_system.save_disabled # 如果禁止存档
- @command_window.draw_item(2, 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
- start_actor_selection
- when 2 # 存档
- $scene = Scene_File.new(true, false, false)
- when 3 # 结束游戏
- $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(2)
- end
- end
-
- end
- class Scene_End < Scene_Base
- def return_scene
- $scene = Scene_Menu.new(3)
- end
-
- end
复制代码 |
评分
-
查看全部评分
|