mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-04-24 08:43:59 +00:00
30 lines
547 B
C++
30 lines
547 B
C++
#pragma once
|
|
#include <string>
|
|
|
|
#include "Screen.h"
|
|
|
|
class ChatScreen : public Screen {
|
|
protected:
|
|
std::string message;
|
|
|
|
private:
|
|
int frame;
|
|
|
|
public:
|
|
ChatScreen(); // 4J added
|
|
virtual void init() override;
|
|
virtual void removed() override;
|
|
virtual void tick() override;
|
|
|
|
private:
|
|
static const std::string allowedChars;
|
|
|
|
protected:
|
|
void keyPressed(char ch, int eventKey) override;
|
|
|
|
public:
|
|
void render(int xm, int ym, float a) override;
|
|
|
|
protected:
|
|
void mouseClicked(int x, int y, int buttonNum) override;
|
|
}; |