New GUI skin [update: new skins, support for 1.5/1.6]

Post those lines of code you feel like sharing or find what you require for your project here; or simply use them as tutorials.
Post Reply
Klasker
Posts: 230
Joined: Thu May 20, 2004 8:53 am
Contact:

New GUI skin [update: new skins, support for 1.5/1.6]

Post by Klasker »

I made a new skin for Irrlicht. It uses textures to draw the elements, and their borders. There isn't much to it that you can't see on the screenshot.

The borders automatically scale down when their element is too small to contain their preferred dimensions. It is fairly easy to change how the skin looks, by changing the textures and the configuration file. The configuration file holds information about which textures to use, how thick the borders are on the texture, and how thick they should be on the screen.

Image

The file contains an example program that uses the GUI. To use it in your own project, just copy include all the headers and source files, except for main.cpp.

Download (1 MB)

Hope ya like it! 8)

Btw, sorry if this isn't the right place to post this. Between project announcements, open discussion, and code snippets, I wasn't sure where it belonged. It went to code snippets.
Last edited by Klasker on Sun Dec 02, 2007 11:09 am, edited 1 time in total.
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

That one looks nice :) And yeah, correct forum :wink:
GuerillaSoftworks
Posts: 83
Joined: Wed May 23, 2007 6:11 pm

Post by GuerillaSoftworks »

That looks great. Nice one. :D
Guerilla Softworks

New Guerilla Softworks website under construction - http://guerillasoftworks.awardspace.com
eneru
Posts: 40
Joined: Tue Apr 10, 2007 8:38 am

Post by eneru »

thanks for the code, it will help me make my skins scalable too when i need to ;)
olivehehe_03
Posts: 157
Joined: Tue Mar 20, 2007 8:30 am

Post by olivehehe_03 »

That looks really good, nice work
Tell me what you cherish most. Give me the pleasure of taking it away.
JPulham
Posts: 320
Joined: Sat Nov 19, 2005 12:06 pm

Post by JPulham »

Great looking skin... definitely worth keeping :D
pushpork
dejai
Posts: 522
Joined: Sat Apr 21, 2007 9:00 am

Post by dejai »

Is it possilbe to change this so it has like start, options and credits? If you wanted to use if for your game?
Programming Blog: http://www.uberwolf.com
Halan
Posts: 447
Joined: Tue Oct 04, 2005 8:17 pm
Location: Germany, Freak City
Contact:

Post by Halan »

strange

if some win32 windows is behind the irrlicht-window the gui flickers :(

greets,
halan
Dances
Posts: 454
Joined: Sat Jul 02, 2005 1:45 am
Location: Canada
Contact:

Post by Dances »

dejai wrote:Is it possilbe to change this so it has like start, options and credits? If you wanted to use if for your game?
Its a skin. Of course. When you change GUI elements you aren't skinning.
Halan
Posts: 447
Joined: Tue Oct 04, 2005 8:17 pm
Location: Germany, Freak City
Contact:

Post by Halan »

if i wanna use it it says "not possible to create instance of abstract class"
Klasker
Posts: 230
Joined: Thu May 20, 2004 8:53 am
Contact:

Post by Klasker »

It was made for Irrlicht 1.3. Maybe something changed in the API for Irrlicht 1.3.1...
iZigoo
Posts: 53
Joined: Fri Feb 23, 2007 1:32 pm

Post by iZigoo »

Hey. It looks great.
I hope you keep on developing it.

Send some updates if you have new functions.

iZigoo
-------------------------------------------------------
iZigoo - The open 3D internet

iZigoo Homepage
stodge
Posts: 216
Joined: Fri Dec 05, 2003 5:57 pm

Post by stodge »

It looks nice but the sceenshot is too dark, so I can't make it out. Do you have any lighter images?
What does the debugger tell you? You did use the debugger, didn't you?
Dances
Posts: 454
Joined: Sat Jul 02, 2005 1:45 am
Location: Canada
Contact:

Post by Dances »

:roll: Maybe you need to turn up the brightness/contrast on your monitor. If you've already done that, then its time to buy a new one.
stodge
Posts: 216
Joined: Fri Dec 05, 2003 5:57 pm

Post by stodge »

Dances wrote::roll: Maybe you need to turn up the brightness/contrast on your monitor. If you've already done that, then its time to buy a new one.
:roll:
What does the debugger tell you? You did use the debugger, didn't you?
Post Reply