The .imageset file is:
<?xml version="1.0" encoding="UTF-8"?>
<Imageset Name="test" Imagefile="test.tga" NativeHorzRes="800" NativeVertRes="600" AutoScaled="true" >
<Image Name="flame" XPos="0" YPos="50" Width="50" Height="50" />
<Image Name="sword" XPos="0" YPos="0" Width="50" Height="50" />
<Image Name="shield" XPos="50" YPos="0" Width="50" Height="50" />
<Image Name="nothing" XPos="50" YPos="50" Width="50" Height="50" />
</Imageset>
Everything looks fine in the the CEGUIImagesetEditor
The code using the image is:
label = win_mgr.createWindow("TaharezLook/StaticImage", name.append( "Label") );
label->setProperty("FrameEnabled", "true");
label->setProperty("BackgroundEnabled", "false");
label->setPosition(CEGUI::UVector2(cegui_reldim(0.2f), cegui_reldim(0.05f)));
label->setSize(CEGUI::UVector2(cegui_reldim(0.13f), cegui_reldim( 0.1f)));
label->setProperty("Image", "set:test image:shield");
It was a Text label before, thats why it is called Label. There is something in the image, but it is the wrong part of the TGA displayed. The content of the image is approx. the ((0,20) to (50,70). If it worked correctly, it should be ((50,0) to (100,50)) (coordinates of the corners).
When using an image from Taharez Imageset it is correct. So my imageset seems to be wrong in some manner. I placed a teal point in the TGA on (50,20), it should be on the border of the image. But it is nearly centered.
I can make some screenshots.
Any idea whats wrong there ?
And what does this *native resolution* do ?