Now I gotta fix alignment
This commit is contained in:
@ -14,6 +14,7 @@ namespace Dawn {
|
||||
protected:
|
||||
Camera *camera;
|
||||
UICanvas *canvas;
|
||||
Texture text;
|
||||
|
||||
int32_t test = 0;
|
||||
|
||||
@ -28,6 +29,17 @@ namespace Dawn {
|
||||
|
||||
auto textbox = VNTextbox::create(this);
|
||||
textbox->transform.setParent(canvas->transform);
|
||||
|
||||
struct Color colors[] = {
|
||||
COLOR_RED, COLOR_MAGENTA, COLOR_RED,
|
||||
COLOR_MAGENTA, COLOR_CORNFLOWER_BLUE, COLOR_MAGENTA,
|
||||
COLOR_RED, COLOR_MAGENTA, COLOR_RED
|
||||
};
|
||||
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