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 totalon_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§
- XpPopup
Props - Properties for the
XpPopupcomponent.
Functions§
- XpPopup
- Props