Creating GUI in irrlicht

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
Q
Posts: 6
Joined: Thu Mar 09, 2006 2:23 pm

Creating GUI in irrlicht

Post by Q »

I want to create my own GUI in Irrlicht for a project I'm working on. Do I need to disable the default GUIEnvironment? Are there any tutorials about this?
Acki
Posts: 3496
Joined: Tue Jun 29, 2004 12:04 am
Location: Nobody's Place (Venlo NL)
Contact:

Post by Acki »

Have a look at the tuorials included to the sdk:
05.UserInterface
while(!asleep) sheep++;
IrrExtensions:Image
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
Q
Posts: 6
Joined: Thu Mar 09, 2006 2:23 pm

Post by Q »

Thanx for the fast reply Acki but I mean to create my own GUI subsystem not use the build in one.
r3i
Posts: 147
Joined: Wed Jun 29, 2005 10:15 am
Location: Sorrento
Contact:

Hi

Post by r3i »

If you want edit the gui you must change CGUI*.cpp files of source of irrlicht.
Moreover...if you look at features you 'll see that interface system is skinable and that you can edit colors, fonts, style of buttons and alpha level.
If you don't like the style of windows_classic, then you must consider to create your GUI.

There aren't tutorials on this purpouse because it means change source code of Irrlicht.
"We work in the dark, we do what we can, we give what we have, Our doubt is our passion and our passion is our task. The rest: is art of Madness" (H.James)
Guest

Post by Guest »

Then maybe I should just stick to the built in GUI.

Is it possible (without changing irrlicht source) to change buttons so that when they display the pressed image they display it as is instead of using the pressed button effect?
r3i
Posts: 147
Joined: Wed Jun 29, 2005 10:15 am
Location: Sorrento
Contact:

Post by r3i »

Yeah: take a look at the api on the class IGUIButton: now with irr14 you can use also button transparent so your button 'll have the image shape.
"We work in the dark, we do what we can, we give what we have, Our doubt is our passion and our passion is our task. The rest: is art of Madness" (H.James)
Witch1986
Posts: 3
Joined: Wed Jul 12, 2006 10:29 pm

Post by Witch1986 »

One question!

When I use the transparancy (Alphachannel) I will dont get the Shape of the Image!

I will see my image and the grey from the Button because only the image is transparent and not the button!

Where is my failure?

Or its that normal??

Sorry for my bad english!

Witch
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Post by CuteAlien »

Witch1986 wrote: When I use the transparancy (Alphachannel) I will dont get the Shape of the Image!

I will see my image and the grey from the Button because only the image is transparent and not the button!
That's because of the default skin settings. In IGUISkin you can set several colors for gui-elements. Try setting the alpha color values of the following color-types to 0:
EGDC_3D_DARK_SHADOW
EGDC_3D_SHADOW
EGDC_3D_FACE
EGDC_3D_HIGH_LIGHT
Dirtbiker
Posts: 29
Joined: Wed Aug 31, 2005 7:02 am
Location: U.S.
Contact:

Post by Dirtbiker »

Is it possible to change the element transparency for specific buttons? I'm using the GUI buttons with images to make a specific menu and I don't want to effect the other buttons.
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Post by CuteAlien »

Dirtbiker wrote:Is it possible to change the element transparency for specific buttons? I'm using the GUI buttons with images to make a specific menu and I don't want to effect the other buttons.
Unfortunatly not. I'm having currently a similar problem. For transparency i would recommend to try a gui-design where all buttons work similar - for example disable transparency and set grey images for the buttons where you just want a grey(or whatever color) background.

I'm having that problem because i need specific colors for some statics. But i think i won't get arround hacking the engine there a little. I think i'll add an override-skin for specific elements the same way as there are already override fonts for some elements.
Acki
Posts: 3496
Joined: Tue Jun 29, 2004 12:04 am
Location: Nobody's Place (Venlo NL)
Contact:

Post by Acki »

Right, I also had this problem... :shock:
Therefore I created extensions for this !!! 8)

With my button extension every button can have it's own text color and the border (background) can set to in-/visible for every single button !!!

The extension is included to my IrrExtensions !!! 8)
while(!asleep) sheep++;
IrrExtensions:Image
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
Post Reply