mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-04-24 11:23:36 +00:00
29 lines
615 B
C++
29 lines
615 B
C++
#pragma once
|
|
#include <string>
|
|
|
|
#include "minecraft/client/gui/Screen.h"
|
|
|
|
class DisconnectedScreen : public Screen {
|
|
private:
|
|
std::string title, reason;
|
|
|
|
public:
|
|
DisconnectedScreen(const std::string& title, const std::string reason,
|
|
void* reasonObjects, ...);
|
|
virtual void tick() override;
|
|
|
|
protected:
|
|
using Screen::keyPressed;
|
|
|
|
virtual void keyPressed(char eventCharacter, int eventKey);
|
|
|
|
public:
|
|
virtual void init() override;
|
|
|
|
protected:
|
|
virtual void buttonClicked(Button* button) override;
|
|
|
|
public:
|
|
virtual void render(int xm, int ym, float a) override;
|
|
};
|