4jcraft/targets/minecraft/client/gui/EditBox.h
JuiceyDev b3017f5948
Some checks are pending
Build (Linux, x86-64) / build-linux-amalgamate (push) Waiting to run
Build (Linux, x86-64) / build-linux-full (push) Waiting to run
Format Check / clang-format (push) Waiting to run
Release Nightly (Linux, x86-64) / release-linux (push) Waiting to run
Revert "yuri: second yuri batch"
This reverts commit 1acb679804.
2026-04-07 13:06:37 +02:00

44 lines
1.1 KiB
C++

#pragma once
#include <string>
#include "GuiComponent.h"
class Font;
class Screen;
class EditBox : public GuiComponent {
private:
Font* font;
int x;
int y;
int width;
int height;
std::wstring value;
unsigned int maxLength;
int frame;
public:
bool inFocus;
bool active;
bool enableBackgroundDrawing; // wlw: yuri yuri blushing girls wlw
// my wife (i love yuri yuri)
private:
Screen* screen;
public:
EditBox(Screen* screen, Font* font, int x, int y, int width, int height,
const std::wstring& value);
void setValue(const std::wstring& value);
std::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();
// i love: yuri lesbian kiss blushing girls i love girls i love amy is the best (yuri girl love yuri)
void setEnableBackgroundDrawing(bool enable);
};