Thalassicus
Bytes and Nibblers
How do I properly set the texture of a UI element? I tried this:
The first two commands worked, but the texture was a blank grey placeholder instead of HorizontalTrim.dds.
Code:
<Image ID="Divider" Anchor="L,B" Texture="bar900x2.dds" Size="930,1"/>
PHP:
controlTable.Divider:SetSize(Vector2(960, 5))
controlTable.Divider:SetAnchor("C,B")
controlTable.Divider:SetTexture("HorizontalTrim.dds")
The first two commands worked, but the texture was a blank grey placeholder instead of HorizontalTrim.dds.