Moving a IGUIImage
Posted: Thu Jun 15, 2006 9:45 am
Hi,
I´ve got a problem with moving a picture. I want to replace the cursor with an image. For that, I disabled the visibility of the cursor and added a IGUIImage.
But now, I have no idea how to move it with the cursor. Move() does an absolute moving, so I cant just say getCursorControl()->getPosition() and put that value in the move-brackets, because he will move it out of the screen. (You know what I mean ).
Well, there is also that setRelativePosition() thing for IGUIImages. But that works only with a rectangle value, and the position of the cursor is position2d....
I´ve got a problem with moving a picture. I want to replace the cursor with an image. For that, I disabled the visibility of the cursor and added a IGUIImage.
But now, I have no idea how to move it with the cursor. Move() does an absolute moving, so I cant just say getCursorControl()->getPosition() and put that value in the move-brackets, because he will move it out of the screen. (You know what I mean ).
Well, there is also that setRelativePosition() thing for IGUIImages. But that works only with a rectangle value, and the position of the cursor is position2d....