Files
mcpe/source/client/gui/screens/IngameBlockSelectionScreen.hpp
Brent afe875e4fa iOS Support (#113)
undefined
2024-01-22 17:22:41 +02:00

44 lines
1.1 KiB
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 Inventory;
class IngameBlockSelectionScreen : public Screen
{
public:
IngameBlockSelectionScreen();
Inventory* getInventory();
int getBottomY();
int getSelectedSlot(int x, int y);
int getSlotPosX(int x);
int getSlotPosY(int y);
int getSlotsHeight();
bool isAllowed(int slot);
void renderSlots();
void renderDemoOverlay();
void renderSlot(int index, int x, int y, float f);
void selectSlotAndClose();
virtual void init() override;
virtual void render(int x, int y, float f) override;
virtual void buttonClicked(Button*) override;
virtual void mouseClicked(int x, int y, int type) override;
virtual void mouseReleased(int x, int y, int type) override;
virtual void removed() override;
private:
int m_selectedSlot;
Button m_btnPause;
};