コード例 #1
0
ファイル: WarRoom.cs プロジェクト: fordream/Conquistador
        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;
        }
コード例 #2
0
 public AnimatedProgressBar(AnimatedTexture barText, Texture2D backgroundText, Rectangle area)
     : base(null, backgroundText, area)
 {
     _barAnim = barText;
 }
コード例 #3
0
 public AnimatedProgressBar(AnimatedTexture barText, Texture2D backgroundText, Rectangle area)
     : base(null, backgroundText, area)
 {
     _barAnim = barText;
 }