示例#1
0
        private void initProgressBar()
        {
            _timeSinceLastQuestion = 0f;
            //_questionId = questionInfo.id;

            Rectangle progressArea = new Rectangle((int)MyGame.ScreenCenter.X - 300, (int)MyGame.ScreenCenter.Y - 300
                , 600, 50);
            //_progressBar = new UIElements.ProgressBar(_UIBack, _UIBack, progressArea);
            _animatedFire = new UIElements.AnimatedTexture(_fireSprite, _fireSprite.Width / 4, _fireSprite.Height, 0.1f, true);
            _animatedFire.Scale = 0.3f;
            _progressBar = new UIElements.AnimatedProgressBar(_animatedFire, _ropeSprite, progressArea);

            MessageDialogBox msgBox = new MessageDialogBox("You should be answering questions on your phone right now",
                new Rectangle(0, 0, 400, 600), _messageStretchImage);
            msgBox.Position = MyGame.ScreenCenter;
            msgBox.Show();

            _currentDialog = msgBox;
        }
 public AnimatedProgressBar(AnimatedTexture barText, Texture2D backgroundText, Rectangle area)
     : base(null, backgroundText, area)
 {
     _barAnim = barText;
 }
 public AnimatedProgressBar(AnimatedTexture barText, Texture2D backgroundText, Rectangle area)
     : base(null, backgroundText, area)
 {
     _barAnim = barText;
 }