Skip to main content

Module xp_popup

Module xp_popup 

Source
Expand description

XP reward popup notification.

Displays a centered popup showing XP earned with breakdown of bonuses. Auto-dismisses after 2 seconds. Plays sound effect on mount.

§Props

  • reward - XP breakdown with base, bonuses, and total
  • on_dismiss - Callback when popup closes (auto or click)

§Special Effects

  • Critical hits (random chance) show gold styling and pulsing glow
  • Different sound for critical vs normal XP gain

Re-exports§

pub use XpPopup_completions::Component::XpPopup;

Structs§

XpPopupProps
Properties for the XpPopup component.

Functions§

XpPopup
Props