I apologize in advance concerning my quite stupid questions, I guess.
I'm starting using CEGUI 0.8.3, along with SDL and OpenGL. I want my buttons to be PNGs that I'd previously load, but the tutorials I found about it are a little bit obsolete, and I didn't understand what I actually needed to do. Of course, I want the characters of my "game" to react when I click on the corresponding buttons (I got this point, events are OK for me).
So, I have a PNG spritesheet, and I created an Imageset which looks like this :
Code: Select all
<Imageset autoScaled="vertical" imagefile="C:/CEGUI/datafiles/imagesets/myImageset.png" name="myImageset" nativeHorzRes="304" nativeVertRes="38" version="2">
<Image height="38" name="Jump" width="38" xPos="0" yPos="0" />
<Image height="38" name="Crouch" width="38" xPos="38" yPos="0" />
<Image height="38" name="Left" width="38" xPos="76" yPos="0" />
<Image height="38" name="Up" width="38" xPos="114" yPos="0" />
<Image height="38" name="Right" width="38" xPos="152" yPos="0" />
<Image height="38" name="Down" width="38" xPos="190" yPos="0" />
<Image height="38" name="Change" width="38" xPos="228" yPos="0" />
<Image height="38" name="Shoot" width="38" xPos="266" yPos="0" />
</Imageset>
From here, I am lost... I red something about layouts on the wiki, but it didn't light me up. Can someone kindly explain to me how to do ?
Thank you very much