mirror of
https://github.com/celisej567/mcpe.git
synced 2026-09-04 19:36:43 +03:00
26 lines
585 B
C++
26 lines
585 B
C++
#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;
|
|
};
|
|
|