PseudoGui question

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
overburn
Posts: 101
Joined: Sun Nov 04, 2007 8:08 am
Location: Romania, Ploiesti

PseudoGui question

Post by overburn »

can i have a 2d image placed on screen and make it act as if it were a button when i click it?
One Tequila, Two Tequila, Three Tequila, Floor.
_______________________________________
ASUS P5V-VM Ultra
Intel Pentium D930
1x 2GB DDR2 Kingmax 800mhz/533mhz mb
Leadtek PX9600GT W 512MB DDR3
200GB Maxtor HDD
Malgodur
Posts: 195
Joined: Sun Mar 15, 2009 8:22 pm

Post by Malgodur »

check examples.?

Or calculate mouse AND box pos, in event recevier when click check is mous position in button bounds...
Frank Dodd
Posts: 208
Joined: Sun Apr 02, 2006 9:20 pm

Post by Frank Dodd »

Yes you can either with the draw2DImage() function sets or by using billboards, or even 3d models! Often in a game a 'pseudo gui' is much more appropriate as you might want big bouncing jellybean like animated buttons or an interface built out of animated creatures or something.

Using a game GUI should really be a part of the game and be fun to use. If i'm playing a game I want my OK button to have eyes and a nose and to squeak when I click on it. :D
CuteAlien
Admin
Posts: 9721
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Post by CuteAlien »

You can also do it the other way round - give the button an image. Using setDrawBorder(false) and setImage(yourImage) you will have a clickable image with full button functionality.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Post Reply