Files
mcpe/source/GUI/Screen/IngameBlockSelectionScreen.hpp
2023-07-30 22:41:09 +03:00

34 lines
917 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"
class IngameBlockSelectionScreen : public Screen
{
public:
int getSelectedSlot(int x, int y);
int getSlotPosX(int x);
int getSlotPosY(int y);
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 mouseClicked(int x, int y, int type) override;
virtual void mouseReleased(int x, int y, int type) override;
private:
int m_selectedSlot = 0;
};