FuBar_CorkFu is an addon that is simplare to NeedList. They both show when needs exist in your party/raid that you can satisfy. IE for a priest if anyone in your party/raid doesn have PWF it will show them in the list along with the PWF icon so you know who and what the need is. They also both alow you to click that player/icon in the list to cast PWF on that unit. My plan it to take that need and place it right next to the unit in the unit frame where the buffs whould normaly go. That way everything is pretty much in one place.
Squish gives you alist of who needs healing etc by creating list of those with the greatest deficient in health. It also displays 'H' next to any of those units that are current getting a heal cast on them. That way if someone else in your group/raid is healing that unit you know it and can instead heal somene else avoiding double healing. It also dispalys an "A" for unit that have agro so you know who is taking a beating.
There is really much more to both addons but for my purposes in the 'H'/'A' flags and unit buff needs that I'm after to tie into my unitframes.
Oh and ID as I'm sure you've already figured out thanks to you and idUnitWatch/idUnitFrames I've started my own variant based 99% on the combination of those 2. In other works it's pretty much a cut/past from your code :P
Here is what I'm shooting for. If you remember the orginal cast party interface, it was a small grouping for bars showing yourself and party members health, mana and buffs. I still like something like that best that groups everything for a small party into one place, keeps in nice and compact and alows for simple click healing. Now take that idea and mix in idUnitWatch/idUnitframes and you start to get an idea of what my little guy will look like.
Basic layout:
Health/mana bars in the middle with overlaying text of defict health. Health on top, mana below. Health being 2/3 height, mana 1/3.
Name, class, level to the left side of the bars.
Flags to the lft of the name, ie PvP, Rest, Combat etc etc.
Needs to the right of the bars. Needs coming from FuBar_CorkFu. Needs will be clickable to cast buff/cures.
Hopfully add Squishy support to the Flags area to show who has agro, is getting a heal etc.
Both Squishy and CorkFu are optional dependancies but wihtout CorkFu you won't see any buffs LOL.
I don't know if it's something to do with my setup or not but I don't see your TargetTarget frame showing up. I see you set one up in the code but I'm not seeing it in game.
I updated all my SVN stuff last night and this morning Clique click casting stopped working with idUnitWatch. I know it worked yesterday so I'm really not sure what changed. It looks like for whatever reason you Clicque plugin isn't getting enabled inside of Clique anymore. Again this could be something else going on with my addons I havn't had a chance to really try to track it down yet.
Ya I'm not for bloating things with lots of options especialy when they basicly are exactly as I want to begin with :)
Here is the tweak I've made to show actual unit health numbers. I also had to widen the health text box a bit but that's not shown here. Note I made this change prior to your update last night so I guess I'll have to redo it to your new version. I think I'll just make a new function and change the one spot where you make a call to it to call my new version so it's easier to tweak future updates.
function idUnitWatch:getHealth(sUnit)
local cHealth, mHealth, MHfound = UnitHealth(sUnit), UnitHealthMax(sUnit), false
if (MobHealth3 and not UnitIsFriend("player", sUnit) ) then
cHealth,mHealth,MHfound = MobHealth3:GetUnitHealth(sUnit, cHealth,mHealth)
end
local Health = math.floor(cHealth / mHealth * 100)
local sColor = self.Colours.Red
if Health >= 66 then
sColor = self.Colours.Green
--sOut = string.format('|cff%s%s|r', self.Colours.Green, Health)
elseif Health >= 33 then
sColor = self.Colours.Yellow
--sOut = string.format('|cff%s%s|r', self.Colours.Yellow, Health)
--else
-- sOut = string.format('|cff%s%s|r', self.Colours.Red, Health)
end
local HealthText = function(h)
if h > 999 then
return string.format("%.1f", h / 1000)
else
return h
end
end
return string.format('|cff%s%s/%s %s|r', sColor, HealthText(cHealth), HealthText(mHealth), Health)
end
I've only taken this for a quick test drive but so far I like it a lot.
The only bug I've seen so far is with pets, specificly my own pet. I'm betting the old Unknown for name upone logging in with the pet active and when hopping a bird and the pet poofs it remains in the frame. Oh and perahps a nice touch for pets would be to change thier class text to "Pet" instead of "War".
I know you arn't big on options in your addons Id so I won't ask for any and might just go in a do a tiny bit of tweaking to the text display if I get a chance. Specifily I'm thinking of adding more health info like exact health/max health type of thing and perhaps MobHealth3 support again for the actual/max text if I actaly add it.
If not for the lack of filtered buff icons I'd be able to use this for my unit frames/HUD all in one.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Squish gives you alist of who needs healing etc by creating list of those with the greatest deficient in health. It also displays 'H' next to any of those units that are current getting a heal cast on them. That way if someone else in your group/raid is healing that unit you know it and can instead heal somene else avoiding double healing. It also dispalys an "A" for unit that have agro so you know who is taking a beating.
There is really much more to both addons but for my purposes in the 'H'/'A' flags and unit buff needs that I'm after to tie into my unitframes.
FYI I've also started posting at http://wowacereview.wordpress.com/ (my little blog) my progress on this. No code availible yet though.
Here is what I'm shooting for. If you remember the orginal cast party interface, it was a small grouping for bars showing yourself and party members health, mana and buffs. I still like something like that best that groups everything for a small party into one place, keeps in nice and compact and alows for simple click healing. Now take that idea and mix in idUnitWatch/idUnitframes and you start to get an idea of what my little guy will look like.
Basic layout:
Health/mana bars in the middle with overlaying text of defict health. Health on top, mana below. Health being 2/3 height, mana 1/3.
Name, class, level to the left side of the bars.
Flags to the lft of the name, ie PvP, Rest, Combat etc etc.
Needs to the right of the bars. Needs coming from FuBar_CorkFu. Needs will be clickable to cast buff/cures.
Hopfully add Squishy support to the Flags area to show who has agro, is getting a heal etc.
Both Squishy and CorkFu are optional dependancies but wihtout CorkFu you won't see any buffs LOL.
I don't know if it's something to do with my setup or not but I don't see your TargetTarget frame showing up. I see you set one up in the code but I'm not seeing it in game.
I updated all my SVN stuff last night and this morning Clique click casting stopped working with idUnitWatch. I know it worked yesterday so I'm really not sure what changed. It looks like for whatever reason you Clicque plugin isn't getting enabled inside of Clique anymore. Again this could be something else going on with my addons I havn't had a chance to really try to track it down yet.
Here is the tweak I've made to show actual unit health numbers. I also had to widen the health text box a bit but that's not shown here. Note I made this change prior to your update last night so I guess I'll have to redo it to your new version. I think I'll just make a new function and change the one spot where you make a call to it to call my new version so it's easier to tweak future updates.
The only bug I've seen so far is with pets, specificly my own pet. I'm betting the old Unknown for name upone logging in with the pet active and when hopping a bird and the pet poofs it remains in the frame. Oh and perahps a nice touch for pets would be to change thier class text to "Pet" instead of "War".
I know you arn't big on options in your addons Id so I won't ask for any and might just go in a do a tiny bit of tweaking to the text display if I get a chance. Specifily I'm thinking of adding more health info like exact health/max health type of thing and perhaps MobHealth3 support again for the actual/max text if I actaly add it.
If not for the lack of filtered buff icons I'd be able to use this for my unit frames/HUD all in one.