dunno if it was post before, i search forum but can't found anything so :
Code for pet hapinness color on pet bar health :
Based on latest Ouf from Google code and inspirated by p3lim and others posters code & functions =)
-- l 17 add :
local happiness = GetPetHappiness()
-- my update health function :
local updateHealth = function(self, event, bar, unit, min, max)
happiness = GetPetHappiness()
if(UnitIsDead(unit)) then
bar:SetValue(0)
bar.value:SetText"Dead"
elseif(UnitIsGhost(unit)) then
bar:SetValue(0)
bar.value:SetText"Ghost"
elseif(not UnitIsConnected(unit)) then
bar.value:SetText"Offline"
else
local c = max - min
if(c > 0) then
bar.value:SetFormattedText("-%d", c)
else
bar.value:SetText(max)
end
end
if(UnitIsTapped(unit) and not UnitIsTappedByPlayer(unit) or not UnitIsConnected(unit)) then
self.Name:SetTextColor(.6, .6, .6)
self.Power:SetStatusBarColor(.6, .6, .6)
elseif unit=="pet" then
--Number - the numerical happiness value of the pet (1 = unhappy, 2 = content, 3 = happy)
if (happiness == 1) then
bar:SetStatusBarColor(1,0,0)
elseif (happiness == 2) then
bar:SetStatusBarColor(1,0.65,0)
else
bar:SetStatusBarColor(0.56,0.74,0.56)
end
else
self:UNIT_NAME_UPDATE(event, unit)
local color = UnitIsPlayer(unit) and RAID_CLASS_COLORS[select(2, UnitClass(unit))] or UnitReactionColor[UnitReaction(unit, "player")]
if(color) then bar:SetStatusBarColor(color.r, color.g, color.b) end
end
end
-- mu update power cause il like have pet energy in good color :
local updatePower = function(self, event, bar, unit, min, max)
if(min == 0) then
bar.value:SetText()
elseif(UnitIsDead(unit) or UnitIsGhost(unit)) then
bar:SetValue(0)
elseif(not UnitIsConnected(unit)) then
bar.value:SetText()
else
bar.value:SetFormattedText("%d | ", min)
end
if(UnitIsTapped(unit) and not UnitIsTappedByPlayer(unit) or not UnitIsConnected(unit)) then
bar:SetStatusBarColor(.6, .6, .6)
elseif unit=="pet" then
bar:SetStatusBarColor(.85, .65, .13) --couleur jaune du pet
else
bar:SetStatusBarColor(.25, .41, .88)
end
end
-- @the end add :
local pet = oUF:Spawn"pet"
pet:SetPoint("TOPLEFT", player, "BOTTOMLEFT", 0, -1)
dunno if the happiness = GetPetHappiness() refresh on the updatehealth is called is really good ;s if someone have suggestion i m a really neeb coder in lua ,xx
sorry for my english too and ty for this thread =)
hope that helps
EDIT : if someone also could explain me why the power bar on my target frame is not changing color at all ? ;x
Got the same thing first. I've found it on jira too but without result for me :(
You have to switch on 2 things in Interface options, those about "show enchanced tooltip" or something and 2nd option, sorry but I'm in work now so I can't check those names :( But when I switched "ON" those two things about tooltips in wow interface otpions all bongos tooltips back to life without flashing effect.
And my tooltip is anchored to mouse too.
same here if i disable detailled toooltip in interface option anchor problem not occur
just wan't to report a quite annoying graphical bug with hypotermia debuff :
debuff icon is scaled and placed over my pitbull target frame or ToT frame, and disapear after debuff fade off, un targeting , retargeting change nothing
* r44844 | ckknight | 2007-07-25 18:28:26 -0400 (Wed, 25 Jul 2007) | 1 line
* Parrot_CombatEvents - change throttling system to have the events themselves specify a suffix based on the amount of events merged together. This will cause outgoing spells to show stuff like (2 hits, 1 crit) and the like.
u're my lord !! really
ps : with adventure font parrot is a real dream thx a lot and keep up the really good work !
parrot rules imo of a first time user, only one thing is missing to get a near perfect addon for me indead :
when you throttle skill damages if it possible to show how many target where affecte by effect, this permit to know if i swipe on 2 or 3 target for exemple.
for example : swipe 780 (2hit, 1 crit)
like msbt feat.
otherwise i m really seduce by this addon and new features, keep up the good work, really ;)
Can you make bags updating only when opening/closing or make it optional? Personally I dont like items to "jump" around when selling, auctioning etc.....
I second this :)
I third this! I really love Baggins and this is my only annoyance. The virtual bag I mouse over moves to a new spot when I sell or bank one of its contents (sometimes).
+1 =)
out that really nice addon that made me drop my previous bags mods, but the refresh on open only miss imo (blah there is buyback but jumping around with mouse @ 4 o clock after looong farming hours sometimes made me crazy ;> ) , and nice choice for the name.
Doesn't seem to work with the !!!StandaloneLibraries. Won't find any library instances untill I put the lib folder in the addon directory again (and yes, it's the only "culprit" doing so, the rest of my addons works fine with the !!!StandaloneLibraries).
Besides that it seems to perform very well.
works well without embed in my case, try to update your libs and check if latest added (in changelog of !!!standalones) where installed.
0
Ouf_lily : http://ixo.no/git/oUF_Lily.git/snapshot/oUF_Lily-master.zip
no need of git install for me
0
Code for pet hapinness color on pet bar health :
Based on latest Ouf from Google code and inspirated by p3lim and others posters code & functions =)
-- l 17 add :
-- my update health function :
-- mu update power cause il like have pet energy in good color :
-- @the end add :
dunno if the happiness = GetPetHappiness() refresh on the updatehealth is called is really good ;s if someone have suggestion i m a really neeb coder in lua ,xx
sorry for my english too and ty for this thread =)
hope that helps
EDIT : if someone also could explain me why the power bar on my target frame is not changing color at all ? ;x
0
same here if i disable detailled toooltip in interface option anchor problem not occur
0
debuff icon is scaled and placed over my pitbull target frame or ToT frame, and disapear after debuff fade off, un targeting , retargeting change nothing
not occurs with pitbull_aura
0
=)
0
0
did someone know what is the colored tabbed chat mod used by the equipinfo dev ?
sorry for the HS =)
0
u're my lord !! really
ps : with adventure font parrot is a real dream thx a lot and keep up the really good work !
0
when you throttle skill damages if it possible to show how many target where affecte by effect, this permit to know if i swipe on 2 or 3 target for exemple.
for example : swipe 780 (2hit, 1 crit)
like msbt feat.
otherwise i m really seduce by this addon and new features, keep up the good work, really ;)
0
it is in my addons but un-active waiting for a more advanced version
ckknight rules ;)
0
could you make the global cooldown bar deplete instead of filling or maybe offer choice between this 2 options ?
it's a little thing but i really prefer this way of displaying global cooldown
big thanks for this addon anyway !!
0
+1 =)
out that really nice addon that made me drop my previous bags mods, but the refresh on open only miss imo (blah there is buyback but jumping around with mouse @ 4 o clock after looong farming hours sometimes made me crazy ;> ) , and nice choice for the name.
0
i can't found this mod instead of curse and no eta on mod on tuller's interfaces home page.
0
and direct keybindings =)
0
works well without embed in my case, try to update your libs and check if latest added (in changelog of !!!standalones) where installed.