HI CE:
Can i scale the cursor, is any function aviable or i need setup in the xml file. I find scale value in the TaharezLook.looknfeel, but i dont know how to work with that.
thank you in advance
scale cursor
Moderators: CEGUI MVP, CEGUI Team
Re: scale cursor
I don't see any way to do this. However, you can use three approaches:
Firstly, if you are just looking to scale the cursor according to the size of your window screen, you can use something like 'NativeHorzRes="800" NativeVertRes="600" AutoScaled="true"' inside your Imageset tag. The cursor will scale 1:1 on a 800x600 screen with those settings. If the res values are bigger, the cursor will be bigger.
Second, you can attempt to scale the texture itself but I'm not sure how at the moment. (I think it would depend on what renderer you use.)
Third, if you are looking to change the mouse cursor a lot or have "more than one mouse cursor", you could just create window(s) with the image and imageset type of the mouse cursor and/or use a window that constantly changes its position according to the mouse position instead.
Firstly, if you are just looking to scale the cursor according to the size of your window screen, you can use something like 'NativeHorzRes="800" NativeVertRes="600" AutoScaled="true"' inside your Imageset tag. The cursor will scale 1:1 on a 800x600 screen with those settings. If the res values are bigger, the cursor will be bigger.
Second, you can attempt to scale the texture itself but I'm not sure how at the moment. (I think it would depend on what renderer you use.)
Third, if you are looking to change the mouse cursor a lot or have "more than one mouse cursor", you could just create window(s) with the image and imageset type of the mouse cursor and/or use a window that constantly changes its position according to the mouse position instead.
Re: scale cursor
thanks for replay, i use first approaches to get what i want, just everything is became bigger.
- CrazyEddie
- CEGUI Project Lead
- Posts: 6760
- Joined: Wed Jan 12, 2005 12:06
- Location: England
- Contact:
Re: scale cursor
If you want options to set the mouse cursor size explicitly or to set a mouse image scaling factor, I can add those as feature requests if you like. Let me know
CE.
CE.
Useful Links: Forum Guidelines | Documentation | Tutorials | HOWTO | Videos | Donate to CEGUI | CEGUI Twitter
Re: scale cursor
that is great, i think you should have a function to setup the size for cursor, something like staticImage.
- CrazyEddie
- CEGUI Project Lead
- Posts: 6760
- Joined: Wed Jan 12, 2005 12:06
- Location: England
- Contact:
Re: scale cursor
I added a request to our mantis tracker - so this should get added sometime soon (since it's pretty simple to do).
CE.
CE.
Useful Links: Forum Guidelines | Documentation | Tutorials | HOWTO | Videos | Donate to CEGUI | CEGUI Twitter
Who is online
Users browsing this forum: No registered users and 27 guests