• 0

    posted a message on Bartender4 - Official Topic
    Quote from RiddellR
    Just to ask again; How would I go about creating conditions to: Hide bar UNLESS possessing?

    To reiterate, I want the bar to be hidden (because it has 1,2,3,4,5 etc bound to it and I don't need to see them as I have them memorized) but show up for let's say jousting in ToC; thus Hide UNLESS possessing.

    Cheers, Red.


    Can anyone help with this? The only answer didn't work :(

    Cheers!
    Posted in: General AddOns
  • 0

    posted a message on Bartender4 - Official Topic
    Just to ask again; How would I go about creating conditions to: Hide bar UNLESS possessing?

    To reiterate, I want the bar to be hidden (because it has 1,2,3,4,5 etc bound to it and I don't need to see them as I have them memorized) but show up for let's say jousting in ToC; thus Hide UNLESS possessing.

    Cheers, Red.
    Posted in: General AddOns
  • 0

    posted a message on Bartender4 - Official Topic
    How would I go about creating conditions to: Hide UNLESS possessing?

    Cheers, Red.
    Posted in: General AddOns
  • 0

    posted a message on LuaTexts Official Thread
    Quote from sfan27
    Both of these versions should work. The first is simpler, but will look funny if the text is right-aligned. On the other hand the second has some extra complications but will right-align properly, if needed.

    local lvl=Level(unit)
    local dr,dg,db=DifficultyColor(unit)
    if UnitIsPlayer(unit) then
     local class=Class(unit)
     local cr,cg,cb=ClassColor(unit)
     return "|cff%02x%02x%02x[%s]|r
    "|cff%02x%02x%02x%s|r",dr,dg,db,lvl,cr,cg,cb,class
    else
     local class=Classification(unit)
     return "|cff%02x%02x%02x[%s] %s",dr,dg,db,lvl,class or ''
    end


    local lvl=Level(unit)
    local dr,dg,db=DifficultyColor(unit)
    if UnitIsPlayer(unit) then
     local class=Class(unit)
     local cr,cg,cb=ClassColor(unit)
     return "|cff%02x%02x%02x[%s]|r
    "|cff%02x%02x%02x%s|r",dr,dg,db,lvl,cr,cg,cb,class
    else
     local class=Classification(unit)
     if class then
     return "|cff%02x%02x%02x[%s] %s",dr,dg,db,lvl,class
     else
     return "|cff%02x%02x%02x[%s] %s",dr,dg,db,lvl
    end



    Thank you for the code, however both of them are giving me a LUA error in WoW.

    I'm sure it's just a simple mistake; however, I mean it when I say I have NO idea when it comes to LUA :(

    Cheers, Red.
    Posted in: Unit Frames
  • 0

    posted a message on LuaTexts Official Thread
    I can't get my head around a few things in LUA, specifically..

    How would I go about getting class-colored names BUT instead of < AFK (x.xx)> just " AFK" or " DND" in white

    Text that shows a players class and level (in the format of "[80] Death Knight") and colors the level by difficulty and class by it's corresponding class-color OR if it's a mob- displays whether it is a "Boss, "Elite", "Rare" or a "Rare-Elite" as well as having its level colored by difficulty and the elite/rare bit, well, default (in the format of "[81] Elite") and if it is a mob that isn't rare or elite just displays its level and colors it by difficulty (format of "[80]")

    Also, how do I add the users power-color to this:
    local max = MaxPower(unit)
    if max > 0 then
    return (Power(unit))
    end

    ^--(All I want this to do is show me how much current power the unit has and its color, there is probably an easier way to code this >_<)

    Lastly, How would i go about getting health% (default LUA text) just showing "Dead" instead of Dead x:xx

    Any help would be appreciated :~D, Red.
    Posted in: Unit Frames
  • 0

    posted a message on PitBull 4.0
    I can't get my head around a few things in LUA, specifically..

    How would I go about getting class-colored names BUT instead of < AFK (x.xx)> just " AFK" or " DND" in white

    Text that shows a players class and level (in the format of "[80] Death Knight") and colors the level by difficulty and class by it's corresponding class-color OR if it's a mob- displays whether it is a "Boss, "Elite", "Rare" or a "Rare-Elite" as well as having its level colored by difficulty and the elite/rare bit, well, default (in the format of "[81] Elite") and if it is a mob that isn't rare or elite just displays its level and colors it by difficulty (format of "[80]")

    Also, how do I add the users power-color to this:
    local max = MaxPower(unit)
    if max > 0 then
    return (Power(unit))
    end

    ^--(All I want this to do is show me how much current power the unit has and its colo, there is probably an easier way to code this >_<)

    Lastly, How would i go about getting health% (default LUA text) just showing "Dead" instead of Dead x:xx

    Any help would be appreciated :~D, Red.
    Posted in: Unit Frames
  • To post a comment, please or register a new account.