skin for scrollBar

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
emre2345
Posts: 37
Joined: Mon Jul 09, 2007 7:02 pm

skin for scrollBar

Post by emre2345 »

I want to put a scrollbar with a skin, but i couldn't find any method to assign a skin to scrollbar. I am designing my gui from the guiEditor tool in irrlicht, so How can i assign a skin to scrollbar from guiEditor or xml or directly from c++ compiler?
dlangdev
Posts: 1324
Joined: Tue Aug 07, 2007 7:28 pm
Location: Beaverton OR
Contact:

Post by dlangdev »

you can try setting up a texture material to it.

see how that works.

let me know if that is even possible for gui elements.
Image
bitplane
Admin
Posts: 3204
Joined: Mon Mar 28, 2005 3:45 am
Location: England
Contact:

Post by bitplane »

See Klasker's textured IGUISkin in the code snippets forum
Submit bugs/patches to the tracker!
Need help right now? Visit the chat room
shogun
Posts: 162
Joined: Wed Sep 05, 2007 11:02 am
Location: inside

Post by shogun »

Be aware that a scrollbar consists of three buttons and a colored rectangle ...
bitplane
Admin
Posts: 3204
Joined: Mon Mar 28, 2005 3:45 am
Location: England
Contact:

Post by bitplane »

When drawing any gui element, the skin is passed a pointer to it. So it's easy to check to see if a button (getType) is a sub-element (isSubElement) and it's parent is a scrollbar, you can then override the default behaviour and draw it in whatever way you like.
Submit bugs/patches to the tracker!
Need help right now? Visit the chat room
Post Reply