Subscenes

This commit is contained in:
2023-01-14 22:06:35 -08:00
parent 9505dd9f06
commit 2e55754c49
50 changed files with 733 additions and 751 deletions

View File

@ -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));
}
};
}

View File

@ -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
);
}