protected void DrawHintAndInput()
{
if (!Paradigm.Config.Gui.InputBarVisibility)
{
return;
}
/* Draw Hint */
if (HintText != null)
{
SharedBrush.Color = new Color(ForegroundColor.R, ForegroundColor.G, ForegroundColor.B, 0.7F);
RenderTarget.DrawText(HintText, InputTextFormat, new RawRectangleF(10, 0, Width - 10, InputBoxHeight / 2),
SharedBrush, D2D1.DrawTextOptions.None);
}
/* Draw user input text */
if (InputTextLayout != null)
{
var rect = HintText == null
? new RawRectangleF(10, 5, Width - 10, InputBoxHeight - 5)
: new RawRectangleF(10, InputBoxHeight / 2, Width - 10, InputBoxHeight);
InputTextLayout.MaxWidth = rect.Right - rect.Left;
InputTextLayout.MaxHeight = rect.Bottom - rect.Top;
InputTextLayout.Draw(_customColorRenderer, rect.Left, rect.Top);
}
/* Draw Input Box Bottom Line */
SharedBrush.Color = ForegroundColor;
RenderTarget.DrawLine(new RawVector2(10, InputBoxHeight + 2), new RawVector2(Width - 10, InputBoxHeight + 2), SharedBrush, 2);
}