Page 1 of 1

Non-standard controls (round, partly overlapping, ...)

Posted: Tue Apr 19, 2011 12:25
by blablub
Hi,

what ways does CEGUI (0.7.5) offer to create non-standard control groups that are round for example or have some buttons on it that slightly overlap?

A quick google brought a nice example of what I mean:
http://www.maniasarcania.com/wp-content ... repair.jpg

Should I simply create some StaticImages and ImageButtons with round pictures and put them into a FrameWindow or DefaultWindow?
Or is it possible to draw the whole thing into a StaticImage and define "click areas"?

What are the best ways here? Do examples exist? Thanks.

Re: Non-standard controls (round, partly overlapping, ...)

Posted: Tue Apr 19, 2011 16:21
by Jamarr
If you had searched the forum for "round button" you would have found that all you need to render round buttons is to use alpha in your square images, so as to give the perception of a round button. And if you had searched the wiki for "round button" you would have found some code providing an implementation for hit-testing the image, and only registering input events if the non-transparent part of the image was clicked.

Please make sure you exhaust all of the available resources before asking for help, as while this support is free for you it costs us time/money. If people cannot be bothered to do some leg work of their own, this support may cease to exist. And no one wants that to happen! Thank you! :wink: