Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Author
Message
JohnnyMeek
6
Years of Service
User Offline
Joined: 23rd Apr 2013
Location: Slovenia
Posted: 2nd Sep 2016 08:09 Edited at: 2nd Sep 2016 08:21
Health Meters.

Something I put together as part of a larger GUI project, but thought I'd share this component as it might be useful to a few of you.

You can define circular, vertical or horizontal meters.

Full code with examples is attached. I should add that this code is an extension of some other health meter code posted on here, can't remember who did it, but thanks...

Attachments

Login to view attachments
Digital Awakening
AGK Developer
16
Years of Service
User Offline
Joined: 27th Aug 2002
Location: Sweden
Posted: 2nd Sep 2016 08:53
I am curious about how you did this. Thanks for sharing
hexGEAR
16
Years of Service
User Offline
Joined: 3rd Nov 2002
Location: Naytonia
Posted: 2nd Sep 2016 10:04
@JohnnyMeek:
Really nice! Especially the circular health meters.
JohnnyMeek
6
Years of Service
User Offline
Joined: 23rd Apr 2013
Location: Slovenia
Posted: 2nd Sep 2016 10:36
You can play around with the sprite images that are used to get different effects. I blurred the images top and bottom on some to get an anti-alias effect.
nickele upgraded
5
Years of Service
User Offline
Joined: 20th Dec 2013
Location: Birthplace of Democracy
Posted: 2nd Sep 2016 12:15
Very nice and very useful code!
Congratulations for your idea sir JohnnyMeek!
Stab in the Dark software
Valued Member
16
Years of Service
User Offline
Joined: 12th Dec 2002
Playing: Badges, I don't need no stinkin badges
Posted: 7th Sep 2016 00:38
Very clean code, Thanks!
The coffee is lovely dark and deep,and I have code to write before I sleep.

Login to post a reply

Server time is: 2019-05-20 05:22:23
Your offset time is: 2019-05-20 05:22:23