Add files via upload

This commit is contained in:
ethxn 2026-03-19 19:26:21 +08:00 committed by GitHub
parent 2a683c19e4
commit 7f7afda1cb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1802,7 +1802,7 @@ int APIENTRY _tWinMain(_In_ HINSTANCE hInstance,
}
// TAB opens game info menu. - Vvis :3 - Updated by detectiveren
if (g_KBMInput.IsKeyPressed(KeyboardMouseInput::KEY_HOST_SETTINGS) && !ui.GetMenuDisplayed(0))
if (g_KBMInput.IsKeyPressed(KeyboardMouseInput::KEY_HOST_SETTINGS) && !ui.GetMenuDisplayed(0) && pMinecraft->screen == NULL)
{
if (Minecraft* pMinecraft = Minecraft::GetInstance())
{
@ -1821,6 +1821,14 @@ int APIENTRY _tWinMain(_In_ HINSTANCE hInstance,
SetFocus(g_hWnd);
}
else if (g_KBMInput.IsKeyPressed(KeyboardMouseInput::KEY_SLASHCOMMANDCHAT) && app.GetGameStarted() && !ui.GetMenuDisplayed(0) && pMinecraft->screen == NULL)
// Needs to set the message with "/" when pressed.
{
g_KBMInput.ClearCharBuffer();
pMinecraft->setScreen(new ChatScreen());
SetFocus(g_hWnd);
}
#if 0
// has the game defined profile data been changed (by a profile load)
if(app.uiGameDefinedDataChangedBitmask!=0)