mirror of
https://github.com/celisej567/mcpe.git
synced 2026-09-17 20:10:23 +03:00
36 lines
1.3 KiB
C++
36 lines
1.3 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 "client/app/IGui.hpp"
|
|
|
|
class Gui : public IGui
|
|
{
|
|
public:
|
|
Gui(Minecraft* pMinecraft);
|
|
|
|
void addMessage(const std::string& str) override;
|
|
|
|
void onInventoryUpdated() override;
|
|
void onTick() override;
|
|
void onRender(float f, bool bHaveScreen, int mouseX, int mouseY) override;
|
|
|
|
bool isInside(int mx, int my) override;
|
|
void handleClick(int id, int mx, int my) override;
|
|
void handleKeyPressed(int keyCode) override;
|
|
void renderChatMessages(bool bShowAll) override;
|
|
int getNumSlots() override; // Gets the number of slots in the inventory. Includes the '...' if in touch mode.
|
|
int getNumUsableSlots() override; // Gets the number of usable slots in the inventory. Does not include the '...' if in touch mode.
|
|
|
|
IScreen* screenMain() override;
|
|
IScreen* screenDeath() override;
|
|
IScreen* screenPause() override;
|
|
IScreen* screenSaveWorld(bool bCopyMap, Entity *pEnt) override;
|
|
IScreen* screenRenameMPWorld(std::string name) override;
|
|
};
|