Finally finished VN textbox

This commit is contained in:
2023-06-17 07:59:22 -07:00
parent e6350d99e9
commit 07c4484186
4 changed files with 103 additions and 85 deletions

View File

@ -30,6 +30,8 @@ namespace Dawn {
struct UILabelLine {
float_t width = 0.0f;
float_t height = 0.0f;
glm::vec2 position;
int32_t quadStart = -1;
int32_t quadCount = 0;
};
@ -45,9 +47,13 @@ namespace Dawn {
int32_t quadCount = -1;
int32_t quadCountTotal = -1;
glm::vec2 textOffset = glm::vec2(0.0f, 0.0f);
std::vector<struct UILabelText> texts;
std::vector<struct UILabelText> textsBuffered;
std::vector<struct UILabelLine> lines;
StateEvent<> eventTextChanged;
UILabel(SceneItem *item);