GUI Image Button?

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
shurijo
Posts: 148
Joined: Sat Feb 21, 2004 3:04 am

GUI Image Button?

Post by shurijo »

I have found a few threads talking about other developers creating a GUI image button class (inherits IGUIButton).

http://irrlicht.sourceforge.net/phpBB2/ ... .php?p=737
http://irrlicht.sourceforge.net/phpBB2/ ... php?p=3346

But none of the members have seemed to have finished or posted any code :D

Anyone feel like sharing their Image Button class? :)

thanks,
Tyn
Posts: 932
Joined: Thu Nov 20, 2003 7:53 pm
Location: England
Contact:

Post by Tyn »

Can only speak for myself, but since it is planned I'm focusing on the rest of my game.

Could be a while tho, so for others it may be slightly more urgent. Everything is there to do it I believe, there's a function to draw images, which can change the image, and a function to determine if the mouse clicks inside a rectangle you specify so you could do it.
Masdus
Posts: 186
Joined: Tue Aug 26, 2003 1:13 pm
Location: Australia

Post by Masdus »

I do have some code but it really needs to be rewritten if i'm going to release it. Currently i'm working on other things since image buttons are planed for irrlicht anyway. It really isn't hard to do though, just inherit the button class, provided some way for storing the image for the button and rewrite the draw function to draw the image. If people really want it i guess i could spend a little time a release some basic code.
Post Reply