PseudoGui question
PseudoGui question
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
_______________________________________
ASUS P5V-VM Ultra
Intel Pentium D930
1x 2GB DDR2 Kingmax 800mhz/533mhz mb
Leadtek PX9600GT W 512MB DDR3
200GB Maxtor HDD
-
- Posts: 208
- Joined: Sun Apr 02, 2006 9:20 pm
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.
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.
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
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm