dynamic autogen entries

This commit is contained in:
infinitefusion
2024-12-25 14:13:03 -05:00
parent 0a59474542
commit 479cfd07fd
5 changed files with 42 additions and 25 deletions

View File

@@ -111,18 +111,18 @@ class PokemonGameOption_Scene < PokemonOption_Scene
"Automatically download missing custom sprites and Pokédex entries from the internet"
)
#
# generated_entries_option_selected=$PokemonSystem.use_generated_dex_entries ? 1 : 0
# options << EnumOption.new(_INTL("Autogen dex entries"), [_INTL("Off"), _INTL("On")],
# proc { generated_entries_option_selected },
# proc { |value|
# $PokemonSystem.use_generated_dex_entries = value == 1
# },
# [
# "Fusions without a custom Pokédex entry display nothing.",
# "Fusions without a custom Pokédex entry display an auto-generated placeholder."
#
# ]
# )
generated_entries_option_selected=$PokemonSystem.use_generated_dex_entries ? 1 : 0
options << EnumOption.new(_INTL("Autogen dex entries"), [_INTL("Off"), _INTL("On")],
proc { generated_entries_option_selected },
proc { |value|
$PokemonSystem.use_generated_dex_entries = value == 1
},
[
"Fusions without a custom Pokédex entry display nothing.",
"Fusions without a custom Pokédex entry display an auto-generated placeholder."
]
)
if $game_switches && ($game_switches[SWITCH_NEW_GAME_PLUS] || $game_switches[SWITCH_BEAT_THE_LEAGUE]) #beat the league
options <<