VN Textbox updated

This commit is contained in:
2022-11-02 00:42:16 -07:00
parent f5e8dd9a8e
commit db90bd1476
8 changed files with 147 additions and 42 deletions

View File

@ -39,13 +39,9 @@ int32_t DawnGame::init() {
}
auto textbox = canvas->addElement<VisualNovelTextbox>();
textbox->border.texture = assetTexture->texture.get();
textbox->label.setFont(&assetFont->font);
textbox->label.setFontSize(40);
textbox->setTransform(
UI_COMPONENT_ALIGN_STRETCH, UI_COMPONENT_ALIGN_END,
glm::vec4(0, 250, 0, 0), 0.0f
);
textbox->setBorder(assetTexture->texture.get(), glm::vec2(16, 16));
textbox->setFont(&assetFont->font);
textbox->setText("1\n2\n3\n4\n5\n6\n7\n8\n9\n10", 40);
// auto sprite = canvas->addElement<UISprite>();
// sprite->setTransform(