Download
(34 Kb)
Download
Updated: 06-10-09 01:36 AM
Pictures
File Info
Updated:06-10-09 01:36 AM
Created:03-09-09 11:54 PM
Downloads:1,600
Favorites:11
MD5:
AlarmHUDpie
Version: 2.4
by: lab1702 [More]
=================================
AlarmHUDpie 2.4 by Kloo @ Malygos
=================================


Shows target health, target threat, player health and player power as pie charts.
LibGraph-2.0 is embedded, so you don't need to install it separately.


There are 4 pie charts:

Top left: Target health. 35% health is highlighted slightly for us mages.
Target name is class colored, the number to the right is remaining health,
and health percent is below the pie.
Around target health is a target power ring, colored by target power type.

Top right: Threat percent. The color is based on threat status:
Dark Green = Not on threat table.
Gray = Low threat.
Yellow = Higher than tank, but not tanking yet.
Red = Tanking.
Orange = Losing threat.

Bottom left: Player health. Current above, max below.

Bottom right: Player power. Current above, max below.
0.1 - Initial release. Consider this experimental...
1.0 - Added numbers to health and threat pies. This makes it a stand alone HUD
as opposed to a module of the old AlarmHUD.
Added 35% target health highlighting.
Made power pie change color depending on active power type.
1.1 - Tweaked colors.
Added target name text and threat status text.
Some code cleanup, shouldn't have any redundant lines of code or screen updates now.
1.2 - Text for target name and target health is now class color.
1.3 - Added support for raid target icons, shown to the left of the target health pie.
1.4 - Added health percent number above the health pie.
1.5 - Added health and power max and current values around those pies.
Current values shown above the pie, max values below.
Pulled numbers in closer to the pies.
2.0 - Embedded LibGraph-2.0, removing the need to install it separately.
Added an outer ring around the target health pie that shows target power,
colored by target power type.
Do not show empty threat pie if not on target's threat table.
2.1 - Very minor tweak to target health pie radius.
Remove custom colors from most text to make them more readable,
only the target name changes color depending on target class.
Got rid of all checking for dead or ghost, show target and self info
when dead in the same way as built in unit frames.
2.2 - TOC bump for 3.1.
2.3 - Fixed bug with target name color when targeting a vehicle.
2.4 - Added support for Deathknight runic power.
Tweaked radius and offsets of pies. More easy to configure in LUA file now.
Optional Files (0)


Post A Reply Comment Options
Old 03-12-09, 12:08 PM  
pHishr
A Flamescale Wyrmkin
 
pHishr's Avatar
AddOn Author - Click to view AddOns

Forum posts: 105
File comments: 124
Uploads: 14
Fantastic AddOn!
__________________
CHAMPION OF NEWERTH!!!!!!
pHishr is offline Report comment to moderator  
Reply With Quote
Old 03-13-09, 05:12 PM  
rezan
A Kobold Labourer

Forum posts: 0
File comments: 2
Uploads: 0
nice hud

like the hud ,very simple.great work.
rezan is offline Report comment to moderator  
Reply With Quote
Old 03-13-09, 06:25 PM  
lab1702
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 12
Uploads: 14
I'm glad you like it! I think I've spent more time thinking about how to present just enough information on the screen than actually playing the game lately..
lab1702 is offline Report comment to moderator  
Reply With Quote
Old 03-20-09, 02:06 PM  
Jay1728
A Defias Bandit

Forum posts: 3
File comments: 3
Uploads: 0
Excellent addon Could I request an option to show your current/max health/mana next to player pies in manner of how it's done with target pie? Other than that... GREAT JOB =]
Last edited by Jay1728 : 03-21-09 at 10:13 AM.
Jay1728 is offline Report comment to moderator  
Reply With Quote
Old 03-27-09, 10:23 AM  
Nakawe
A Kobold Labourer

Forum posts: 0
File comments: 67
Uploads: 0
Liking the concept here. Are there any plans in the future to make the pie's movable and adding target mana as well??


Thanks for sharing your mod.
Last edited by Nakawe : 03-27-09 at 10:24 AM.
Nakawe is offline Report comment to moderator  
Reply With Quote
Old 03-30-09, 10:47 AM  
lab1702
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 12
Uploads: 14
Just uploaded a new version that adds a target mana ring around the target health pie.

Originally posted by Nakawe
Liking the concept here. Are there any plans in the future to make the pie's movable and adding target mana as well??


Thanks for sharing your mod.
lab1702 is offline Report comment to moderator  
Reply With Quote
Old 03-30-09, 10:51 AM  
lab1702
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 12
Uploads: 14
Please note

I embedded LibGraph-2.0, so you don't need to install it as a separate addon for this to work.
lab1702 is offline Report comment to moderator  
Reply With Quote
Old 03-31-09, 02:39 PM  
Nakawe
A Kobold Labourer

