Files
mcpe/source/client/gui/screens/JoinGameScreen.hpp
ts 9e9d2110e3 Add Direct Connect Button and Screen (#30)
* Add Direct Connect Button and Screen

* Remove accidental extra build directories for wasm

* Add DirectConnectScreen.cpp to the CMake

* Use Hungarian coding style notation
2023-08-06 12:09:06 +03:00

35 lines
899 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"
#include "../components/AvailableGamesList.hpp"
class JoinGameScreen : public Screen
{
public:
JoinGameScreen();
~JoinGameScreen();
void buttonClicked(Button* pButton) override;
bool handleBackEvent(bool b) override;
void init() override;
bool isInGameScreen() override;
void render(int mouseX, int mouseY, float f) override;
void tick() override;
virtual bool isIndexValid(int idx);
public:
Button m_btnJoin;
Button m_btnDirectConnect;
Button m_btnBack;
AvailableGamesList* m_pAvailableGamesList = nullptr;
};