Example #1
0
 public AchievementDisplay(Game game, AchievementData ad)
 {
     _gamerscore = game.Content.Load <Texture2D>("gfx\\title\\gicon");
     _data       = ad;
     Animation   = new SingleFrameAnimation(ad.Image);
     SetDefaults();
 }
Example #2
0
        public Icon()
        {
            int index = Random.Next(_icons.Length);

            Animation = new SingleFrameAnimation("gfx\\icons\\" + _icons[index]);
            SetDefaults();
            Color = Color.Silver;
        }
Example #3
0
        public GetReady(int scaleTime)
        {
            _scaleTime  = scaleTime;
            _staticText = new SingleFrameAnimation("gfx\\text\\GetReady");

            Animation = _staticText;
            SetDefaults();
            Reset();
        }
Example #4
0
        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();
        }