UI Border Done

This commit is contained in:
2023-04-29 20:55:32 -07:00
parent 0040a54001
commit 47d95ac8ce
10 changed files with 175 additions and 85 deletions

View File

@ -31,15 +31,13 @@ namespace Dawn {
textbox->transform.setParent(canvas->transform);
struct Color colors[] = {
COLOR_RED, COLOR_MAGENTA, COLOR_RED,
COLOR_BLUE, COLOR_MAGENTA, COLOR_WHITE,
COLOR_MAGENTA, COLOR_CORNFLOWER_BLUE, COLOR_MAGENTA,
COLOR_RED, COLOR_MAGENTA, COLOR_RED
COLOR_BLACK, COLOR_MAGENTA, COLOR_BLUE
};
text.setSize(3, 3);
text.buffer(colors);
textbox->border->texture = &text;
textbox->border->alignment = glm::vec4(32, 32, 128, 128);
}
std::vector<Asset*> getRequiredAssets() override {