the whole game

This commit is contained in:
2026-03-02 22:04:18 +03:00
parent 816e9060b4
commit f0617a5d22
2069 changed files with 581500 additions and 0 deletions

View File

@@ -0,0 +1,37 @@
#include "TextBox.h"
#include "../../Minecraft.h"
#include "../../../AppPlatform.h"
TextBox::TextBox( int id, const std::string& msg )
: id(0), w(0), h(0), x(0), y(0), text(msg), focused(false) {
}
TextBox::TextBox( int id, int x, int y, const std::string& msg )
: id(id), w(0), h(0), x(x), y(y), text(msg), focused(false) {
}
TextBox::TextBox( int id, int x, int y, int w, int h, const std::string& msg )
: id(id), w(w), h(h), x(x), y(y), text(msg) {
}
void TextBox::setFocus(Minecraft* minecraft) {
if(!focused) {
minecraft->platform()->showKeyboard();
focused = true;
}
}
bool TextBox::loseFocus(Minecraft* minecraft) {
if(focused) {
minecraft->platform()->showKeyboard();
focused = false;
return true;
}
return false;
}
void TextBox::render( Minecraft* minecraft, int xm, int ym ) {
}