A movable frame with mostly colored statistics about the units; player, pet, target, targettarget and party1/4.
To move just hold alt and drag.
This addon supports blizzard clickcasting and clique clickcasting.
66% to 100% Green
33% to 66% Yellow
0% to 33% Red
Power (anyone got a better colorscheme for this?)
66% to 100% Lightblue
33% to 66% white
0% to 33% darkgrey
This is for all classes as the colour should tell you its status rather then what type of power it is.
The class is coloured as its raid class colour.
The name is coloured as the unit's standing to you. Red for hostile, yellow for neutral and green for friendly. It will be grey when the unit is tapped.
The other flags are: DEAD, Offline, PvP, L (party leader), and combo points (an uncolored number)
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.
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.
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)
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)
-- sOut = string.format('|cff%s%s|r', self.Colours.Red, Health)
local HealthText = function(h)
if h > 999 then
return string.format("%.1f", h / 1000)
return string.format('|cff%s%s/%s %s|r', sColor, HealthText(cHealth), HealthText(mHealth), Health)
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.
I replaced my group frames with this last night, after I tweaked the ALT-button-to-drag code - the black box showing every time I hit a keybind with an ALT in it was getting annoying, and so I changed it to CTRL/SHIFT/ALT to drag, which worked well enough. It'd be convenient to permanently lock the frame down (and unhook the ALT key), dunno if that's on your TO-DO.
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.
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.
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.
use the search, stop hijacking threads, read the wowwiki on date() and read the lua manual on date()
but i guess you knew this before posting.
The editbox thing, use Visor. That's what it's for. (Tip: VisorEditBox)
its supposed to be a versioning system for developers and beta testers.
If you were supposedly not lazy and suppose you look at some documentation, or google, or use the wiki, or hell even the SEARCH on this forum - you'd know. Lazyness is not appreciated. thats not how the internet works.
learn to use the search. must be the fourth post.
secondly, there is VisorGUI. lern2use search and the next button
how about deleting the thread, its totally useless, or make stickie to prove the search buttion does have its use