• Do not use Discord to host any images you post, these links expire quickly! You can learn how to add images to your posts here.
  • Apologies if you've had troubles connecting to the site, you may need a VPN to access it. Staff are also facing issues connecting, so if it's urgent please message Cat on-site or through Discord directly.
  • Hey Guest, staff applications are open! If you are interested in becoming a forum staff member and/or Discord staff member, please apply through this Google Form before April 2! You can also message Cat with any questions.
Voltseon's Pause Menu

Resource Voltseon's Pause Menu 2.2

Bguy7

Pokémon Sol Version Creator
Member
Joined
Jul 1, 2024
Posts
34
I wanted to report a minor glitch I've been experiencing since updating to the current version the other day. It seems that if I open my menu within the first few seconds of starting the game, then the game will pause the party preview sprites will appear, but the rest of the UI will be missing. If you quit from the menu and reopen it, then everything looks fine. If you wait to open the menu a few seconds after starting the game, then everything behaves normally. Not really a massive deal, but I wanted to make sure you were aware of it.
 

Boyspider92

Rookie
Member
Joined
Mar 20, 2025
Posts
1
If you have encountered the same error as me while saving, here is the fix to avoid this issue

[004_VoltseonMenu_Components]


#-------------------------------------------------------------------------------
# New Quesst Message Hud component
#-------------------------------------------------------------------------------
class VPM_NewQuestHud < Component
def initialize
@counter = 0
end

def start_component(viewport, menu)
super(viewport, menu)
@sprites["overlay"] = BitmapSprite.new(Graphics.width / 2, 32, viewport)
@sprites["overlay"].ox = @sprites["overlay"].bitmap.width
@sprites["overlay"].x = Graphics.width
@sprites["overlay"].y = 96
@sprites["overlay"].oy = 32
@base_color = $PokemonSystem.from_current_menu_theme(MENU_TEXTCOLOR, Color.new(248, 248, 248))
@shdw_color = $PokemonSystem.from_current_menu_theme(MENU_TEXTOUTLINE, Color.new(48, 48, 48))
end

def should_draw?
return false if !defined?(hasAnyQuests?)
return false if !$PokemonGlobal
return false if !$PokemonGlobal.respond_to?(:quests)
return $PokemonGlobal.quests.active_quests.any? { |quest| quest.respond_to?(:new) && quest.new }
end

def update
super
return unless @sprites["overlay"]
@counter += 1
if @counter > Graphics.frame_rate / 2
@sprites["overlay"].y += 1 if @counter % (Graphics.frame_rate / 8) == 0
else
@sprites["overlay"].y -= 1 if @counter % (Graphics.frame_rate / 8) == 0
end
@counter = 0 if @counter >= Graphics.frame_rate
end

def refresh
quest_count = $PokemonGlobal.quests.active_quests.count { |quest| quest.respond_to?(:new) && quest.new }
@sprites["overlay"].bitmap.clear
if quest_count > 0
if quest_count == 1
text = _INTL("You have {1} new quest!",quest_count)
else
text = _INTL("You have {1} new quests!",quest_count)
end
pbSetSmallFont(@sprites["overlay"].bitmap)
pbDrawTextPositions(@sprites["overlay"].bitmap, [[text, (Graphics.width / 2) - 8, 12, 1, @base_color, @shdw_color]])
end
end
end
Im completely new to all this. Where exactly would i put this code as i am currently having this exact problem.
 
Back
Top