i want hiding the widget default image,such as Editbox,MultiLineEditbox's default background image ,just draw text. how do it?
thanks for any help.
how to hiding the CEGUI default image
Moderators: CEGUI MVP, CEGUI Team
Re: how to hiding the CEGUI default image
Well, there are 2 ways to do this. Go into your TaharezLook.imageset (or the windowslook, which ever you're using) and you will see a bunch of xml code.
Every line specified an image with x,y coordinates with height and width and it assigns it to a specific name. If you do not want say the background for editbox, you just have to find the line for the editbox background and change the x and y coord. to 0,0 and your length/width to 1.
Though, with this technique, no editbox from the scheme you are using will have a background. If you do want a background for some and none for others, you'd need to create a new scheme (or you can use the windows look as a dummy scheme) and then set in that scheme an editbox background as being nothing and you'd have to load both scheme so you can use the 2 accordingly.
Creating your own scheme is a bit complex, so I suggest using the windowslook scheme as your dummy scheme
Every line specified an image with x,y coordinates with height and width and it assigns it to a specific name. If you do not want say the background for editbox, you just have to find the line for the editbox background and change the x and y coord. to 0,0 and your length/width to 1.
Though, with this technique, no editbox from the scheme you are using will have a background. If you do want a background for some and none for others, you'd need to create a new scheme (or you can use the windows look as a dummy scheme) and then set in that scheme an editbox background as being nothing and you'd have to load both scheme so you can use the 2 accordingly.
Creating your own scheme is a bit complex, so I suggest using the windowslook scheme as your dummy scheme
Re: how to hiding the CEGUI default image
thanks for your help.
Return to “Modifications / Integrations / Customisations”
Who is online
Users browsing this forum: No registered users and 5 guests