mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2026-07-22 23:57:01 +00:00
Update 6.8
This commit is contained in:
@@ -3,10 +3,15 @@ def spriteOptionsMenu
|
||||
cmd_manual_update= _INTL("Update sprites manually")
|
||||
cmd_clear_sprite_cache = _INTL("Clear sprite cache")
|
||||
cmd_reset_alt_sprites = _INTL("Reset displayed alt sprites")
|
||||
cmd_export_sprites_preferences = _INTL("Export selected Pokédex sprites")
|
||||
cmd_import_sprites_preferences = _INTL("Import selected Pokédex sprites preferences")
|
||||
cmd_cancel = _INTL("Cancel")
|
||||
commands << cmd_manual_update
|
||||
commands << cmd_clear_sprite_cache
|
||||
commands << cmd_reset_alt_sprites
|
||||
commands << cmd_export_sprites_preferences
|
||||
commands << cmd_import_sprites_preferences
|
||||
|
||||
commands << cmd_cancel
|
||||
|
||||
chosen = optionsMenu(commands)
|
||||
@@ -18,7 +23,7 @@ def spriteOptionsMenu
|
||||
when cmd_reset_alt_sprites
|
||||
confirmed = pbConfirmMessage(_INTL("Reset the chosen alternate sprites set for every Pokémon?"))
|
||||
if confirmed
|
||||
$PokemonGlobal.alt_sprite_substitutions=Hash.new
|
||||
$PokemonSystem.alt_sprite_substitutions=Hash.new
|
||||
pbMessage(_INTL("Alt sprites substitutions have been reset."))
|
||||
end
|
||||
when cmd_clear_sprite_cache
|
||||
@@ -29,5 +34,13 @@ def spriteOptionsMenu
|
||||
spritesLoader.clear_sprites_cache(:BASE)
|
||||
pbMessage(_INTL("The sprites cache was cleared."))
|
||||
end
|
||||
when cmd_export_sprites_preferences
|
||||
pbMessage(_INTL("You can export your selected sprites in the Pokédex to share them to a friend or to transfer them from PIF1 and PIF2."))
|
||||
confirmed = pbConfirmMessage(_INTL("This will generate a file in the Data/sprites folder which you will need to copy to the other game to import. Would you like to proceed?"))
|
||||
if confirmed
|
||||
export_sprites_blacklist
|
||||
end
|
||||
when cmd_import_sprites_preferences
|
||||
import_sprites_blacklist
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user