private void DrawSolidConsole(float fraction)
{
int lines = (int) ((float) idE.VirtualScreenHeight * fraction);
if(lines <= 0)
{
return;
}
if(lines > idE.VirtualScreenHeight)
{
lines = idE.VirtualScreenHeight;
}
// draw the background
float y = fraction * idE.VirtualScreenHeight - 2;
if(y < 1.0f)
{
y = 0.0f;
}
else
{
idE.RenderSystem.DrawStretchPicture(0, 0, idE.VirtualScreenWidth, y, 0, 1.0f - _displayFraction, 1, 1, _consoleShader);
}
idE.RenderSystem.Color = idColor.Cyan;
idE.RenderSystem.DrawStretchPicture(0, y, idE.VirtualScreenWidth, 2, 0, 0, 0, 0, _whiteShader);
idE.RenderSystem.Color = idColor.White;
DrawVersion(lines);
DrawText(lines, y);
// draw the input prompt, user text, and cursor if desired
DrawInput();
idE.RenderSystem.Color = idColor.Cyan;
}