本帖最后由 alexncf125 于 2020-8-7 21:37 编辑
未测试
class Scene_Save < Scene_File alias old_on_savefile_ok on_savefile_ok def on_savefile_ok if @index == 0 Sound.play_buzzer return else old_on_savefile_ok end end alias old_first_savefile_index first_savefile_index first_savefile_index def first_savefile_index old_first_savefile_index DataManager.last_savefile_index == 0 ? 1 : DataManager.last_savefile_index end alias old_cursor_down cursor_down def cursor_down(wrap) old_cursor_down(wrap) if @index == 0 @index = 1 end ensure_cursor_visible end alias old_cursor_up cursor_up def cursor_up(wrap) old_cursor_up(wrap) if @index == 0 @index = 1 end ensure_cursor_visible end alias old_cursor_pagedown cursor_pagedown def cursor_pagedown old_cursor_pagedown if @index == 0 @index = 1 end end alias old_cursor_pageup cursor_pageup def cursor_pageup old_cursor_pageup if @index == 0 @index = 1 end end end
class Scene_Save < Scene_File
alias old_on_savefile_ok on_savefile_ok
def on_savefile_ok
if @index == 0
Sound.play_buzzer
return
else
old_on_savefile_ok
end
end
alias old_first_savefile_index first_savefile_index first_savefile_index
def first_savefile_index
old_first_savefile_index
DataManager.last_savefile_index == 0 ? 1 : DataManager.last_savefile_index
end
alias old_cursor_down cursor_down
def cursor_down(wrap)
old_cursor_down(wrap)
if @index == 0
@index = 1
end
ensure_cursor_visible
end
alias old_cursor_up cursor_up
def cursor_up(wrap)
old_cursor_up(wrap)
if @index == 0
@index = 1
end
ensure_cursor_visible
end
alias old_cursor_pagedown cursor_pagedown
def cursor_pagedown
old_cursor_pagedown
if @index == 0
@index = 1
end
end
alias old_cursor_pageup cursor_pageup
def cursor_pageup
old_cursor_pageup
if @index == 0
@index = 1
end
end
end
看楼主旧帖,好像对用脚本绘制方面颇有研究,能帮我看看这个么
https://rpg.blue/thread-482783-1-1.html |