Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
a3b9f0f
Fix mouse getting grabbed outside window of the game
KKNecmi Mar 5, 2026
b5873a3
Merge branch 'smartcmd:main' into main
KKNecmi Mar 6, 2026
06b774e
Merge branch 'smartcmd:main' into main
KKNecmi Mar 6, 2026
cb6106b
Merge branch 'main' of https://github.com/smartcmd/MinecraftConsoles
KKNecmi Mar 6, 2026
0436a6e
Merge branch 'main' of https://github.com/KKNecmi/MinecraftConsoles
KKNecmi Mar 6, 2026
c7e8db1
Merge branch 'smartcmd:main' into main
KKNecmi Mar 6, 2026
79dbd39
Merge branch 'main' of https://github.com/KKNecmi/MinecraftConsoles
KKNecmi Mar 6, 2026
76b501a
revert sln
KKNecmi Mar 6, 2026
86102e7
merge
KKNecmi Mar 6, 2026
0b76293
Merge branch 'main' of https://github.com/smartcmd/MinecraftConsoles
KKNecmi Mar 6, 2026
9983756
removed iggy chat
KKNecmi Mar 6, 2026
b987e13
changed chat text size,background color and opacity to suit legacy's …
KKNecmi Mar 6, 2026
3106895
Merge branch 'main' of https://github.com/smartcmd/MinecraftConsoles …
KKNecmi Mar 6, 2026
7d75502
fix background opacity & heigth
KKNecmi Mar 6, 2026
1624629
design changes
KKNecmi Mar 7, 2026
38e25b1
fix draw history
KKNecmi Mar 7, 2026
a03bfc8
add method for drawing shadows with custom shadow color & added scale…
KKNecmi Mar 7, 2026
4322cc4
added public wrap for drawliteral for changing text shadow size, adde…
KKNecmi Mar 7, 2026
02dd039
removed unused added public wrap,edited yadjust & removed unused vari…
KKNecmi Mar 7, 2026
6472694
added unused variables because they was important & tested tried and …
KKNecmi Mar 7, 2026
0c7931b
added float draw & edited some variables to look better on screen
KKNecmi Mar 8, 2026
e422e1e
Merge branch 'smartcmd:main' into fixchat
KKNecmi Mar 9, 2026
ab35188
set bgfirst for uiscale
KKNecmi Mar 9, 2026
763ca13
Merge branch 'main' into fixchat
KKNecmi Mar 9, 2026
fc1f21b
write every pixel set bgfirst and bgsecond todo fix
KKNecmi Mar 11, 2026
357f05a
Merge branch 'fixchat' of https://github.com/KKNecmi/MinecraftConsole…
KKNecmi Mar 11, 2026
57cb69b
test different numbers & test changing screen variables without guisc…
KKNecmi Mar 13, 2026
b812f89
Merge branch 'smartcmd:main' into fixchat
KKNecmi Mar 13, 2026
e0fcd8a
change variables to chat versions
KKNecmi Mar 13, 2026
dc7ec02
Fix pr merge conflict
KKNecmi Mar 13, 2026
991db9d
Merge branch 'main' into fixchat
KKNecmi Mar 13, 2026
2c292e6
Merge branch 'smartcmd:main' into fixchat
KKNecmi Mar 14, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
79 changes: 72 additions & 7 deletions Minecraft.Client/ChatScreen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -140,19 +140,84 @@ void ChatScreen::keyPressed(wchar_t ch, int eventKey)

void ChatScreen::render(int xm, int ym, float a)
{
fill(2, height - 14, width - 2, height - 2, 0x80000000);
int iPad = minecraft->player->GetXboxPad();
int uiSetting = app.GetGameSettings(iPad, eGameSetting_UISize);

float textScale = 0.6f;
int barTopOffset = 14;
int barBottomOffset = 2;
int textYOffset = 12;
int yAdjust = 0;
int widthsubtract = 2;

if (uiSetting == 0)
{
textScale = textScale * 1.25f;
barTopOffset = 10;
barBottomOffset = -2;
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.8f;
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 - widthsubtract, barBottom, 0x80000000);

const wstring prefix = L"> ";
int x = 4;
drawString(font, prefix, x, height - 12, 0xe0e0e0);

drawString(font, prefix, x, textY, 0xe0e0e0);

x += font->width(prefix);
wstring beforeCursor = message.substr(0, cursorIndex);
wstring afterCursor = message.substr(cursorIndex);
drawStringLiteral(font, beforeCursor, x, height - 12, 0xe0e0e0);
x += font->widthLiteral(beforeCursor);

glPushMatrix();
glTranslatef((float)x, (float)textY, 0);
glScalef(textScale, textScale, 1.0f);
font->drawShadowLiteralCustom(beforeCursor, 0, 0, 1, 1, 0xe0e0e0, 0x000000);
glPopMatrix();

x += (int)(font->widthLiteral(beforeCursor) * textScale);

if (frame / 6 % 2 == 0)
drawString(font, L"_", x, height - 12, 0xe0e0e0);
x += font->width(L"_");
drawStringLiteral(font, afterCursor, x, height - 12, 0xe0e0e0);
{
glPushMatrix();
glTranslatef((float)x, (float)textY, 0);
glScalef(textScale, textScale, 1.0f);
font->drawShadowLiteralCustom(L"_", 0, 0, 1, 1, 0xe0e0e0, 0x000000);
glPopMatrix();
}

x += (int)(font->width(L"_") * textScale);

glPushMatrix();
glTranslatef((float)x, (float)textY, 0);
glScalef(textScale, textScale, 1.0f);
font->drawShadowLiteralCustom(afterCursor, 0, 0, 1, 1, 0xe0e0e0, 0x000000);
glPopMatrix();

Screen::render(xm, ym, a);
}

Expand Down
Loading
Loading