Customize GUI Skin

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
davidjohnharrison
Posts: 7
Joined: Wed Nov 09, 2005 5:43 pm

Customize GUI Skin

Post by davidjohnharrison »

I read on the Irrlicht homepage that Irrlicht supports customized GUI skins. I was wondering how to do this. I have searched for hours, but found nothing.

I am probably using the incorrect terms, so heres what I want to do;

when I create a GUI, I would like to change the look of it, so that instead of using the default look, it uses a look that i created.

thank you in advance
pfo
Posts: 370
Joined: Mon Aug 29, 2005 10:54 pm
Location: http://web.utk.edu/~pfox1

Post by pfo »

Skinning the GUI is just a matter of setting a font, and changing the colors of GUI elements. You can get some pretty neat results, check

IGUIEnvironment->getSkin()->setColor(id, color);

id is a gui::EGDC_DEFAULT_COLOR enumeration, and color is a video::SColor describing the desired color.
krama757
Posts: 451
Joined: Sun Nov 06, 2005 12:07 am

Post by krama757 »

But what about changing specific things like the rounded-ness of the borders or the style of the scroll bar?

I suppose we have to make our own GUI for this purpose ?
Conquistador
Posts: 340
Joined: Wed Sep 28, 2005 4:38 pm
Location: Canada, Eh!

re:

Post by Conquistador »

On the development page, Niko stated that he's planning on image GUI elements, so hopefully you'll be able to make your own GUI within the next few releases.
krama757
Posts: 451
Joined: Sun Nov 06, 2005 12:07 am

Post by krama757 »

Aye true. Cant wait :D
Twinsen
Posts: 27
Joined: Thu Nov 03, 2005 2:05 pm
Location: Gold Coast

Post by Twinsen »

This engine keeps getting better and better, love it!
"Sorry, Twinsen, you don't have enough Kashes. "- Yeah right pal
davidjohnharrison
Posts: 7
Joined: Wed Nov 09, 2005 5:43 pm

Post by davidjohnharrison »

@pfo
Great, thanks alot :D
I sort of get it. Can't get it to work, but hey, i sort of get it :D

@krama757
That's exactly what I wanted to do, but it looks like its not possible yet :(

@everyone
Awww, I Can't wait for the next few releases :cry:
This engine doeas indeed get better and better :D

Actually, if I get enough time I might add some more GUI functions to the engine for this sort of thing
Guest

Post by Guest »

as far as I understood that right, you can also implent your own implementation of GUISkin (overriding the virtual functions like "DrawButton" etc.) and then apply your skin to the enviroment....
Post Reply