Rewrote Debug menus to store options in self-contained handlers

This commit is contained in:
Maruno17
2020-12-30 01:02:18 +00:00
parent fb29c6b760
commit f4821f212f
10 changed files with 2435 additions and 1788 deletions

View File

@@ -572,9 +572,9 @@ class MapScreenScene
if Input.trigger?(Input::B)
if pbConfirmMessage(_INTL("Save changes?"))
serializeConnectionData
MapFactoryHelper.clear
save_data(@encdata,"Data/encounters.dat")
# TODO: Only need to reload connections and encounter data.
pbClearData
$PokemonTemp.encountersData = nil
pbSaveEncounterData
end
break if pbConfirmMessage(_INTL("Exit from the editor?"))