brick
05-03-2009 16:03:33
I just updated to the svn head (trunk), and now the mouse cursor is no longer visible. My xml file looks like this:
Browsing through the demo code in the new revision, I saw some XML files that used resource="something", with the corresponding "something" being in another file. But I don't really understand how this works (and couldn't get it to work myself.) I just want to use cursors from one single image, using offset like above, how do I do this? Do I have to use the resource attribute, and if so could someone help me ? Thanks.
<MyGUI type="Pointer">
<Pointer layer="Pointer" texture="mwpointer.png" default="arrow">
<Info name="arrow" point="7 0" size="32 32" offset="0 0 32 32"/>
<Info name="hresize" point="16 14" size="32 32" offset="32 0 32 32"/>
<Info name="vresize" point="17 16" size="32 32" offset="0 32 32 32"/>
<Info name="dresize" point="17 15" size="32 32" offset="32 32 32 32"/>
<Info name="dresize2" point="15 15" size="32 32" offset="64 32 32 32"/>
</Pointer>
</MyGUI>
Browsing through the demo code in the new revision, I saw some XML files that used resource="something", with the corresponding "something" being in another file. But I don't really understand how this works (and couldn't get it to work myself.) I just want to use cursors from one single image, using offset like above, how do I do this? Do I have to use the resource attribute, and if so could someone help me ? Thanks.