public void Draw(Rectangle rectTile) { Rectangle rectSpeechText = new Rectangle(rectTile.X + rectTile.Width / 2 - Width / 2, (int)(rectTile.Y + YDisplacement - Height), Width, Height); Primitives.DrawAndFillRoundedRectangle(rectSpeechText.Extend(4, 4), Color.White, Color.Black); Writer.DrawString(Text, rectSpeechText, font: BitmapFontGroup.Mia24Font, alignment: Writer.TextAlignment.Middle); }
public static void DrawTooltipReally() { if (!Tooltip.tooltipExists) { return; } Primitives.DrawAndFillRoundedRectangle( tooltipRect, Color.SandyBrown.Alpha(240), Color.Brown, 1); Writer.DrawString(_tooltipText, tooltipRect.Extend(-4, -4), Color.Black, BitmapFontGroup.Mia24Font); }