Sunday, November 15, 2009

CEGUI skinning

I had this problem of not able to align text properly on top of button in vanilla skin of cegui. I decided to switch to taharezlook as it provides more options for windowing as well as text alignment property.

This was seriously tricky. I was in no mood to read that tutorial so just jumped into data files to see what can be done.
CEGUI follows a layering based approach for any widget.
General CEGUI widget looknfeel looks likes this:







.
.


use the properties value


.
more layers
.
.




CEGUI also provides controlProperties which helps in hiding some of imagery section and make other accessible...

By this way, i separated the logic of default image and custom image of button in taharez look and without using imagebutton thingy, i achieved "text on top of image acting as a button" functionality.

Now i am starting with WAMP model.. my first major foray in PHP.. till now i used to work on j2ee....
--Saurabh

No comments:

Post a Comment