Files
mcpe/source/client/gui/screens/ChatScreen.hpp
iProgramInCpp d5a733466d * Allow usage of / to start a command quickly.
* Allow usage of escape key to get out of chat screen.
2023-08-07 21:59:18 +03:00

30 lines
720 B
C++

/********************************************************************
Minecraft: Pocket Edition - Decompilation Project
Copyright (C) 2023 iProgramInCpp
The following code is licensed under the BSD 1 clause license.
SPDX-License-Identifier: BSD-1-Clause
********************************************************************/
#pragma once
#include "../Screen.hpp"
class ChatScreen : public Screen
{
public:
ChatScreen(bool slash = false);
void buttonClicked(Button*) override;
void init() override;
void removed() override;
void render(int mouseX, int mouseY, float f) override;
void keyPressed(int keyCode) override;
void sendMessageAndExit();
private:
TextInputBox m_textChat;
Button m_btnSend;
};