PitBull Unit Frames 4.0

Pitbull 4 Config Menu

PitBull4 is a continuation of PitBull.

Differences from PitBull 3:

  • It's mostly done, but not entirely done thus why there are still only betas (despite this it is still very stable).
  • Documentation is written before functions
  • Much easier for third-party extensions.
  • Options will be much, much simpler. In 3.0, there's about 200 panels that you can mess with, it's overwhelming. I want to bring this down to somewhere around 10.
    • Layouts are defined deterministically and unit groups use the layout rather than ad-hoc layouts on a per-unit basis. This will make setting up your unit frames far, far easier.
    • Due to some decisions made, 4.0 is actually more configurable than 3.0. As a layout designer, you will have a lot more control over how things look. You can have different fonts on the same frame, different textures, more precise positioning, and a whole slough of other things.
  • CPU Efficiency will be taken much more seriously.
  • It uses Ace3 instead of Rock.

FAQ: http://www.wowace.com/addons/pitbull4.../faq/.

Guide: http://www.wowace.com/addons/pitbull4.../guide/.

If you want to help localize PitBull in your language, go to http://www.wowace.com/projects/pitbul.../localization/.

Forum thread: http://forums.wowace.com/showthread.php?t=15552...

You must login to post a comment. Don't have an account? Register to get one!

  • Avatar of Kupotek Kupotek Jun 16, 2009 at 05:42 UTC - 0 likes

    Shefki did you see the scrteenshot at the odd bordering thing? What's causing that?

  • Avatar of esullivan esullivan Jun 15, 2009 at 18:15 UTC - 0 likes

    Shefki, Cool thanks i will update mine. I am not a code guy, just played with it til it worked.

  • Avatar of Shefki Shefki Jun 15, 2009 at 17:55 UTC - 0 likes

    kupo, The settings for LuaTexts and DogTags share the same spot but they're different in that they aren't shared. So yes you'd have to move everything around again to use LuaTexts. Really not sure what you mean by it didn't move. But if you've got a set of steps to reproduce the problem I can take a look at it.

  • Avatar of Shefki Shefki Jun 15, 2009 at 17:53 UTC - 0 likes


    local cur,max = HP(unit),MaxHP(unit)
    if cur == max then
      return "|cffffffff%s/%s / %s%%",cur,max,VeryShort(Percent(cur,max),true)
      local r,g,b = HPColor(cur,max)
      return "cff%02x%02x%02x%s/%s / %s%%",r,g,b,cur,max,VeryShort(Percent(cur,max),true)
  • Avatar of Shefki Shefki Jun 15, 2009 at 17:44 UTC - 0 likes

    esullivan, don't call functions twice to get the same info...

     local cur, max, rest = XP(unit), MaxXP(unit), RestXP(unit)
     local rem = max - cur
    if rest then
      return "%s (%s%%) R: %s%%",rem,Percent(cur,max),Percent(rest,max)
      return "%s (%s%%)",rem,Percent(cur,max)
  • Avatar of nitra nitra Jun 15, 2009 at 16:26 UTC - 0 likes

    How would I update this code for LuaText

    [(if PercentHP = 100 then
        Color(FractionalHP " / " PercentHP:VeryShort:Percent, "FFFFFF")
        HPColor FractionalHP " / " PercentHP:VeryShort:Percent
  • Avatar of esullivan esullivan Jun 15, 2009 at 15:54 UTC - 0 likes

    I got it, but thanks!!

     local rem, cur, max, rest = MaxXP(Unit)-XP(Unit), XP(unit), MaxXP(unit), RestXP(unit)
    if rest then
      return "%s (%s%%) R: %s%%",rem,Percent(cur,max),Percent(rest,max)
      return "%s (%s%%)",rem,Percent(cur,max)

    Dev, can we have this as an option in the list? I am sure other people would want this.


  • Avatar of esullivan esullivan Jun 15, 2009 at 15:26 UTC - 0 likes

    LUA text is harder to use and figure out :( Time to research and learn I guess LOL

    Hoping someone with LUA knowledge can help me out. I like the XP bar to show remaining XP not amount\needed

    This is the standard XP text can someone edit that so that it shows remaining XP instead of amount\needed please?

    local cur, max, rest = XP(unit), MaxXP(unit), RestXP(unit) if rest then   return "%s/%s (%s%%) R: %s%%",cur,max,Percent(cur,max),Percent(rest,max) else   return "%s/%s (%s%%)",cur,max,Percent(cur,max) end>>
  • Avatar of Kupotek Kupotek Jun 15, 2009 at 08:17 UTC - 0 likes

    Shefki, with LUA enabled, I saw all my text positioning was reset to default, not a big deal I set the text up once I can do it again, but when I tried to move where the health was attached it didn't move, and I had added a new text: Level cos I want the level on the healthbar and not the race and class, but no idea now what to put in the code for this now...

    Any help is appreciated.

  • Avatar of Shefki Shefki Jun 15, 2009 at 07:59 UTC - 0 likes

    Faster. PB4+DogTagTexts uses about 3 times as much CPU time as PB4+LuaTexts in my testing. Not sure what you mean by wasn't able to move anything. The positioning code is the exact same code used by both.


Date created
Aug 01, 2008
Last update
Aug 27, 2016
Development stage
  • deDE
  • enUS
  • esES
  • esMX
  • frFR
  • koKR
  • ruRU
  • zhCN
  • zhTW
All Rights Reserved
Curse link
PitBull Unit Frames 4.0
Reverse relationships
Recent files