Files
mcpe/source/client/gui/screens/JoinGameScreen.hpp

35 lines
895 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 onInit() override;
bool isInGameScreen() override;
void onRender(int mouseX, int mouseY, float f) override;
void onTick() override;
virtual bool isIndexValid(int idx);
public:
Button m_btnJoin;
Button m_btnDirectConnect;
Button m_btnBack;
AvailableGamesList* m_pAvailableGamesList;
};