mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-04-24 11:23:36 +00:00
29 lines
590 B
C++
29 lines
590 B
C++
#pragma once
|
|
#include <string>
|
|
|
|
#include "minecraft/client/gui/Screen.h"
|
|
|
|
class ClientConnection;
|
|
class Minecraft;
|
|
|
|
class ConnectScreen : public Screen {
|
|
private:
|
|
ClientConnection* connection;
|
|
bool aborted;
|
|
|
|
public:
|
|
ConnectScreen(Minecraft* minecraft, const std::string& ip, int port);
|
|
virtual void tick() override;
|
|
|
|
protected:
|
|
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;
|
|
}; |