Subscenes
This commit is contained in:
@ -19,7 +19,7 @@ namespace Dawn {
|
||||
static void prefabApply(AssetManager *man, UIBorder *border) {
|
||||
auto text = man->get<TextureAsset>("texture_test");
|
||||
border->texture = &text->texture;
|
||||
border->setBorderSize(glm::vec2(16, 16));
|
||||
border->setBorderSize(glm::vec2(8, 8));
|
||||
}
|
||||
};
|
||||
}
|
@ -22,11 +22,11 @@ namespace Dawn {
|
||||
auto assetFont = man->get<TrueTypeAsset>("truetype_ark");
|
||||
UIBorderPrefab::apply(&textbox->border);
|
||||
textbox->setFont(&assetFont->font);
|
||||
textbox->setFontSize(40);
|
||||
textbox->setLabelPadding(glm::vec2(10, 8));
|
||||
textbox->setFontSize(11);
|
||||
textbox->setLabelPadding(glm::vec2(4, 4));
|
||||
textbox->setTransform(
|
||||
UI_COMPONENT_ALIGN_STRETCH, UI_COMPONENT_ALIGN_END,
|
||||
glm::vec4(0, 238, 0, 0),
|
||||
glm::vec4(0, assetFont->font.getLineHeight(textbox->getFontSize()) * 4, 0, 0),
|
||||
0.0f
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user