mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-06 06:01:46 +00:00
Adds toggle for displaying generated entries or not + fixes issue when cleaning json strings
This commit is contained in:
@@ -111,6 +111,19 @@ 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."
|
||||
|
||||
]
|
||||
)
|
||||
|
||||
if $game_switches && ($game_switches[SWITCH_NEW_GAME_PLUS] || $game_switches[SWITCH_BEAT_THE_LEAGUE]) #beat the league
|
||||
options <<
|
||||
EnumOption.new(_INTL("Battle type"), [_INTL("1v1"), _INTL("2v2"), _INTL("3v3")],
|
||||
@@ -177,6 +190,8 @@ class PokemonGameOption_Scene < PokemonOption_Scene
|
||||
"Display the enemy Pokémon type in battles."
|
||||
)
|
||||
|
||||
|
||||
|
||||
end
|
||||
options << EnumOption.new(_INTL("Screen Size"), [_INTL("S"), _INTL("M"), _INTL("L"), _INTL("XL"), _INTL("Full")],
|
||||
proc { [$PokemonSystem.screensize, 4].min },
|
||||
|
||||
Reference in New Issue
Block a user