Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MythUIImage: improve random image selection
We now cache the list of available images and randomise that list. We then iterate over the random list which makes sure we don't re-show an image until every image has been shown once. We then re-randomise the list and start over again.
- Loading branch information
Showing
2 changed files
with
51 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters