hello:
I try to display a static image on the screen, and it's a circle. I use CELayoutEditer to create a static image, and then load a static. The image is display with a black square background. if i just want to a image without the background. how can i do it. i just a beginer, thanks in advance
static image without background
Moderators: CEGUI MVP, CEGUI Team
Re: static image without background
Are you loading an image that supports alpha-transparency? And if so, are you using that feature? Also, are you setting the background-color of the static-text widget to be 100% transparent?
If somebody helps you by replying to your thread, upvote him/her as a thanks! Make sure to include your CEGUI.log and everything you tried when posting! And remember that we are not magicians!
Re: static image without background
i create the image from photoshop and save as png file, i have try setAlpha() funciton, that is worked with static image window and image. My idea is keep the image and let the static image window gone. so just display the image without the window.
how can i set the background-color of the static-text widget to be 100% transparent. this code is about static image form looknfeel. what should i do.
i have try this line code, background is gone. but this is for all the static. but i just want one of the static image without background, can i do this in the code. is any function can do it.
how can i set the background-color of the static-text widget to be 100% transparent. this code is about static image form looknfeel. what should i do.
Code: Select all
<PropertyDefinition name="BackgroundColours" initialValue="tl:FFFFFFFF tr:FFFFFFFF bl:FFFFFFFF br:FFFFFFFF" redrawOnWrite="true" />
i have try this line code, background is gone. but this is for all the static. but i just want one of the static image without background, can i do this in the code. is any function can do it.
Code: Select all
<Property name="FrameEnabled" value="false" />
Last edited by lw89 on Wed Apr 07, 2010 06:11, edited 6 times in total.
Re: static image without background
here is another question, i just want to change cursor image to a front sight for a fps game. i plan use a red circle for front sight. I have two question about this.
1. how can i just display a red circle.
2. how can i use change the mouse click point to the center of red circle.
thanks in advance
1. how can i just display a red circle.
2. how can i use change the mouse click point to the center of red circle.
thanks in advance
- CrazyEddie
- CEGUI Project Lead
- Posts: 6760
- Joined: Wed Jan 12, 2005 12:06
- Location: England
- Contact:
Re: static image without background
For the StaticImage type widgets:
Mouse cursor images should be set from an Imageset and Image definition. The offset you are able to specify for an image can be used to specify the picking-point / hot-spot of the image. Look at the existing imageset definitions (for TaharezLook, say) to see how we do this already.
CE.
Code: Select all
<Property name="BackgroundEnabled" value="False" />
Mouse cursor images should be set from an Imageset and Image definition. The offset you are able to specify for an image can be used to specify the picking-point / hot-spot of the image. Look at the existing imageset definitions (for TaharezLook, say) to see how we do this already.
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 32 guests