示例#1
0
        public override void draw(SpriteBatch spriteBatch)
        {
            if (_debounceTimer > 0)
            {
                _debounceTimer--;
            }

            Game1.drawDialogueBox(xPositionOnScreen, yPositionOnScreen, width, height, false, true);
            int textPadding = 2 * Game1.pixelZoom;

            Game1.spriteBatch.DrawString(Game1.dialogueFont,
                                         _message.WrapText(Game1.dialogueFont, width - spaceToClearSideBorder * 2),
                                         new Vector2(xPositionOnScreen + spaceToClearSideBorder * 2 + textPadding,
                                                     yPositionOnScreen + spaceToClearTopBorder + textPadding), Game1.textColor);
            upperRightCloseButton?.draw(spriteBatch);
            if (!_buttonsInstantiated)
            {
                InstantiateButtons();
            }
            _okayButton.Draw(spriteBatch);
            _cancelButton.Draw(spriteBatch);
            _okayButton.DrawHoverText(spriteBatch);
            _cancelButton.DrawHoverText(spriteBatch);
            Mouse.DrawCursor(spriteBatch);
        }
示例#2
0
 private void DecorateUi(SpriteBatch spriteBatch)
 {
     if (_drawToggleSwitch)
     {
         _levelTenToggleButton.Draw(spriteBatch);
     }
     DrawPrestigedIndicators(spriteBatch, _drawLeftPrestigedIndicator, _drawRightPrestigedIndicator);
 }
示例#3
0
        public void Draw(GameTime gameTime, SpriteBatch spriteBatch)
        {
            GameManager.Game.GraphicsDevice.Clear(Color.White);
            spriteBatch.Begin();
            spriteBatch.Draw(titleBG, new Rectangle(0, 0, (int)GameManager.Game.ScreenSize.X, (int)GameManager.Game.ScreenSize.Y), Color.White);
            float titleTexX = GameEngine.GameManager.Game.ScreenSize.X / 2 - titleTexture.Width / 2;

            spriteBatch.Draw(titleTexture, new Vector2(titleTexX, 2), Color.White);

            spriteBatch.DrawString(GlobalAssets.Arial24, "Play", new Vector2(GameManager.Game.ScreenSize.X / 2 - GlobalAssets.Arial24.MeasureString("Play").X / 2, 300), Color.White);
            spriteBatch.DrawString(GlobalAssets.Arial24, "COOP (dissabled for now)", new Vector2(GameManager.Game.ScreenSize.X / 2 - GlobalAssets.Arial24.MeasureString("Play").X / 2, 350), Color.White);
            spriteBatch.DrawString(GlobalAssets.Arial24, "Exit", new Vector2(GameManager.Game.ScreenSize.X / 2 - GlobalAssets.Arial24.MeasureString("Exit.").X / 2, 400), Color.White);
            spriteBatch.DrawString(GlobalAssets.Arial24, ">", new Vector2(GameManager.Game.ScreenSize.X / 2 - GlobalAssets.Arial24.MeasureString("######").X / 2, 300 + (50 * SelectedOption)), Color.White);
            buttonSettings.Draw(gameTime, spriteBatch);

            spriteBatch.End();
        }
示例#4
0
        public override void draw(SpriteBatch spriteBatch)
        {
            if (_debounceTimer > 0)
            {
                _debounceTimer--;
            }

            Game1.drawDialogueBox(xPositionOnScreen, yPositionOnScreen, width, height, false, true);
            upperRightCloseButton?.draw(spriteBatch);
            DrawDecorations(spriteBatch);
            DrawMessage(spriteBatch);
            if (!_buttonInstantiated)
            {
                InstantiateButtons();
            }
            _okayButton.Draw(spriteBatch);
            _okayButton.DrawHoverText(spriteBatch);
            Mouse.DrawCursor(spriteBatch);
        }
示例#5
0
 public override void Draw(SpriteBatch spriteBatch)
 {
     PlayButton.Draw(spriteBatch);
 }