class Scene_GtMenu
# --------------------------------
def initialize(menu_index = 0)
@menu_index = menu_index
end
# --------------------------------
def main
s1 = "动作"
s2 = "冒险"
s3 = "休闲"
s4 = "桌面"
s5 = "RPG"
s6 = "SLG"
s7 = "教育"
s8 = "养成"
s9 = "环保"
s10 = "射击"
s11 = "音乐"
s12 = "模拟"
s13 = "棋牌"
nx = "下一页"
ns = "上一页"
s14 = "体育"
s15 = "竞技"
s16 = "网络游戏"
s17 = "推理"
s18 = "幻想"
if $game_variables[1][16]==1
@command_window = Window_Command.new(160, [ns, s14, s15, s16, s17, s18])
if FileTest.exist?("Makes/Gt014.rxdata")
else
@command_window.disable_item(1)
end
if FileTest.exist?("Makes/Gt015.rxdata")
else
@command_window.disable_item(2)
end
if FileTest.exist?("Makes/Gt016.rxdata")
else
@command_window.disable_item(3)
end
if FileTest.exist?("Makes/Gt017.rxdata")
else
@command_window.disable_item(4)
end
if FileTest.exist?("Makes/Gt018.rxdata")
else
@command_window.disable_item(5)
end
else
@command_window = Window_Command.new(160, [s1, s2, s3, s4,
s5, s6, s7, s8, s9, s10, s11, s12, s13, nx])
if FileTest.exist?("Makes/Gt001.rxdata")
else
@command_window.disable_item(0)
end
if FileTest.exist?("Makes/Gt002.rxdata")
else
@command_window.disable_item(1)
end
if FileTest.exist?("Makes/Gt003.rxdata")
else
@command_window.disable_item(2)
end
if FileTest.exist?("Makes/Gt004.rxdata")
else
@command_window.disable_item(3)
end
if FileTest.exist?("Makes/Gt005.rxdata")
else
@command_window.disable_item(4)
end
if FileTest.exist?("Makes/Gt006.rxdata")
else
@command_window.disable_item(5)
end
if FileTest.exist?("Makes/Gt007.rxdata")
else
@command_window.disable_item(6)
end
if FileTest.exist?("Makes/Gt008.rxdata")
else
@command_window.disable_item(7)
end
if FileTest.exist?("Makes/Gt009.rxdata")
else
@command_window.disable_item(8)
end
if FileTest.exist?("Makes/Gt010.rxdata")
else
@command_window.disable_item(9)
end
if FileTest.exist?("Makes/Gt011.rxdata")
else
@command_window.disable_item(10)
end
if FileTest.exist?("Makes/Gt012.rxdata")
else
@command_window.disable_item(11)
end
if FileTest.exist?("Makes/Gt013.rxdata")
else
@command_window.disable_item(12)
end
end
@command_window.index = @menu_index
Graphics.transition
loop do
Graphics.update
Input.update
update
if $scene != self
break
end
end
Graphics.freeze
@command_window.dispose
end
# --------------------------------
def update
@command_window.update
if @command_window.active
update_command
return
end
end
# --------------------------------
def update_command
if Input.trigger?(Input::B)
$game_system.se_play($data_system.cancel_se)
$scene = Scene_MGMenu.new(0)
return
end
if Input.trigger?(Input::C)
if $game_variables[1][16]==1
if FileTest.exist?("Makes/Gt014.rxdata") and @command_window.index==1
else
$game_system.se_play($data_system.buzzer_se)
return
end
if FileTest.exist?("Makes/Gt015.rxdata") and @command_window.index==2
else
$game_system.se_play($data_system.buzzer_se)
return
end
if FileTest.exist?("Makes/Gt016.rxdata") and @command_window.index==3
else
$game_system.se_play($data_system.buzzer_se)
return
end
if FileTest.exist?("Makes/Gt017.rxdata") and @command_window.index==4
else
$game_system.se_play($data_system.buzzer_se)
return
end
if FileTest.exist?("Makes/Gt018.rxdata") and @command_window.index==5
else
$game_system.se_play($data_system.buzzer_se)
return
end
else
if FileTest.exist?("Makes/Gt001.rxdata") and @command_window.index==0
else
$game_system.se_play($data_system.buzzer_se)
return
end
if FileTest.exist?("Makes/Gt002.rxdata") and @command_window.index==1
else
$game_system.se_play($data_system.buzzer_se)
return
end
if FileTest.exist?("Makes/Gt003.rxdata") and @command_window.index==2
else
$game_system.se_play($data_system.buzzer_se)
return
end
if FileTest.exist?("Makes/Gt004.rxdata") and @command_window.index==3
else
$game_system.se_play($data_system.buzzer_se)
return
end
if FileTest.exist?("Makes/Gt005.rxdata") and @command_window.index==4
else
$game_system.se_play($data_system.buzzer_se)
return
end
if FileTest.exist?("Makes/Gt006.rxdata") and @command_window.index==5
else
$game_system.se_play($data_system.buzzer_se)
return
end
if FileTest.exist?("Makes/Gt007.rxdata") and @command_window.index==6
else
$game_system.se_play($data_system.buzzer_se)
return
end
if FileTest.exist?("Makes/Gt008.rxdata") and @command_window.index==7
else
$game_system.se_play($data_system.buzzer_se)
return
end
if FileTest.exist?("Makes/Gt009.rxdata") and @command_window.index==8
else
$game_system.se_play($data_system.buzzer_se)
return
end
if FileTest.exist?("Makes/Gt010.rxdata") and @command_window.index==9
else
$game_system.se_play($data_system.buzzer_se)
return
end
if FileTest.exist?("Makes/Gt011.rxdata") and @command_window.index==10
else
$game_system.se_play($data_system.buzzer_se)
return
end
if FileTest.exist?("Makes/Gt012.rxdata") and @command_window.index==11
else
$game_system.se_play($data_system.buzzer_se)
return
end
if FileTest.exist?("Makes/Gt013.rxdata") and @command_window.index==12
else
$game_system.se_play($data_system.buzzer_se)
return
end
end
case @command_window.index
when 0
if $game_variables[1][16]==1
$game_variables[1][16]=0
$game_system.se_play($data_system.cancel_se)
$scene = Scene_GtMenu.new(0)
else
$game_variables[6][1]="动作"
$game_system.se_play($data_system.cancel_se)
$scene = Scene_MGMenu.new(0)
return
end
when 1
if $game_variables[1][16]==1
$game_variables[6][1]="体育"
$game_system.se_play($data_system.cancel_se)
$scene = Scene_MGMenu.new(0)
return
else
$game_variables[6][1]="冒险"
$game_system.se_play($data_system.cancel_se)
$scene = Scene_MGMenu.new(0)
return
end
when 2
if $game_variables[1][16]==1
$game_variables[6][1]="竞技"
$game_system.se_play($data_system.cancel_se)
$scene = Scene_MGMenu.new(0)
return
else
$game_variables[6][1]="休闲"
$game_system.se_play($data_system.cancel_se)
$scene = Scene_MGMenu.new(0)
return
end
when 3
if $game_variables[1][16]==1
$game_variables[6][1]="网络游戏"
$game_system.se_play($data_system.cancel_se)
$scene = Scene_MGMenu.new(0)
return
else
$game_variables[6][1]="桌面"
$game_system.se_play($data_system.cancel_se)
$scene = Scene_MGMenu.new(0)
return
end
when 4
if $game_variables[1][16]==1
$game_variables[6][1]="推理"
$game_system.se_play($data_system.cancel_se)
$scene = Scene_MGMenu.new(0)
return
else
$game_variables[6][1]="RPG"
$game_system.se_play($data_system.cancel_se)
$scene = Scene_MGMenu.new(0)
return
end
when 5
if $game_variables[1][16]==1
$game_variables[6][1]="幻想"
$game_system.se_play($data_system.cancel_se)
$scene = Scene_MGMenu.new(0)
return
else
$game_variables[6][1]="SLG"
$game_system.se_play($data_system.cancel_se)
$scene = Scene_MGMenu.new(0)
return
end
when 6
$game_variables[6][1]="教育"
$game_system.se_play($data_system.cancel_se)
$scene = Scene_MGMenu.new(0)
return
when 7
$game_variables[6][1]="养成"
$game_system.se_play($data_system.cancel_se)
$scene = Scene_MGMenu.new(0)
return
when 8
$game_variables[6][1]="环保"
$game_system.se_play($data_system.cancel_se)
$scene = Scene_MGMenu.new(0)
return
when 9
$game_variables[6][1]="射击"
$game_system.se_play($data_system.cancel_se)
$scene = Scene_MGMenu.new(0)
return
when 10
$game_variables[6][1]="音乐"
$game_system.se_play($data_system.cancel_se)
$scene = Scene_MGMenu.new(0)
return
when 11
$game_variables[6][1]="模拟"
$game_system.se_play($data_system.cancel_se)
$scene = Scene_MGMenu.new(0)
return
when 12
$game_variables[6][1]="棋牌"
$game_system.se_play($data_system.cancel_se)
$scene = Scene_MGMenu.new(0)
return
when 13
$game_variables[1][16]=1
$game_system.se_play($data_system.cancel_se)
$scene = Scene_GtMenu.new(0)
end
return
end
end
# --------------------------------
def update_status
if Input.trigger?(Input::B)
$game_system.se_play($data_system.cancel_se)
$scene = Scene_MGMenu.new(0)
return
end
if Input.trigger?(Input::C)
case @command_window.index
when 0
end
return
end
end
end