VN Textbox updated
This commit is contained in:
1 parent
f5e8dd9a8e
commit
db90bd1476
8 files changed
+147
-42
No files matched your search
@@ -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(
|
||||
|
||||
Reference in new issue
Block a user