• 0

    posted a message on LuaTexts Official Thread
    Thx very much. With this I've transfered all my DogTags to Luatexts now. Looks exactly the same now as before but with better perf. Nice work. ;)
    Posted in: Unit Frames
  • 0

    posted a message on LuaTexts Official Thread
    Quote from Shefki

    local i = 1
    while true do
      local name = UnitAura(unit,i,"HARMFUL")
      if not name then
        break
      elseif name == "Something" then
        return "|TSomeIcon:0|t"
      elseif name == "Something2" then
        return "|TSomeIcon2:0|t"
      end
      i = i + 1
    end
    


    I've a question about the quoted example. As this works fine for many debuffs/buffs, it has the disadvantage that the function can return just one Value/Icon, but not "SomeIcon" and "SomeIcon2" at the same time for one unit, if both (de)buffs are active. In some cases I would like to have two or even three Icons to show from one function.

    For example, i've defined things like Barkskin, Shield Wall, HoSac, Divine Sac, Guardian Spirit and similiar things to show at the upper left corner. Right now if the target has Barkskin and Guardian Spirit the buff applied first is just shown.

    I'm not too much in lua programming, but is it possible to return more than one value, maybe sth. like the following but more "professional". ;)

    local buff1,buff2
    ...
    elseif name == "Something" then 
    buff1=SomeIcon
    elseif name == "Something2" then 
    buff2=SomeIcon2
    end
    i=i+1
    end
    return "|TInterface/Icons/%s:0|t""|TInterface/Icons/%s:0|t", buff1,buff2


    Still this would just return two Icons, which may not really solve the problem, cause if I have a choice of lets say 10 Icons it's not that clever to write the |T...|t part 10 times and I don't know whats happening if buff2 in this example is empty. Maybe there is a more elegant method of doing this.

    Another method would be to define every buff/debuff in a new luatext...
    Posted in: Unit Frames
  • 0

    posted a message on LuaTexts Official Thread
    Quote from Xedriell
    but atm I don't have any reference for those colorcodes, perhaps someone could link something like a "color to code" converter/reference table for those alphacolors :)


    I use this one. A click on the color you want shows the hex code on the left side.
    Posted in: Unit Frames
  • 0

    posted a message on LuaTexts Official Thread
    Quote from Shefki
    If you just want the first 3 characters for the name do this:
    string.sub(Name(unit),1,3)


    This works fine, thanks.

    The solution for tracking more buffs or debuffs with icons is also working, but it has to be slightly changed if one wants to track more than one buff/debuff at once, like e.g. rejuv and lifebloom on one player.
    Posted in: Unit Frames
  • 0

    posted a message on LuaTexts Official Thread
    I don't get Abbreviate() working, maybe I'm just blind. There is this abbreviate() funciton talked about some pages ago, but how exactly do I get a unit name abbreviated to 3 chars? *confused*
    Posted in: Unit Frames
  • 0

    posted a message on LuaTexts Official Thread
    Quote from Shefki
    I looked into this. Icons are very easy to use, I'm not going to bother to add a utility function for it since all the DogTag one does is cat stuff together.


    Thanks very much.
    Posted in: Unit Frames
  • 0

    posted a message on LuaTexts Official Thread
    Quote from Shefki
    Honestly, I have no idea how to put icons in FontStrings. I simply haven't looked at how that is implmented. I'll probably add a function like Icon to help with that. I just haven't gotten to it. I'm assuming there's some sort of escape code to put them in.


    OK, thanks. The Icon isn't that important for me right now. So temporarily it should be no problem using some sort of text indicator instead.

    EDIT:
    About counting buffs or debuffs, e.g. Sanity on Yogg:

    if UnitAura(unit,"Sanity",nil,"HARMFUL") then
      local _,_,_,count,_,_,_,_,_ = UnitAura(unit,"Sanity",nil,"HARMFUL")
      return count
    end


    Is this right?
    Posted in: Unit Frames
  • 0

    posted a message on LuaTexts Official Thread
    What about UnitHasAura from Dogtags, e.g.

    (if HasAura("Unbalancing Strike") then
    Icon("Interface/Icons/ability_warrior_decisivestrike", size=17)
    end)


    How would this look like in Luatexts?
    Posted in: Unit Frames
  • 0

    posted a message on PitBull 4.0
    Quote from Nandini
    Actually, I suppose it would be possible to disable the text modules completely during a raid and try to compare performance. It would be kind of scary with no text on the frames, but probably still doable! :)


    I've tried this during trash in 25-man Ulduar yesterday, just staring at the cpu/memory usage over a trash fight. Trashfights have been the same in both cases.

    With dogtags enabled I started the fight with a memory usage of 4.28MB (just PB4), at the end it was 5.76MB, cpu usage for PB4 was sth. between 0% and 5% with some huge spikes to even higher values.

    If I disable Dogtags (and reloadui) memory usage started with 2.37MB going up to 2.41MB in the end and cpu usage was never higher than 0.1%.
    Posted in: Unit Frames
  • 0

    posted a message on PitBull 4.0
    Quote from jokeyrhyme
    You'll likely need to make several groups (one for each party, in fact). Tell each of these to only show members of individual raid groups. Then players will stay in their groups. I don't think there's an easier way to do this, but at least you can let all of your groups use the same Layout.


    Ok, thanks, I had the same idea, so if there's no other way I'll do it like this.

    Easy, just do the opposite of the above. Make a single group, and tell it to show pets from all groups. They'll all be lumped together.


    That's my configuration right now,and it's not working for me. I created a group, used "Raid pets" as "Unit group" and tried every single "Sort method" in combination with every single Filter type. The pets are always spread out all over the screen with big spaces in between e.g. when I enter AV or in a 25-man raid.
    Posted in: Unit Frames
  • 0

    posted a message on PitBull 4.0
    Heyla,

    first of all, a question about the unit-arrangement of a 25-man raid.

    So right now, if I create a group and arrange it by choosing "raid group" and allow 5 units per column, I'll get 5 columns with 5 units in each column ("gridlike"). So far everything is fine. If now a unit from group 2 leaves the raidgroup all following units are shifted and in the fifth column one unit is missing instead of one missing member in the second column. So is there a possibility to arrange the units in a 25-man raid by group without the shifting?

    Furthermore is it possible to arrange the pets in the same way as I don't want it to be for the raid units? :D So if I have 2 hunters in group 3, a WL in group 4 and a DK in group 2 all their pets should be shown directly among each other, instead of showing it in the corresponding groups of their owners.
    Posted in: Unit Frames
  • To post a comment, please or register a new account.