• 0

    posted a message on PitBull 2.0
    Hi,

    I had some really useful help when I first installed Pitbull on the following issue:

    I like to have a black background to my health bar, and I also use aggro indicator, so I know if I pull aggro from a mob.

    The problem I had was when the aggro indicator kicked in and turned the player unit frame red to indicate aggro, then the background reverted to default instead of the black I'd set it up as. When aggro is lost, then it reverts back to my black customised background see below:



    You can see the background goes from black to a dark red - although it's not a massive problem, I'd prefer it to stay black because I find it clearer.

    Some kind person helped me with this with the following post, but now the Banzai Lua file seems very different to this and I am not sure what I need to adjust. Could anyone please help? Maybe in the newer version of pitbull this is part of the options, but I cannot find how the color for the aggro indicator is set up in the menus.

    Quote from penthouse36 »

    I had the same problem and I don't think there's an answer in the options and settings of Pitbull.

    Editing Banzai.lua to get rid of this problem is easy though...

    Find:
    local banzai
    local backgroundColors = {0, 0, 0, 1}
    
    local function updateBGColor(color)
    	for i, v in ipairs(color) do
    		backgroundColors[i] = (v + 0.2) / 3
    	end
    	backgroundColors[4] = 1
    end
    
    function PitBull_Banzai:OnInitialize()
    	self.db = PitBull:GetDatabaseNamespace("Banzai")
    	PitBull:SetDatabaseNamespaceDefaults("Banzai", "profile", {
    		color = {1.0, 0, 0, 1.0},
    		groups = {
    			target = {
    				ignore = true,
    			},
    			targettarget = {
    				ignore = true,
    			},
    			targettargettarget = {
    				ignore = true,
    			},
    			["*"] = {},
    		}
    	})
    	updateBGColor(self.db.profile.color)
    end


    and make it like this:

     local banzai
    local backgroundColors = {0, 0, 0, 1}
    
    ---local function updateBGColor(color)
    ---	for i, v in ipairs(color) do
    ---		backgroundColors[i] = (v + 0.2) / 3
    ---	end
    ---	backgroundColors[4] = 1
    ---end
    
    function PitBull_Banzai:OnInitialize()
    	self.db = PitBull:GetDatabaseNamespace("Banzai")
    	PitBull:SetDatabaseNamespaceDefaults("Banzai", "profile", {
    		color = {1.0, 0, 0, 1.0},
    		groups = {
    			target = {
    				ignore = true,
    			},
    			targettarget = {
    				ignore = true,
    			},
    			targettargettarget = {
    				ignore = true,
    			},
    			["*"] = {},
    		}
    	})
    ---	updateBGColor(self.db.profile.color)
    end


    The three -'s in front of the lines will make them ignored. Deleting the lines should work just as well :)
    Posted in: Unit Frames
  • 0

    posted a message on PitBull 2.0
    A few weeks now since I installed Pitbull and I'm still loving it.

    I have a slight issue though with how debuffs show on my alt. As far as I can see the options for Auras are the same for my Rogue as my Warlock, but when the Warlock goes out of combat, the debuff border highlight goes away.

    I have selected in both All Units and Player unit frames:
    Buff & Debuff filtering off;
    Frame debuff highlight - All debuffs;
    Frame debuff highlight style - Border;
    Auras enabled for all types and Highlights enabled for all types.

    As far as I can tell I have identical settings for all these on my Rogue and my Lock, but I get the following showing: Top is Lock with a debuff in combat, then out of combat, followed by Rogue with debuff in combat, then out of combat.



    On the Lock the debuff highlight refuses to show when I'm out of combat.

    Any suggestions about what I may have missed?


    *edit, I just tested a bit more and it seems that it doesn't always show on my Rogue either - in that picture where the highlight does show ooc, there is a proc buff activated, I wonder if it is something to do with that?
    Posted in: Unit Frames
  • 0

    posted a message on PitBull 2.0
    Quote from penthouse36 »

    I had the same problem and I don't think there's an answer in the options and settings of Pitbull.

    Editing Banzai.lua to get rid of this problem is easy though...

    *snip*

    The three -'s in front of the lines will make them ignored. Deleting the lines should work just as well :)


    Thank you, that worked perfectly. I have no clue about Lua files, so it's a good job you made it so clear :)
    Posted in: Unit Frames
  • 0

    posted a message on PitBull 2.0
    Firstly I recently installed Pitbull and I like if very much, thanks for such a good addon.

    I have a very small question on the Pitbull health bar.

    I have a custom backdrop color of plain black, set for All Units health bars, and I also have enabled the aggro indicator, to switch the bar to red when aggroed. However when it switches to red, the backdrop reverts to the default, not the black backdrop.

    I have searched all the options and I cannot find how to customize this aggroed health bar backdrop, is there such an option?

    Posted in: Unit Frames
  • To post a comment, please or register a new account.