public void addAnimation(int icon, AnimatedLabel anim) { AnimatedLabel animCopy = new AnimatedLabel(); animCopy.SetFrom(anim); animCopy.userData = icon; // reference the icon no. animCopy.X = icons[icon].X; animCopy.Y = icons[icon].Y; StateMain.singleton.Animations.Add(animCopy); anim.Play(); }
public void SpinReel(int reelNo) { if (soundsOn && reelNo == 0) { Sounds.reelSpin.Stop(true); Sounds.reelSpin.Play(false, true); } for (int j = 0; j < 3; j++) { reelSpinning[reelNo, j] = true; var anim = new AnimatedLabel(); anim.SetFrom(animBlur); anim.X = 367 + (207 * reelNo); anim.Y = 90 + (j * 208); Animations.Add(anim); anim.Resest(); anim.Play(); SpinningReelAnims[reelNo, j] = anim; } }