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

For help with general CEGUI usage:
- Questions about the usage of CEGUI and its features, if not explained in the documentation.
- Problems with the CMAKE configuration or problems occuring during the build process/compilation.
- Errors or unexpected behaviour.

Moderators: CEGUI MVP, CEGUI Team

blablub
Not too shy to talk
Not too shy to talk
Posts: 28
Joined: Tue Mar 01, 2011 11:56

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

Postby blablub » Tue Apr 19, 2011 12:25

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.

Jamarr
CEGUI MVP
CEGUI MVP
Posts: 812
Joined: Tue Jun 03, 2008 23:59
Location: USA

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

Postby Jamarr » Tue Apr 19, 2011 16:21

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:
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!


Return to “Help”

Who is online

Users browsing this forum: No registered users and 24 guests