WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   oUF (Otravi Unit Frames) (https://www.wowinterface.com/forums/forumdisplay.php?f=87)
-   -   How do I add debuffs for myself for oUF P3lim? (https://www.wowinterface.com/forums/showthread.php?t=33853)

pauen 07-10-10 10:02 PM

How do I add debuffs for myself for oUF P3lim?
 
i managed to add the buffs but im not sure how to add the debuffs. :/
oh and i forgot , i want to remove the target of target debuffs and pet buffs/auras/debuffs

Dawn 07-10-10 10:07 PM

self.Buffs = buffs
self.Debuffs = debuffs

pauen 07-10-10 10:15 PM

Quote:

Originally Posted by Dawn (Post 196880)
self.Buffs = buffs
self.Debuffs = debuffs

uh kinda i think, its not telling WoW where, how big, where to grow and how much buffs/debuffs to give out.
didnt work.

Sojik 07-10-10 11:18 PM

Try replacing
Code:

    if(unit == 'focus' or unit:find('target')) then
        local name = health:CreateFontString(nil, 'OVERLAY')
        name:SetPoint('LEFT', health, 2, 0)
        name:SetPoint('RIGHT', healthValue, 'LEFT')
        name:SetFont(FONT, 8, 'OUTLINE')
        name:SetJustifyH('LEFT')
        self:Tag(name, '[p3lim:name< ][|cff0090ff>rare<|r]')

        local debuffs = CreateFrame('Frame', nil, self)
        debuffs.spacing = 4
        debuffs.initialAnchor = 'TOPLEFT'
        debuffs.PostCreateIcon = PostCreateAura
        self.Debuffs = debuffs

        if(unit == 'target') then
            debuffs.num = 20
            debuffs.size = 19.4
            debuffs['growth-y'] = 'DOWN'
            debuffs.PostUpdateIcon = PostUpdateDebuff
            debuffs:SetPoint('TOPLEFT', self, 'BOTTOMLEFT', 0, -4)
        else
            debuffs.num = 3
            debuffs.size = 19

            health:SetAllPoints()
            self:SetAttribute('initial-height', 19)
            self:SetAttribute('initial-width', 161)
        end

        if(unit == 'focus') then
            debuffs:SetPoint('TOPLEFT', self, 'TOPRIGHT')
            debuffs.onlyShowPlayer = true
        elseif(unit ~= 'target') then
            debuffs:SetPoint('TOPRIGHT', self, 'TOPLEFT', -4, 0)
            debuffs.initialAnchor = 'TOPRIGHT'
            debuffs['growth-x'] = 'LEFT'
        end

        debuffs:SetSize(230, debuffs.size)
    end

with
Code:

    if(unit ~= 'pet') then
        local debuffs = CreateFrame('Frame', nil, self)
        debuffs.spacing = 4
        debuffs.initialAnchor = 'TOPLEFT'
        debuffs.PostCreateIcon = PostCreateAura
        self.Debuffs = debuffs

        if(unit == 'player' or unit == 'target') then
            debuffs.num = 20
            debuffs.size = 19.4
            debuffs['growth-y'] = 'DOWN'
            debuffs.PostUpdateIcon = PostUpdateDebuff

            if(unit == 'player') then
                debuffs:SetPoint('TOPRIGHT', self, 'BOTTOMRIGHT', 0, -4)
                debuffs.initialAnchor = 'TOPRIGHT'
                debuffs['growth-x'] = 'LEFT'
            else
                debuffs:SetPoint('TOPLEFT', self, 'BOTTOMLEFT', 0, -4)
            end
        else
            debuffs.num = 3
            debuffs.size = 19

            health:SetAllPoints()
            self:SetAttribute('initial-height', 19)
            self:SetAttribute('initial-width', 161)

            if(unit == 'focus') then
                debuffs:SetPoint('TOPLEFT', self, 'TOPRIGHT')
                debuffs.onlyShowPlayer = true
            else
                debuffs:SetPoint('TOPRIGHT', self, 'TOPLEFT', -4, 0)
                debuffs.initialAnchor = 'TOPRIGHT'
                debuffs['growth-x'] = 'LEFT'
            end
        end

        if(unit ~= 'player') then
            local name = health:CreateFontString(nil, 'OVERLAY')
            name:SetPoint('LEFT', health, 2, 0)
            name:SetPoint('RIGHT', healthValue, 'LEFT')
            name:SetFont(FONT, 8, 'OUTLINE')
            name:SetJustifyH('LEFT')
            self:Tag(name, '[p3lim:name< ][|cff0090ff>rare<|r]')
        end

        debuffs:SetSize(230, debuffs.size)
    end


pauen 07-10-10 11:31 PM

Quote:

Originally Posted by Sojik (Post 196891)
Try replacing
Code:

    if(unit == 'focus' or unit:find('target')) then
        local name = health:CreateFontString(nil, 'OVERLAY')
        name:SetPoint('LEFT', health, 2, 0)
        name:SetPoint('RIGHT', healthValue, 'LEFT')
        name:SetFont(FONT, 8, 'OUTLINE')
        name:SetJustifyH('LEFT')
        self:Tag(name, '[p3lim:name< ][|cff0090ff>rare<|r]')

        local debuffs = CreateFrame('Frame', nil, self)
        debuffs.spacing = 4
        debuffs.initialAnchor = 'TOPLEFT'
        debuffs.PostCreateIcon = PostCreateAura
        self.Debuffs = debuffs

        i


i shortened down the code.. but i copied and pasted and didnt work.

Sojik 07-10-10 11:43 PM

Quote:

Originally Posted by pauen (Post 196892)
i shortened down the code.. but i copied and pasted and didnt work.

I did another edit after your post. I forgot a quotation mark in the beginning. Try now.

pauen 07-11-10 12:11 AM

Quote:

Originally Posted by Sojik (Post 196894)
I did another edit after your post. I forgot a quotation mark in the beginning. Try now.

it worked! thanks


All times are GMT -6. The time now is 12:43 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI