Wintermute Engine Forum

Wintermute Engine => Technical forum => Topic started by: hubertMichael on April 17, 2012, 07:54:13 PM

Title: GUI element
Post by: hubertMichael on April 17, 2012, 07:54:13 PM
Hi

I want make some kind of health bar for my character. It should be displayed all the time in the same place on screen. I have no idea how to do it. I need some tip, some example will be awesome.

Thanks.
Title: Re: GUI element
Post by: hubertMichael on April 19, 2012, 12:22:05 AM
I did it :)

A little hack but it works. I did window object as a background for my health bar. Then I did nested window object as a indicator of energy level. Thanks to GetWidget method I can control position of my nested window. So displaying energy level is like updateing position of nested window.
Title: Re: GUI element
Post by: piere on April 20, 2012, 01:42:58 AM
Awesome, what kind of game are you making?
Title: Re: GUI element
Post by: hubertMichael on April 20, 2012, 04:06:57 PM
It's cyberpunk adventure game with rpg elements. I'm trying to introduce something new to adventure game. I hope that everything will be ok. It is now :)
Title: Re: GUI element
Post by: piere on April 21, 2012, 08:27:14 AM
Hey send me some screen shots... very interested. Im doing a fantasy rpg with adventure elements so we might be making a similar game !
Title: Re: GUI element
Post by: hubertMichael on April 23, 2012, 08:15:52 PM
I will show you some screenshots but not now. I have to finish few things. Don't worry I will show something soon :)