Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void Rotate_RandomSwitch()
- {
- if ((rand.Next(1, _Random) == 1) && (Started) && (MovieIndex.Count > 0)) //1d_Random chance of PlayMovie(); with a 1d4 armour saving roll -dw
- {
- PlayMovie(AdvertList[MovieIndex[MovieIterator]].FileName);
- if (MovieIterator < MovieIndex.Count - 1)
- MovieIterator++;
- else
- {
- MovieIterator = 0;
- LoadDirectory(_Directory);
- }
- }
- if ((Started) && (ImageIndex.Count > 0))
- {
- ShowImage(AdvertList[ImageIndex[ImageIterator]].FileName);
- if (ImageIterator < ImageIndex.Count - 1)
- ImageIterator++;
- else
- {
- ImageIterator = 0;
- LoadDirectory(_Directory);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement