Something went wrong. Try again.
the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
Something went wrong. Try again.
740 B · 36 lines
C
at main
123456789101112131415161718192021222324252627282930313233343536#pragma once#include "GuiComponent.h"using namespace std;class Font;class Screen;
class EditBox : public GuiComponent{private: Font *font; int x; int y; int width; int height; wstring value; unsigned int maxLength; int frame;
public: bool inFocus; bool active;private: Screen *screen;
public: EditBox(Screen *screen, Font *font, int x, int y, int width, int height, const wstring& value); void setValue(const wstring& value); wstring getValue(); void tick(); void keyPressed(wchar_t ch, int eventKey); void mouseClicked(int mouseX, int mouseY, int buttonNum); void focus(bool newFocus); void render(); void setMaxLength(int maxLength); int getMaxLength();};