mirror of
https://github.com/celisej567/mcpe.git
synced 2026-01-03 05:49:04 +03:00
* * Add new scrollable options list. * * Add OptionList.cpp to the CMakeLists.txt * * Add the new stuff by @jonkadelic to the new options menu.
29 lines
849 B
C++
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;
|
|
};
|
|
|