mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-08-20 09:57:09 +00:00
added unused variables because they was important & tested tried and finded best offsets and y adjustments
This commit is contained in:
parent
02dd039e58
commit
6472694cb4
|
|
@ -148,28 +148,41 @@ void ChatScreen::render(int xm, int ym, float a)
|
|||
int barBottomOffset = 2;
|
||||
int textYOffset = 12;
|
||||
int yAdjust = 0;
|
||||
int widthsubtract = 2;
|
||||
|
||||
if (uiSetting == 0)
|
||||
{
|
||||
textScale = textScale * 1.5f;
|
||||
yAdjust = 70;
|
||||
textScale = textScale * 1.25f;
|
||||
barTopOffset = 10;
|
||||
barBottomOffset = 0;
|
||||
textYOffset = 8;
|
||||
yAdjust = 115;
|
||||
widthsubtract = -210;
|
||||
}
|
||||
else if (uiSetting == 1)
|
||||
{
|
||||
textScale = textScale * 1.0f;
|
||||
barTopOffset = 14;
|
||||
barBottomOffset = 2;
|
||||
textYOffset = 12;
|
||||
yAdjust = 0;
|
||||
widthsubtract = 2;
|
||||
}
|
||||
else if (uiSetting == 2)
|
||||
{
|
||||
textScale = textScale * 0.75f;
|
||||
yAdjust = -70;
|
||||
barTopOffset = 18;
|
||||
barBottomOffset = 6;
|
||||
textYOffset = 16;
|
||||
yAdjust = -58;
|
||||
widthsubtract = 110;
|
||||
}
|
||||
|
||||
int barY = height - barTopOffset + yAdjust;
|
||||
int barBottom = height - barBottomOffset + yAdjust;
|
||||
int textY = height - textYOffset + yAdjust;
|
||||
|
||||
fill(2, barY, width - 2, barBottom, 0x80000000);
|
||||
fill(2, barY, width - widthsubtract, barBottom, 0x80000000);
|
||||
|
||||
const wstring prefix = L"> ";
|
||||
int x = 4;
|
||||
|
|
|
|||
|
|
@ -1030,7 +1030,7 @@ void Gui::render(float a, bool mouseFree, int xMouse, int yMouse)
|
|||
glPushMatrix();
|
||||
glTranslatef((float)(iSafezoneXHalf+4), (float)(y), 0);
|
||||
glScalef(textScale, textScale, scaleFactor);
|
||||
font->drawShadowLiteralCustom(msg, 0, 0, 2, 2, 0xffffff + (alpha << 24), 0x000000 + (alpha / 2 << 24));
|
||||
font->drawShadowLiteralCustom(msg, 0, 0, 1, 1, 0xffffff + (alpha << 24), 0x000000 + (alpha / 2 << 24));
|
||||
glPopMatrix();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue