def create_savefile_windows
@savefile_windows = []
for i in 0..9
@savefile_windows.push(Window_SaveFile.new(i, make_filename(i)))
end
@item_max = 10
end
def cursor_down(wrap)
if @Index < @item_max - 1 or wrap
@index = (@index + 1 + @item_max) % @item_max
end
for i in 0..9
@savefile_windows.y = (i - @index) * 90 + 56
if @savefile_windows.y < 56
@savefile_windows.opacity = 0
@savefile_windows.contents.clear
else
@savefile_windows.opacity = 255
@savefile_windows.refresh
end
end
end
def cursor_up(wrap)
if @index > 0 or wrap
@index = (@index - 1 + @item_max) % @item_max
end
for i in 0..9
@savefile_windows.y = (i - @index) * 90 + 56
if @savefile_windows.y < 56
@savefile_windows.opacity = 0
@savefile_windows.contents.clear
else
@savefile_windows.opacity = 255
@savefile_windows.refresh
end
end
end