feat(gamelist): Add 'Surprise Me!' random game feature #114
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/surprise-me"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This introduces a new "Surprise Me!" button to the game list toolbar, providing a fun way for users to choose a game to play they have within their game directories when they can't decide.
When clicked, a dialog window appears and initiates a slot machine-style animation, rapidly scrolling through the icons of the available games. The animation lands on a randomly selected game, presenting the user with its title.
From the dialog, the user has two options:
Launch the selected game directly.
"Try Again?" to re-roll and get another random suggestion.
The implementation includes:
A new SurpriseMeDialog to manage the feature's UI and logic.
A custom GameReelWidget that uses QPropertyAnimation to create the smooth spinning visual effect.
A new dice icon for the toolbar button.
Logic to gather all games from the list, handle missing icons, and manage the list of remaining games for re-rolls.