mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-08-20 09:57:09 +00:00
Only show when full f3 menu is open
This commit is contained in:
parent
b7e78db272
commit
85c321f245
|
|
@ -1178,10 +1178,14 @@ void Gui::render(float a, bool mouseFree, int xMouse, int yMouse)
|
|||
int yPos = debugTop;
|
||||
for (const auto &line : lines)
|
||||
{
|
||||
fill(debugLeft - 1, yPos - 1, debugLeft + font->width(line) + 1, yPos + 8 + 1, 0x80303030, true);
|
||||
if (lines.size() > 5)
|
||||
{
|
||||
fill(debugLeft - 1, yPos - 1, debugLeft + font->width(line) + 1, yPos + 8 + 1, 0x80303030, true);
|
||||
}
|
||||
drawString(font, line, debugLeft, yPos, 0xffffff);
|
||||
yPos += 10;
|
||||
}
|
||||
|
||||
glMatrixMode(GL_MODELVIEW);
|
||||
glPopMatrix();
|
||||
glMatrixMode(GL_PROJECTION);
|
||||
|
|
|
|||
Loading…
Reference in a new issue