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
Moderators: CEGUI MVP, CEGUI Team
- CrazyEddie
- CEGUI Project Lead
- Posts: 6760
- Joined: Wed Jan 12, 2005 12:06
- Location: England
- Contact:
Add events to MouseCursor
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.
CE.
Add events to MouseCursor
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?
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?
- CrazyEddie
- CEGUI Project Lead
- Posts: 6760
- Joined: Wed Jan 12, 2005 12:06
- Location: England
- Contact:
Add events to MouseCursor
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.
CE.
Return to “Modifications / Integrations / Customisations”
Who is online
Users browsing this forum: No registered users and 6 guests