public AchievementDisplay(Game game, AchievementData ad) { _gamerscore = game.Content.Load <Texture2D>("gfx\\title\\gicon"); _data = ad; Animation = new SingleFrameAnimation(ad.Image); SetDefaults(); }
public Icon() { int index = Random.Next(_icons.Length); Animation = new SingleFrameAnimation("gfx\\icons\\" + _icons[index]); SetDefaults(); Color = Color.Silver; }
public GetReady(int scaleTime) { _scaleTime = scaleTime; _staticText = new SingleFrameAnimation("gfx\\text\\GetReady"); Animation = _staticText; SetDefaults(); Reset(); }
public PauseDialog(Game game) { Animation = new SingleFrameAnimation("gfx\\dialog\\DialogBox_Empty"); _menuItems = new List <OnOffMenuItem> { new OnOffMenuItem { Off = game.Content.Load <Texture2D>("gfx\\dialog\\ResumeBtnOff"), On = game.Content.Load <Texture2D>("gfx\\dialog\\ResumeBtnOn") }, new OnOffMenuItem { Off = game.Content.Load <Texture2D>("gfx\\dialog\\ExitBtnOff"), On = game.Content.Load <Texture2D>("gfx\\dialog\\ExitBtnOn") }, }; SetDefaults(); }