mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2026-01-24 23:35:59 +00:00
Outfits migration again
This commit is contained in:
@@ -0,0 +1,59 @@
|
||||
|
||||
#TODO
|
||||
|
||||
# attr_accessor :quicksurf
|
||||
# attr_accessor :level_caps
|
||||
# attr_accessor :battle_type
|
||||
# attr_accessor :download_sprites
|
||||
# attr_accessor :speedup
|
||||
# attr_accessor :speedup_speed
|
||||
# attr_accessor :max_nb_sprites_download
|
||||
# attr_accessor :on_mobile
|
||||
# attr_accessor :type_icons
|
||||
# attr_accessor :use_generated_dex_entries
|
||||
# attr_accessor :use_custom_eggs
|
||||
#
|
||||
#
|
||||
#
|
||||
# #===============================================================================#
|
||||
# # Options menu handlers
|
||||
# #===============================================================================#
|
||||
# MenuHandlers.add(:options_menu, :only_speedup_battles, {
|
||||
# "name" => _INTL("Speed Up Settings"),
|
||||
# "order" => 25,
|
||||
# "type" => EnumOption,
|
||||
# "parameters" => [_INTL("Always"), _INTL("Only Battles")],
|
||||
# "description" => _INTL("Choose which aspect is sped up."),
|
||||
# "get_proc" => proc { next $PokemonSystem.only_speedup_battles },
|
||||
# "set_proc" => proc { |value, scene|
|
||||
# $GameSpeed = 0 if value != $PokemonSystem.only_speedup_battles
|
||||
# $PokemonSystem.only_speedup_battles = value
|
||||
# $CanToggle = value == 0
|
||||
# }
|
||||
# })
|
||||
#
|
||||
# MenuHandlers.add(:options_menu, :speedup_type, {
|
||||
# "name" => _INTL("Speed-up type"),
|
||||
# "order" => 25,
|
||||
# "type" => EnumOption,
|
||||
# "parameters" => [_INTL("Hold"), _INTL("Toggle")],
|
||||
# "description" => _INTL("Pick how you want speed-up to be enabled."),
|
||||
# "get_proc" => proc { next $PokemonSystem.speedup_type },
|
||||
# "set_proc" => proc { |value, scene|
|
||||
# $PokemonSystem.speedup_type = value
|
||||
# }
|
||||
# })
|
||||
#
|
||||
# MenuHandlers.add(:options_menu, :speedup_speed, {
|
||||
# "name" => _INTL("Speed-up speed"),
|
||||
# "order" => 27,
|
||||
# "type" => SliderOption,
|
||||
# "parameters" => [0, 10, 0.5], # [minimum_value, maximum_value, interval]
|
||||
# "description" => _INTL("Sets by how much to speed up the game."),
|
||||
# "get_proc" => proc { next $PokemonSystem.speedup_speed },
|
||||
# "set_proc" => proc { |value, scene|
|
||||
# next if $PokemonSystem.speedup_speed == value
|
||||
# $PokemonSystem.speedup_speed = value
|
||||
# }
|
||||
# })# frozen_string_literal: true
|
||||
#
|
||||
@@ -0,0 +1,31 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class PokemonSystem
|
||||
attr_accessor :quicksurf
|
||||
attr_accessor :level_caps
|
||||
attr_accessor :battle_type
|
||||
attr_accessor :download_sprites
|
||||
attr_accessor :speedup
|
||||
attr_accessor :speedup_speed
|
||||
attr_accessor :max_nb_sprites_download
|
||||
attr_accessor :on_mobile
|
||||
attr_accessor :type_icons
|
||||
attr_accessor :use_generated_dex_entries
|
||||
attr_accessor :use_custom_eggs
|
||||
|
||||
unless method_defined?(:initialize_with_new_options)
|
||||
alias_method :initialize_with_new_options, :initialize
|
||||
|
||||
def initialize
|
||||
initialize_with_new_options
|
||||
@quicksurf = 0
|
||||
@battle_type = 0
|
||||
@download_sprites = 0
|
||||
@max_nb_sprites_download = 5
|
||||
@on_mobile = false
|
||||
@type_icons = true
|
||||
@use_generated_dex_entries = true
|
||||
@use_custom_eggs = true
|
||||
end
|
||||
end
|
||||
end
|
||||
18
Data/Scripts/998_InfiniteFusion/UI/PIF_PauseMenu.rb
Normal file
18
Data/Scripts/998_InfiniteFusion/UI/PIF_PauseMenu.rb
Normal file
@@ -0,0 +1,18 @@
|
||||
MenuHandlers.add(:pause_menu, :outfit, {
|
||||
"name" => _INTL("Outfit"),
|
||||
"order" => 51,
|
||||
"condition" => proc { $player.can_change_outfit },
|
||||
"effect" => proc { |menu|
|
||||
|
||||
pbFadeOutIn do
|
||||
#pbCommonEvent(COMMON_EVENT_OUTFIT)
|
||||
#todo give Favorite outfit (used to be done through common event)
|
||||
changeOutfit()
|
||||
menu.silent_end_screen
|
||||
end
|
||||
next false
|
||||
|
||||
|
||||
}
|
||||
})# frozen_string_literal: true
|
||||
|
||||
Reference in New Issue
Block a user