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 Shefki Shefki Jun 15, 2009 at 17:53 UTC - 0 likes

    nitra,

    local cur,max = HP(unit),MaxHP(unit)
    if cur == max then
      return "|cffffffff%s/%s / %s%%",cur,max,VeryShort(Percent(cur,max),true)
    else
      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)
    end
    
  • 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)
    else
      return "%s (%s%%)",rem,Percent(cur,max)
    end
    
  • 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")
    else
        HPColor FractionalHP " / " PercentHP:VeryShort:Percent
    end)]
    
  • 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)
    else
      return "%s (%s%%)",rem,Percent(cur,max)
    end
    

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

    Thanks

  • 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.

  • Avatar of Kupotek Kupotek Jun 15, 2009 at 07:52 UTC - 0 likes

    What advantage would you say LuaTexts have over Dogtags? Cos in Lua Text mode I wasn't able to move anything.

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

    Modules, turn the DogTagTexts module back on. It defaults to off now. LuaTexts defaults to on now (used to be off).

    And kupo: "LuaTexts is the default text provider module now." ckknight and I decided a long time ago DogTags wouldn't be the default in PB4. It just took time to replace it.

  • Avatar of Kupotek Kupotek Jun 15, 2009 at 07:39 UTC - 0 likes

    How did LUA text get enabled and Dogtags get disabled?

Facts

Date created
Aug 01, 2008
Category
Last update
Oct 29, 2014
Development stage
Beta
Language
  • deDE
  • enUS
  • esES
  • esMX
  • frFR
  • koKR
  • ruRU
  • zhCN
  • zhTW
License
All Rights Reserved
Curse link
PitBull Unit Frames 4.0
Reverse relationships
4
Downloads
3,586,874
Recent files

Authors