mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-06 06:01:46 +00:00
Bug fixes
This commit is contained in:
@@ -737,6 +737,7 @@ class UI::PokemonStorageVisuals < UI::BaseVisuals
|
||||
ret = UI::PokemonStorageVisualsBox.new(@storage, box_index, @viewport)
|
||||
ret.x = 184
|
||||
ret.y = 18
|
||||
ret.set_visible_proc(@visible_proc)
|
||||
ret.refresh
|
||||
return ret
|
||||
end
|
||||
@@ -832,7 +833,7 @@ class UI::PokemonStorageVisuals < UI::BaseVisuals
|
||||
@sprites[:cursor].quick_swap_mode = (@sub_mode != :none)
|
||||
@visible_proc = nil
|
||||
if @sub_mode == :rearrange_items
|
||||
@visible_proc = proc { |pkmn| pkmn.hasItem? }
|
||||
@visible_proc = proc { |pkmn| pkmn&.hasItem? }
|
||||
end
|
||||
@sprites[:box].set_visible_proc(@visible_proc)
|
||||
@sprites[:party_panel].set_visible_proc(@visible_proc)
|
||||
@@ -2070,8 +2071,8 @@ UIActionHandlers.add(UI::PokemonStorage::SCREEN_ID, :interact_box_name_menu, {
|
||||
UIActionHandlers.add(UI::PokemonStorage::SCREEN_ID, :jump_to_box, {
|
||||
:effect => proc { |screen|
|
||||
new_box = screen.choose_box(_INTL("Jump to which Box?"))
|
||||
next if !new_box || new_box == box
|
||||
(new_box > box) ? screen.visuals.go_to_next_box(new_box) : screen.visuals.go_to_previous_box(new_box)
|
||||
next if !new_box || new_box == screen.box
|
||||
(new_box > screen.box) ? screen.visuals.go_to_next_box(new_box) : screen.visuals.go_to_previous_box(new_box)
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
@@ -487,8 +487,13 @@ module Compiler
|
||||
when Array
|
||||
file.write(enumer[value])
|
||||
when Symbol, String
|
||||
mod = GameData.const_get(enumer.to_sym)
|
||||
if mod
|
||||
file.write(mod.get(value).id.to_s)
|
||||
else
|
||||
mod = Object.const_get(enumer.to_sym)
|
||||
file.write(getConstantName(mod, value))
|
||||
end
|
||||
when Module
|
||||
file.write(getConstantName(enumer, value))
|
||||
when Hash
|
||||
@@ -504,8 +509,12 @@ module Compiler
|
||||
when Array
|
||||
file.write((enumer[value].nil?) ? value : enumer[value])
|
||||
when Symbol, String
|
||||
if mod
|
||||
file.write(mod.get(value).id.to_s)
|
||||
else
|
||||
mod = Object.const_get(enumer.to_sym)
|
||||
file.write(getConstantNameOrValue(mod, value))
|
||||
end
|
||||
when Module
|
||||
file.write(getConstantNameOrValue(enumer, value))
|
||||
when Hash
|
||||
|
||||
Reference in New Issue
Block a user