I see thet GUIButton has setImage and setPressedImage but doesn;t have something like mouseOverImage,
how can i have a button that will have mouse over effect or at least a different image on mouser over will be good
i alos see that there is setSpriteBank and setSprite(EGUI_BUTTON_STATE, and there is a state for mouse over but CGUIButton::draw() doesn't handle it
what is this SpriteBank? can i use it to have a mouse over button, if not how else can i do it?
GUI Button mouse over
yes, it should be possible to do with a sprite bank... 
look at the api for IGUIButton and there for setSpriteBank(...) and setSprite(...), also have a search at the api for EGUI_BUTTON_STATE...
look at the api for IGUIButton and there for setSpriteBank(...) and setSprite(...), also have a search at the api for EGUI_BUTTON_STATE...
while(!asleep) sheep++;
IrrExtensions:
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
IrrExtensions:

http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
-
danieLs0xFF
- Posts: 14
- Joined: Wed Aug 16, 2006 6:58 pm
while(!asleep) sheep++;
IrrExtensions:
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
IrrExtensions:

http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
-
danieLs0xFF
- Posts: 14
- Joined: Wed Aug 16, 2006 6:58 pm
Yeah, I think it's not yet supported. So you have to make your own element or change it in the engine. Or simply don't use it - that's imho mostly the best option if a feature is not available ;-)
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