[UI] Trying to show an image

frutiemax

Warlord
Joined
Jan 19, 2015
Messages
127
I am able to show a label on the screen but now I'm trying with an image but I can't seem to make it work, and I am a little bit blind because I can't find the log that shows the error.

Code:
<?xml version="1.0" encoding="utf-8"?>

<Context Name="MyNewScreen">
    <Container ID="Frame" Anchor="C,C">
        <Label ID="MyText" Align="Center" Anchor="R,B" String="My New Screen" Offset="100,6"/>
        <Image ID="MyImage" Align="Center" Anchor="C,C" Texture="Textures/Penguin.dds"/>
    </Container>
</Context>

I have a Penguin.dds and it's 256x256. Relative to the XML file, it is in the Textures folder. I am really not sure how to debug and make this work. Do I need the asset editor?
 
Back
Top Bottom