Page 1 of 1

Add events to MouseCursor

Posted: Fri Oct 08, 2004 09:34
by ArmaDuck
I've been thinking about how to get the mouse image name so I could change Window's cursor to the proper icon since I'm not using CEGUI cursor rendering. The best way seems to be to add an onSetImage event to the MouseCursor class with a new EventArgs class containing the Imageset and Image strings.

Does this seem like the right approach?

Add events to MouseCursor

Posted: Fri Oct 08, 2004 12:13
by CrazyEddie
Yes, that sounds like a decent approach. You'll probably need to put EventSet as a new base class for MouseCursor; though I'm not entirely sure if that will cause problems with the current singleton base class.

CE.

Add events to MouseCursor

Posted: Fri Oct 08, 2004 22:40
by ArmaDuck
I've got it working!

There is no problem adding EventSet as another base class for MouseCursor. Everything seems to be working fine so far.

Would you like me to post the modifications?

Add events to MouseCursor

Posted: Sat Oct 09, 2004 07:55
by CrazyEddie
You can submit a patch via the patch tracker if you like; this is the preferred way of getting such modifications. If you can't produce a patch of whatever reason, posting the code here is okay, but you do run the risk of me forgetting about it when I come to do the net roundof additions to the system ;)

CE.