rogerdv
I want to load an specific image inside a BorderImage element, through this code:
UIElement@ grid = invWin.GetChild("grid", true);
BorderImage@ itemPort = BorderImage();
itemPort.SetSize(32, 32);
itemPort.texture = Texture();
itemPort.texture.Load(cache.GetFile("Textures/portraits/2h-axe.png"));
itemPort.imageRect = IntRect(0, 0, 128, 128);
grid.AddChild(itemPort);
But I just get a white square. Whats wrong in my code?