Created
January 3, 2021 19:18
-
-
Save cacao-soft/253545e665997b051359bf3a2101df60 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Aボタンで選択中のセーブデータを削除します。 | |
class Scene_File < Scene_MenuBase | |
#-------------------------------------------------------------------------- | |
# ● セーブファイル選択の更新 | |
#-------------------------------------------------------------------------- | |
alias _cao_delsav_update_savefile_selection update_savefile_selection | |
def update_savefile_selection | |
return on_savefile_delete if Input.trigger?(:A) | |
_cao_delsav_update_savefile_selection | |
end | |
#-------------------------------------------------------------------------- | |
# ● セーブファイル[削除] | |
#-------------------------------------------------------------------------- | |
def on_savefile_delete | |
if DataManager.delete_save_file(@index) | |
Sound.play_equip | |
@savefile_windows[@index].refresh | |
else | |
Sound.play_buzzer | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment