VN Textbox updated
This commit is contained in:
@ -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