public override void Draw(SpriteBatch Batch, GameState state)
        {
            Batch.DrawString(ScreenManager.GetInstance().DefaultMenuFont, "" + _quantity, Position, Color.White);

            _decreaseQuantity.Position = Position + new Vector2(20, 0);

            _decreaseQuantity.Draw(Batch);
            _increaseQuantity.Position = _decreaseQuantity.Position + new Vector2(_decreaseQuantity.BoundingBox.Width + 5, 0);
            _increaseQuantity.Draw(Batch);
        }
Exemple #2
0
        public override void Draw(SpriteBatch Batch, GameState state)
        {
            if (_buyTab != null)
            {
                _buyTab.Draw(Batch);
            }
            if (_sellTab != null)
            {
                _sellTab.Draw(Batch);
            }

            if (_tradeViews.ContainsKey(_currentView))
            {
                _tradeViews[_currentView].Draw(Batch, state);
            }
        }
Exemple #3
0
        public void Draw(GameTime gameTime)
        {
            if (Loading)
            {
                loadingElement.Draw(gameTime, Color.White);
                return;
            }

            foreach (DrawableGameComponent component in UpperMenu.Instance.GetAllComponents())
            {
                component.Draw(gameTime);
            }
            UpperMenu.Instance.root.Draw(gameTime, Color.White);

            toFindDrawable.Draw(gameTime);

            BoardDrawable.Instance.Draw();

            tutorialRoot.Draw(gameTime, Color.White);
        }
Exemple #4
0
 public void Draw(GameTime gameTime)
 {
     root.Draw(gameTime, Color.White);
 }