Forum posts: 0
File comments: 67
Uploads: 0
Oh nice integration of mana onto target. It looks so good I wish the player setup was the same.

Could you please tell me what lines in lua to change to move the pies? I have looked and cant seem to find how they are located where they are.



If player set up was same as targetpie I could layout like this.

PlayerPie ThreatPie TargetPie




thanks
Last edited by Nakawe : 03-31-09 at 02:40 PM.
Nakawe is offline Report comment to moderator  
Reply With Quote
Old 04-09-09, 01:52 AM  
Johndu
A Kobold Labourer
 
Johndu's Avatar

Forum posts: 0
File comments: 15
Uploads: 0
Originally posted by Nakawe
Oh nice integration of mana onto target. It looks so good I wish the player setup was the same.

Could you please tell me what lines in lua to change to move the pies? I have looked and cant seem to find how they are located where they are.


If player set up was same as targetpie I could layout like this.

PlayerPie ThreatPie TargetPie

thanks
FYI, you can check here for CreateGraphPieChart() function; By other words, you can just set any pix value as below:

@ Line:16
Code:
local targetPowerPie = Graph:CreateGraphPieChart("AlarmHUDpieTargetPower", UIParent, "CENTER", "CENTER", -UIParent:GetWidth() / 6, UIParent:GetHeight() / 6, UIParent:GetHeight() / 11, UIParent:GetHeight() / 11)

change ... "-UIParent:GetWidth() / 6, UIParent:GetHeight() / 6 " ..

to  -200,200
etc..

Hope it help.
Johndu is offline Report comment to moderator  
Reply With Quote
Old 04-21-09, 02:01 PM  
Exaeliter
A Kobold Labourer

Forum posts: 0
File comments: 6
Uploads: 0
Here's a problem I encountered.

I tried moving the text strings for health, mana, ... over their pies, but they seem to vanish below them when I do. Setting different layers in CreateFontString() alone doesn't work, the pies are still above everything else. From what I read the CreateGraphPieChart() function doesn't set a specific layer for the pies.

Any idea how to fix this?
Exaeliter is offline Report comment to moderator  
Reply With Quote
Old 06-23-09, 12:03 PM  
Chrome67
A Murloc Raider
 
Chrome67's Avatar
AddOn Author - Click to view AddOns

Forum posts: 9
File comments: 53
Uploads: 7
Mod'ing the mod... (Rage & Energy tracking added)

Hope you don't mind, but I noticed that Rage and Energy weren't tracked within the powerpie accurately. So, I added the code to make that workable...

I've got a few other ideas to throw in as well, as personal preference kinda changes, but not sure if you're interested in having them in your code.

To make the appropriate changes do the following:
@ line 216 replace the code up until "powerPie:SetScript("OnEvent"," with...
Code:
powerPie:RegisterEvent("UNIT_DISPLAYPOWER")
if select(2, UnitClass("player")) == "DEATHKNIGHT" then
  powerPie:RegisterEvent("UNIT_RUNIC_POWER")
  powerPie:RegisterEvent("UNIT_MAXRUNIC_POWER")
else
	if select(2, UnitClass("player")) == "WARRIOR" then
		powerPie:RegisterEvent("UNIT_RAGE")
		powerPie:RegisterEvent("UNIT_MAXRAGE")
	else
		if select(2, UnitClass("player")) == "ROGUE" then
			powerPie:RegisterEvent("UNIT_ENERGY")
			powerPie:RegisterEvent("UNIT_MAXENERGY")
		else
  			powerPie:RegisterEvent("UNIT_MANA")
  			powerPie:RegisterEvent("UNIT_MAXMANA")
  		end
  	end
end
this is a quick hack, there may be a much more efficient way to make this happen, just didn't think about it too long.

If you like it feel free to include it as you wish.
Chrome67 is offline Report comment to moderator  
Reply With Quote
Old 06-23-09, 12:14 PM  
Chrome67
A Murloc Raider
 
Chrome67's Avatar
AddOn Author - Click to view AddOns

Forum posts: 9
File comments: 53
Uploads: 7
Druid mana & rage/energy tracking together idea...

I used to use a mod that tracked mana along with rage or energy (depending on your current shifted shape) so you knew when your mana was back up enough to switch back for whatever use you have for it. I'll dig into the API a bit more to make sure it will work, but I'd like to put a mana circle around rage/energy circle so both can be tracked (much like your targetpie), although I'm not sure if "UNIT_MANA" ticks when shapeshifted into another form.

Another idea I have is to perhaps add a bit of a drop shadow to the circles for a more 3D effect (minor I noticed based on your code).

If you don't mind I'll give them both a shot and post some screens for your liking.
Chrome67 is offline Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: