赞 | 0 |
VIP | 451 |
好人卡 | 0 |
积分 | 1 |
经验 | 24407 |
最后登录 | 2023-5-13 |
在线时间 | 1563 小时 |
Lv1.梦旅人 kissye的宠物<
- 梦石
- 0
- 星屑
- 61
- 在线时间
- 1563 小时
- 注册时间
- 2008-8-11
- 帖子
- 6174
|
- #--------------------------------------------------------------------------
- # ● 更新画面
- #--------------------------------------------------------------------------
- def update
- super
- @command_window.update
- if Input.trigger?(Input::C)
- case @command_window.index
- when 0 #New game
- command_new_game
- when 1 # Continue
- command_continue
- when 2 # Boss Rush
- command_new_game
- $game_switches[1] = true
- when 3 # 选项
- command_new_game
- $game_switches[2] = true
- end
- end
- end
复制代码
- #--------------------------------------------------------------------------
- # ● 生成命令窗口
- #--------------------------------------------------------------------------
- def create_command_window
- s1 = Vocab::new_game
- s2 = Vocab::continue
- s3 = "Boss Rush"
- s4 = "小游戏"
- @command_window = Window_Command.new(172, [s1, s2, s3, s4])
- @command_window.x = (544 - @command_window.width) / 2
- @command_window.y = 316 - @command_window.height - 20
- if @continue_enabled # 如果「继续」有效
- @command_window.index = 1 # 将光标移至「继续游戏」
- else # 否则则将「继续游戏」半透明化
- @command_window.draw_item(1, false)
- end
- @command_window.openness = 0
- @command_window.open
- end
复制代码
系统信息:本贴获得楼主认可,66RPG感谢您的热情解答~ |
|