• 0

    posted a message on Unofficial oUF - methods used for layouts
    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
    Posted in: Unit Frames
  • 0

    posted a message on CowTip 2.0
    Quote from Helvete »

    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
    Posted in: General AddOns
  • 0

    posted a message on PitBull_AltAura
    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

    not occurs with pitbull_aura
    Posted in: Unit Frames
  • 0

    posted a message on CML - official thread
    Quote from rdji »

    Phanx mentioned he was going to put the addon up on the SVN, I'm not sure how thats going.

    I'm getting some requests lately so I'll just put the official link for CML here. Feel free to share it with your friends etc.

    http://www.fuskbugg.se/pub/misc/CML.rar

    I've quit playing the game though so this is probably my last post here! Take care.


    =)
    Posted in: General AddOns
  • 0

    posted a message on [request] Ace 2 cooldownpulse
    personnaly use parrot's notification areas with CooldownTimers2 now , and no Ace2 mods are not evil u know ;)
    Posted in: Addon Ideas
  • 0

    posted a message on Show enemy gear
    a little take over :

    did someone know what is the colored tabbed chat mod used by the equipinfo dev ?

    sorry for the HS =)
    Posted in: General AddOns
  • 0

    posted a message on Parrot? Link?
    * 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 !
    Posted in: General AddOns
  • 0

    posted a message on Parrot? Link?
    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 ;)
    Posted in: General AddOns
  • 0

    posted a message on Parrot? Link?
    very early beta or alpha, it works well but no config options atm or font choose or coloring.

    it is in my addons but un-active waiting for a more advanced version

    ckknight rules ;)
    Posted in: General AddOns
  • 0

    posted a message on Quartz: Modular Casting Bar
    just have a little request :

    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 !!
    Posted in: General AddOns
  • 0

    posted a message on Baggins - Official Thread
    Quote from Samasnier »

    Quote from Lyf »

    Quote from Diabolique »

    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.
    Posted in: General AddOns
  • 0

    posted a message on Bongos v. Bartender
    did someone, or maybe tuller have a link to follow dominos betas progress ?

    i can't found this mod instead of curse and no eta on mod on tuller's interfaces home page.
    Posted in: General AddOns
  • 0

    posted a message on Bongos v. Bartender
    Quote from Tuller »

    I prefer Bongos mostly because I like sticky bars and clamped to screen.


    That's the only real difference for me, and why I prefer Bongos.



    and direct keybindings =)
    Posted in: General AddOns
  • 0

    posted a message on ArkInventory
    Quote from Hornen »

    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.
    Posted in: General AddOns
  • To post a comment, please or register a new account.