Display Tags and Text on Shadow Priest Mana Bar #1592


  • New
Open
  • PazziPanda created this issue Jan 13, 2021

    When playing as a shadow priest, you can display both your power bars: Insainity and Mana.

    But in the "Text/Tags"-tab of the player frame, the Priest Mana Bar doesn't show up as entry, so you can't display your exact mana values/percentile on the bar. I'd love if that feature would get added.


    Best regards, thanks for a great addon so far =)

  • PazziPanda added a tag New Jan 13, 2021
  • mchavezv80 posted a comment Jan 19, 2021

    I have the same problem with my priest

    Hope can be fixed soon!

  • ahnqiraj posted a comment Sep 18, 2023

    I know this is an old post, but I had the same problem, and I figured out the solution below:

     

    I wanted Percent mana on the left and current/max mana on the right.

     

    Open /suf

     

    > General > Text Management > Add new text:

    >>> Text name = Left text

    >>> Text parent = Priest mana bar

    >>> [Add]

    >>> Text name = Right text

    >>> Text parent = Priest mana bar

    >>> [Add]

     

    > Add Tags > Add new tag

    >>> Tag name = sec:perpp

    >>> [okay]

        (Jumps to "edit tag sec:perpp" screen)

    >>> Tag name = Percent Power (Secondary)

    >>> Category = Class Specific

    >>> Code = 

     

    function(unit, unitOwner)
    local maxPower = UnitPowerMax(unit, Enum.PowerType.Mana)

    if( maxPower <= 0 ) then
    return nil
    elseif( UnitIsDeadOrGhost(unit) or not UnitIsConnected(unit) ) then
    return "0%"
    end

    return string.format("%d%%", math.floor(UnitPower(unit, Enum.PowerType.Mana) / maxPower * 100 + 0.5))
    end

     

    >>> [Accept]

     

    > Unit Configuration > Player > Text/Tags

    >>> Click on "Priest mana bar" in list

    >>>>>> In right area, under "Left text"

    >>>>>> Anchor point = Inside Center Left

    >>>>>> Width weight = 0.5

    >>>>>> X Offset = 3

    >>> In right area, under "Right text"

    >>>>>> Anchor point = Inside Center Right

    >>>>>> Width weight = 0.6

    >>>>>> X Offset = -3

    >>> Under Priest mana bar, click Left text

    >>>>>> Text = [sec:perpp]

    >>> Under Priest mana bar, click Right text

    >>>>>> Text = [sec:curmaxpp]


To post a comment, please login or register a new account.