class Scene_File
#--------------------------------------------------------------------------
def initialize(help_text)
@help_text = help_text
end
#--------------------------------------------------------------------------
def main
@savefile_windows = []
for i in 0..7
@savefile_windows.push(Window_SaveFile.new(i, make_filename(i)))
end
@file_index = $game_temp.last_file_index
@savefile_windows[@file_index].selected = true
Graphics.transition
loop do
Graphics.update
Input.update
update
if $scene != self
break
end
end
Graphics.freeze
for i in @savefile_windows
i.dispose
end
end
#--------------------------------------------------------------------------
def update
for i in @savefile_windows
i.update
end
if Input.trigger?(Input::C)
on_decision(make_filename(@file_index))
$game_temp.last_file_index = @file_index
return
end
if Input.trigger?(Input::B)
on_cancel
return
end
if Input.repeat?(Input::DOWN)
if Input.trigger?(Input::DOWN) or @file_index < 7
$game_system.se_play($data_system.cursor_se)
@savefile_windows[@file_index].selected = false
@file_index = (@file_index + 1) % 8
@savefile_windows[@file_index].selected = true
return
end
end
if Input.repeat?(Input::UP)
if Input.trigger?(Input::UP) or @file_index > 0
$game_system.se_play($data_system.cursor_se)
@savefile_windows[@file_index].selected = false
@file_index = (@file_index + 7) % 8
@savefile_windows[@file_index].selected = true
return
end
end
end
#--------------------------------------------------------------------------
def make_filename(file_index)
return "Save#{file_index + 1}.rxdata"
end
end
tracersgta - Nie 16 Sty, 2011 21:02 Dziwna treść skryptu... same &i tu jakaś 5 liczbowa cyfra(albo cyfrowa liczba :P).Ayene - Pon 17 Sty, 2011 07:34 PaKiTos, skrypt przydatny, ale kolejnym razem prosiłabym o usuwanie japońskich komentarzy oraz dostosowanie skryptu do 'standardów' wersji angielskiej.
Skrypt zedytowany.mic2311 - Sob 20 Sie, 2011 07:13 Dzięki za skrypt, dzięki za "FAKTY"