• 0

    posted a message on Skinner
    Any chance of Skinner breaking into two directories? One for the mod and one for the SkinMe folder. That way I could update the mod without having to manually add all the files to the SkinMe directory.

    Or just keep the files in the SkinMe directory and add some way to list and toggle skinning in the options.
    Posted in: General AddOns
  • 0

    posted a message on LuaTexts Official Thread
    You could do it, but you have to write most of the Lua yourself. Something like this should work:

    local s = ""
    cur,max = HP(unit),MaxHP(unit) 
    for i = 1, #cur do
        local c = c:sub(i,i)
        s = s..c..\n
    end
    s = s..\/
    for i = 1, #max do
        local c = c:sub(i,i)
        s = s..c..\n
    end



    I might be a little messed up on the concatenation or the escapes and I am not sure that I needed to initialize the s. I am still very much new to LuaText and Lua in general.
    Posted in: Unit Frames
  • 0

    posted a message on LuaTexts Official Thread
    Ok, once again I found it. You guys have been terrific :P

    Power(unit) did the trick.

    Of course, you could say I should've read the effing manual, but that would have been too easy :)
    Posted in: Unit Frames
  • 0

    posted a message on LuaTexts Official Thread
    Ok, how to check if I am in a raid group?

    I have:

    if UnitInRaid("player") or GetNumPartyMembers() > 0 then

    Which seems to work fine, except for the fact that it takes a second or three to update. And quite a while when I drop group. I am thinking I am checking for the wrong events. Which event should I use with those calls?
    Posted in: Unit Frames
  • 0

    posted a message on LuaTexts Official Thread
    [QUOTE=Monk1nr;/comments/2256031]Can I not do this?
    if intl == 1 then
        intl_r,intl_g,intl_b = 000,102,222
    	sIn = "|cff%02x%02x%02x.|r", intl_r,intl_g,intl_b 
    else
    	sIn = "|cff%02x%02x%02x |r", intl_r,intl_g,intl_b 
    end


    Got it.

    sIn = format("|cff%02x%02x%02x.|r", intl_r,intl_g,intl_b)

    sweet. on to the next.
    Posted in: Unit Frames
  • 0

    posted a message on LuaTexts Official Thread
    Can I not do this?
    if intl == 1 then
        intl_r,intl_g,intl_b = 000,102,222
    	sIn = "|cff%02x%02x%02x.|r", intl_r,intl_g,intl_b 
    else
    	sIn = "|cff%02x%02x%02x |r", intl_r,intl_g,intl_b 
    end



    I get an error if I do this. I have tried it with static strings, but it seems to crap out on trying to place the colored text in a string.

    Here is the whole text:
    local i = 1
    local s = ""
    local fort,king,wild,intl,molt,wisd = 0,0,0,0,0,0
    local frt_r,frt_g,frt_b = 64,64,64
    local kng_r,kng_g,kng_b = 64,64,64
    local wld_r,wld_g,wld_b = 64,64,64
    local intl_r,intl_g,intl_b = 64,64,64
    local mlt_r,mlt_g,mlt_b = 64,64,64
    local wsd_r,wsd_g,wsd_b = 64,64,64
    while true do
     local name,_,icon = UnitAura(unit,i,"HELPFUL")
     if not name then
       break
    elseif name == "Power Word: Fortitude" or name == "Prayer of Fortitude" then
        fort = 1
    elseif name == "Greater Blessing of Kings" then
        king = 1
    elseif name == "Gift of the Wild" or name == "Mark of the Wild" then
        wild = 1
    elseif name == "Arcane Intellect" or name == "Arcane Brilliance" or name == "Dalaran Brilliance" then
        intl = 1
    elseif name == "Molten Armor" then
        molt = 1
    elseif name == "Greater Blessing of Wisdom" then
        wisd = 1
    end
     i = i + 1
    end
    if fort== 1 then
        frt_r,frt_g,frt_b = 245,245,245
    	s = s.." ".."|cff%02x%02x%02x.|r", frt_r,frt_g,frt_b 
    else
    	s = s.." " 
    end
    if king == 1 then
        kng_r,kng_g,kng_b = 255,133,145
    	s = s.." ".."|cff%02x%02x%02x.|r", kng_r,kng_g,kng_b 
    else
    	s = s.." "
    end
    if wild == 1 then
        wld_r,wld_g,wld_b = 222,112,00
    	s = s.." ".."|cff%02x%02x%02x.|r", wld_r,wld_g,wld_b 
    else
    	s = s.." "
    end
    if intl == 1 then
        intl_r,intl_g,intl_b = 00,102,222
    	s = s.." ".."|cff%02x%02x%02x.|r", intl_r,intl_g,intl_b 
    else
    	s = s.." "
    end
    if molt == 1 then
        mlt_r,mlt_g,mlt_b = 00,255,00
    	s = s.." ".."|cff%02x%02x%02x.|r", mlt_r,mlt_g,mlt_b 
    else
    	s =s.. " "
    end
    if wisd == 1 then
        wsd_r,wsd_g,wsd_b = 00,255,00
    	s = s.." ".."|cff%02x%02x%02x.|r", wsd_r,wsd_g,wsd_b 
    else
    	s = s.." "
    end
    return s



    Ok, so yeah I just checked it out again and if I put in:

    return "|cff%02x%02x%02x.|r", intl_r,intl_g,intl_b

    it works fine, but if I have:

    sIn = "|cff%02x%02x%02x.|r", intl_r,intl_g,intl_b

    it craps out. Thanks.
    Posted in: Unit Frames
  • 0

    posted a message on kgPanels Offical Thread
    Ok, I am sure this has been asked before, but I have searched this thread and several others without finding an answer.

    I am using Chatter and when I don't have any chat the Chatter frame fades. I want my panel to fade as well. It is parented and anchored to the ChatFrame1 (I think is the name) but, of course, that really doesn't do anything yet.

    If anyone has an answer for me I would appreciate it. I apologize if this has been asked before.

    -Tebla
    Posted in: General AddOns
  • 0

    posted a message on Unofficial oUF - methods used for layouts
    Hi, I am using oUF_Nivaya and I want to make the health bar to have colors based on class or hostility. Blue for allied mages and red for opposing classes, yellow neutral, green for friendly, etc.

    I changed the line 187 in oUF_Nivaya.lua from:
    bar:SetStatusBarColor(nivcfgDB.colorHealth.r, nivcfgDB.colorHealth.g, nivcfgDB.colorHealth.b, nivcfgDB.colorHealth.a)

    to:
    bar:SetStatusBarColor( UnitIsPlayer(unit) and RAID_CLASS_COLORS[select(2, UnitClass(unit))] or UnitReactionColor[UnitReaction(unit, "player")])

    which is something I read on this forum earlier, but all it does is set the color to black.

    Any ideas where I am going wrong?

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