Files
mcpe/source/client/gui/components/AvailableGamesList.hpp
iProgramInCpp 5df07e2fc1 Add scrollable options menu (#99)
* * Add new scrollable options list.

* * Add OptionList.cpp to the CMakeLists.txt

* * Add the new stuff by @jonkadelic to the new options menu.
2023-11-05 18:40:44 +02:00

29 lines
849 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 "ScrolledSelectionList.hpp"
#include "network/PingedCompatibleServer.hpp"
class AvailableGamesList : public ScrolledSelectionList
{
public:
AvailableGamesList(Minecraft*, int, int, int, int, int);
int getNumberOfItems() override;
bool isSelectedItem(int i) override;
void renderBackground(float f) override;
void renderItem(int, int, int, int, Tesselator& t) override;
void selectItem(int, bool) override;
public:
int m_selectedIndex;
std::vector<PingedCompatibleServer> m_games;
};