Пример #1
0
 public void Draw(SpriteBatch b, bool drawShadow = true)
 {
     b.Draw(ModData.Texture, new Rectangle(_textBox.X - 12, _textBox.Y - 12, Sl.Width * 2, Sl.Height * 2), Sl,
            Color.White);
     b.Draw(ModData.Texture,
            new Rectangle(_textBox.X - 12 + Sl.Width * 2, _textBox.Y - 12, _textBox.Width, Sc.Height * 2), Sc,
            Color.White);
     b.Draw(ModData.Texture,
            new Rectangle(_textBox.X - 12 + Sl.Width * 2 + _textBox.Width, _textBox.Y - 12, Sr.Width * 2,
                          Sr.Height * 2), Sr, Color.White);
     _textBox.Draw(b);
 }
Пример #2
0
 public override void draw(SpriteBatch b)
 {
     base.draw(b);
     b.Draw(Game1.fadeToBlackRect, Game1.graphics.GraphicsDevice.Viewport.Bounds, null, Color.Black * 0.75f, 0f, Vector2.Zero, SpriteEffects.None, 0.6f);
     SpriteText.drawStringWithScrollCenteredAt(b, _title, Game1.viewport.Width / 2,
                                               Game1.viewport.Height / 2 - 128, _title);
     Game1.drawDialogueBox(_textBox.X - 32,
                           _textBox.Y - 112 + 10,
                           _textBox.Width + 80,
                           _textBox.Height, false, true);
     _textBox.Draw(b);
     _doneEnterButton.draw(b);
     drawMouse(b);
 }
Пример #3
0
 public override void Draw(SpriteBatch b, int slotX, int slotY)
 {
     _textBox.X = slotX + Bounds.X;
     _textBox.Y = slotY + Bounds.Y;
     base.Draw(b, slotX, slotY);
     b.Draw(TextBoxTexture, new Rectangle(_textBox.X, _textBox.Y, 16, _textBox.Height),
            new Rectangle(0, 0, 16, 48), Color.White);
     b.Draw(TextBoxTexture, new Rectangle(_textBox.X + 16, _textBox.Y, _textBox.Width - 32, _textBox.Height),
            new Rectangle(16, 0, 4, 48), Color.White);
     b.Draw(TextBoxTexture, new Rectangle(_textBox.X + _textBox.Width - 16, _textBox.Y, 16, _textBox.Height),
            new Rectangle(TextBoxTexture.Bounds.Width - 16, 0, 16, 48),
            Color.White);
     _textBox.Draw(b);
 }