public override void Draw(GameTime gameTime) { _spriteBatch.Begin(); _background.Draw(gameTime, _spriteBatch); foreach (var actor in _actors) { actor.Draw(gameTime, _spriteBatch); } _spriteBatch.End(); if (_conversation.Count > 0) { _spriteBatch.Begin(); _chatBox.Draw(gameTime); _spriteBatch.End(); } else { _battleGUI.Draw(gameTime); } }
public void Draw() { x.Draw(new Transform()); //UI.DrawCentered("Images/MainMenu/background", new Vector2(1600, 900)); //World.DrawRectangle(new Rectangle(0, 0, 1600, 900), Color.FromNonPremultiplied(0, 0, 0, 50)); //UI.DrawCenteredWithOffset("Images/MainMenu/title", new Vector2(0, -140)); //UI.DrawCenteredWithOffset("Images/MainMenu/pressenter", new Vector2(0, 400)); }
public override void Draw(GameTime gameTime, SpriteBatch spriteBatch) { if (isActive) { chatBox.Draw(gameTime, spriteBatch); animatedTexture.Draw(gameTime, spriteBatch); chatBox.DrawText(spriteBatch); } }
public override void Draw(SpriteBatch spriteBatch) { spriteBatch.Draw(hEdgeTexture, topEdgePosition, null, Color.White, 0, Vector2.Zero, 1, SpriteEffects.None, Constants.LD_FRONTLAYER_3); spriteBatch.Draw(hEdgeTexture, bottomEdgePosition, null, Color.White, 0, Vector2.Zero, 1, SpriteEffects.None, Constants.LD_FRONTLAYER_3); spriteBatch.Draw(vEdgeTexture, leftEdgePosition, null, Color.White, 0, Vector2.Zero, 1, SpriteEffects.None, Constants.LD_FRONTLAYER_3); spriteBatch.Draw(vEdgeTexture, midleEdgePosition, null, Color.White, 0, Vector2.Zero, 1, SpriteEffects.None, Constants.LD_FRONTLAYER_3); spriteBatch.Draw(vEdgeTexture, rightEdgePosition, null, Color.White, 0, Vector2.Zero, 1, SpriteEffects.None, Constants.LD_FRONTLAYER_3); if (showTitle) { if (mode == GameScreenMode.TacticsMode) { spriteBatch.DrawString(titleFont, TACTICS_TITLE, tacticsTitlePosition, titleColor, 0, Vector2.Zero, 1, SpriteEffects.None, Constants.LD_FRONTLAYER_0); } else { spriteBatch.DrawString(titleFont, BATTLE_TITLE, battleTitlePosition, titleColor, 0, Vector2.Zero, 1, SpriteEffects.None, Constants.LD_FRONTLAYER_0); } } actionBox.Draw(spriteBatch); mapCursor.Draw(spriteBatch); infoBox.Draw(spriteBatch); chatBox.Draw(spriteBatch); for (int x = camera.Location.X; x < camera.Location.X + Camera.CAMERA_WIDTH; x++) { for (int y = camera.Location.Y; y < camera.Location.Y + Camera.CAMERA_HEIGHT; y++) { if (tileMarks[x, y] != null) { tileMarks[x, y].Draw(spriteBatch); } } } List <Player> players = Controller.GetInstance().GetPlayers(); foreach (Player player in players) { player.Draw(spriteBatch); } camera.Draw(spriteBatch); }
private void DrawDialogue() { if (_isDisplayingOptions) { return; } UI.DrawCenteredWithOffset("Images/UI/dialoguebox", new Vector2(0, 310)); _chatBox.Draw(new Transform(new Vector2(400, 700))); }
public void Draw() { _credits.Draw(); _chatBox.Draw(new Transform2(new Vector2(125, 75), Size2.Zero)); }
public void Draw() { _box.Draw(Transform2.Zero); _chatBox.Draw(_chatBoxTransform); }
public void Draw(Transform2 parentTransform) { _dialogBox.Draw(parentTransform); _chatBox.Draw(parentTransform); _faceImage.Draw(parentTransform); }