UI Border Done
This commit is contained in:
@ -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 {
|
||||
|
Reference in New Issue
Block a user