• 0

    posted a message on PitBull4 - some "challenges"
    Hello, I've decided to try and switch my Dogtags to Lua text. Due to a memory leak within the addon for me. but I can't understand it due to my lack of Lua knowledge. Though I have the Dogtags codes I had used still. If anyone could convert them to Lua i would appriciate ot, or point out somewhere where I can I understand it and help make similar.

    Not sure if this is the right place to put this in if not please say so.
    Thank you.

    Here are the tags

    Name
    [Outline] [DifficultyColor Level] [ClassColor Name]

    Leader/PvP
    [Outline][(if IsPlayer then
    [(if PvP then
    Red 'P'
    end)] [if IsLeader then
    Yellow 'L'
    end] [if IsMasterLooter then
    Fuchsia 'M'
    end]
    end)]

    Health
    [Status or [(if InCombat then
    Red
    end) (if not InCombat then
    White
    end) HP] ' ' [Outline HPColor PercentHP:Percent]]

    Power
    [if IsPlayer then
    [if HasMP then
    [Outline (if IsMana then
    Cyan
    elseif IsRage then
    Red
    elseif IsEnergy then
    Yellow
    elseif IsRunicPower then
    Cyan
    end) PercentMP:Percent] ' ' [(if InCombat then
    Red
    end) (if not InCombat then
    White
    end) MP]
    end]
    else
    Outline [DifficultyColor Level] ' ' [ClassColor Name]
    end]

    PvP timer
    [Outline PvPDuration:FormatDuration:Red]

    Target's HP
    [Status or [Outline HPColor PercentHP:Percent] ' ' [(if InCombat then
    Red
    end) (if not InCombat then
    White
    end) HP]]

    AFK
    [Outline][(AFK or DND):Angle]
    Posted in: Unit Frames
  • To post a comment, please or register a new account.