Thread Tools Display Modes
03-20-11, 11:38 AM   #1
tenub
A Flamescale Wyrmkin
AddOn Author - Click to view addons
Join Date: Sep 2008
Posts: 111
Unitframes Health Bar Ticks

I know it's been done in many other games and I'm surprised that I haven't come across an addon / configuration for an addon in WoW like it. I'm looking for something that will show a health bar in a certain number of ticks. For example, it would be composed of 10 squares that each represent 10% of the total health and when the unit fell below 90% the first tick would disappear, etc. Anyone that can help me if there has been something like this released in the past?
  Reply With Quote
03-20-11, 11:54 AM   #2
nin
A Cobalt Mageweaver
AddOn Author - Click to view addons
Join Date: Dec 2008
Posts: 213
First layout i thought of is this

http://www.wowinterface.com/download...ated.html#info

Might not be exactly what you're after, but it's the only layout i have seen that has that style..
  Reply With Quote
03-20-11, 12:09 PM   #3
tenub
A Flamescale Wyrmkin
AddOn Author - Click to view addons
Join Date: Sep 2008
Posts: 111


This is a quick image in Photoshop that I whipped up of what I'm looking for. I know PitBull and others can use textures like these, but they don't truly work as intended, ie. a tick will become partially filled as the unit loses health rather than waiting for the unit to hit 90%, 80%, 70%, etc. HP before removing a tick completely.
  Reply With Quote
03-20-11, 07:15 PM   #4
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
Why would you want that?
  Reply With Quote
03-21-11, 12:11 AM   #5
tenub
A Flamescale Wyrmkin
AddOn Author - Click to view addons
Join Date: Sep 2008
Posts: 111
Not just because it looks better and is unique (at least to the WoW UI scene), but because it can fit a futuristic UI more easily than anything else. Also, I had the idea of a numberless health frame that I had posted a while back and I just remembered how cool I thought it was:

http://www.wowinterface.com/forums/s...postcount=4334
  Reply With Quote
03-21-11, 05:12 AM   #6
Nobgul
A Molten Giant
 
Nobgul's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2009
Posts: 693
if said health bar is for nameplates then using tidyplates with the starcraft theme would work, I think.

there is a set of unit frames I saw a while ago, they were in the old post your ui thread or the new one. they were vertical ones that had the lines like your looking for.
__________________
[SIGPIC][/SIGPIC]
  Reply With Quote
03-21-11, 07:37 AM   #7
grom
A Deviate Faerie Dragon
Join Date: Jun 2006
Posts: 17
i think nobgul means Aptechka
  Reply With Quote
03-21-11, 10:39 AM   #8
tenub
A Flamescale Wyrmkin
AddOn Author - Click to view addons
Join Date: Sep 2008
Posts: 111
If you look closely some of the ticks are just partially filled which unfortunately isn't what I'm after and can already by done with addons such as PitBull.
  Reply With Quote
03-21-11, 09:27 PM   #9
Torhal
A Pyroguard Emberseer
 
Torhal's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2008
Posts: 1,196
So basically you don't want an accurate reflection of health - you want strict 10% decrements.
__________________
Whenever someone says "pls" because it's shorter than "please", I say "no" because it's shorter than "yes".

Author of NPCScan and many other AddOns.
  Reply With Quote
03-21-11, 10:50 PM   #10
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
I still don't understand why you'd want such an inaccurate health display, but any addon could easily be modified to do this. Figure out where it sets the health bar value; it should look something like this:

Lua Code:
  1. local currentHealth = UnitHealth(unit)
  2. local maximumHealth = UnitHealthMax(unit)
  3. healthBar:SetMinMaxValues(0, maximumHealth)
  4. healthBar:SetValue(currentHealth)

Change it to something like this:

Lua Code:
  1. local currentHealth = UnitHealth(unit)
  2. local maximumHealth = UnitHealthMax(unit)
  3. local percentHealth = currentHealth / maximumHealth
  4. local nearestTenth = ceil(percentHealth * 10) / 10
  5. healthBar:SetMinMaxValues(0, 1)
  6. healthBar:SetValue(nearestTenth)
  Reply With Quote
03-21-11, 11:00 PM   #11
tenub
A Flamescale Wyrmkin
AddOn Author - Click to view addons
Join Date: Sep 2008
Posts: 111
Originally Posted by Phanx View Post
I still don't understand why you'd want such an inaccurate health display
It's just a concept. If you take a look at the post I quoted you'll see that I want to make a numberless display of the health with the top ticks representing 10% and the bottom smaller ticks representing 1%.
  Reply With Quote
03-22-11, 07:11 AM   #12
Ketho
A Pyroguard Emberseer
 
Ketho's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 1,026
I can even recall someone asking for Zelda health frames

But I never was able to find that specific addon, if it still exists
  Reply With Quote
03-22-11, 08:12 AM   #13
Chibi
A Cyclonian
 
Chibi's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2005
Posts: 43
Simple Hud does this:
http://www.wowinterface.com/download...SimpleHUD.html

No idea if that version still works (would probably need a toc bump), I have a local copy that's been tweaked and patched bit-by-bit over the years.
__________________
Perhaps...
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Search/Requests » Unitframes Health Bar Ticks


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off