Minion Beta! - Help us test our new AddOn updater. Get it now!
Download
(213 Kb)
Download
Updated: 01-27-15 12:51 AM
Pictures
File Info
Compatibility:
Warlords of Draenor Pre-Patch (6.0.3)
Warlords of Draenor Pre-Patch (6.0.2)
Updated:01-27-15 12:51 AM
Created:04-20-12 02:57 PM
Downloads:3,117
Favorites:22
MD5:
Categories:Minimalistic Compilations, DPS Compilations, Healer Compilations, Tank Compilations, Generic Compilations
6.0.3

bUI  Updated Today!

Version: 2.1
by: Blooblahguy [More]

bUI
bUI is a complete UI compilation that aims to be lightweight, functional, and compatible. It will probably never include a collection of miscellaneous functions that are only useful to handful of people. Rather, it should serve as a UI baseline that isn't the blizzard default UI. Its mostly written from scratch and doesn't use libraries aside from oUF

I've been using this UI throughout most of my WoW career, and while it works great for me other may want more features. Your feedback is priceless to me. Please let me know what you think!

Features


Actionbars
Alt Power Bar
Bag and Bank (all in one bags)
Buffs
Raid Buff Tracker
Chat
Font Changes
Interrupt alert in /say
Minimap
Nameplates
Tooltips
UnitFrames
RaidFrames
XP
If you'd like more detail on each of the modification above, most are available as standalone addons on my addon list. They are out of date, but the features are reflective of whats in here.


Config
/bui config
/bui lock/unlock
Any feature requests are welcome and please leave your feedback!

Tons of thanks to a lot of great lua authors out there, Zork, Funkydude, Tuk, FatalEntity, Haste and more. I've learned lua from you.

Known Bugs

Bags have a few quirky bugs, particularly when interacting with the bank. Though they are inconsistent and you shouldn't encounter them.

v2.1
Fixed a lot of bugs that I have absolutely no idea how they happened. Files got moved every where.

v2.0
Rewrote the entire structure of the addon and it's files
Added/rewrote in game config (/bui config)
Fixed several bugs including the talent pane taint
Performance fix on raid frames
Added remaining spells for Highmaul bosses
Rewrote the buff/debuffs and fixed all their bugs.

v1.0.6
Added a bag sort button to the bags, it currently just uses the default sorting from the Blizzard UI
Added item quality border to bags
Fixed a few bag bugs
Added support to track TIME in the raid buff tracker. Just add " TIME" to the key of the buff array, and it will automatically replace the string with how long the buff has
Added in game config for a few modules, not done
Bug fixes for actionbars
Replaced font
Various bug fixes

v1.0.5.5
Fixed lingering print function

v1.0.5
Fixed issue where untiframe position wouldn't save
Fixed issue where actionbars weren't hiding on mouseover
Started preliminary configuration adding

v1.0.4
Rewrote action bars and they now correctly deal with paging
Added a couple spells to the blacklist
Moved config.lua to /config (building in game config)
Various bug fixes


v1.0.3
Various small bug fixes
Fixed bag addon
Filtering raidbuffs from buff row now

v1.0.2
Added ~80 spells to the raid/party frame buff whitelist and debuff blacklist
Added option to enable/disable raid frames
Added option to enable/disable buff watcher
Added option to hide buff watcher until mouseover
Added buff watcher to /bui lock

v1.0.1
Fixed an issue with the raid frames anchoring/moving not saving

v1.0
Various configuration bugs
Added raid and party frames
Added skinning to Boss Frames (needs testing)
Added several elements to /bui lock
Included bBuffed addon
Rewrote unitframes
A couple bag fixes

v0.9
Various fixes for bag
Added garrison button to minimap
Code structure update
Updated oUF
Added powerbar to UI move

v0.8
Updated for WoD
Hundreds of changes and updates within the UI

v0.6
fixed a bug where the player debuffs were overlapping the target debuffs.
added a totembar to the unitframes
increased the height of all trackers (holy power, combo points, etc) on the unit frames
one more update for the minimap, thanks Baine

v0.5
fixed a bug with the minimap lfg tracker

v0.4
updated bags and fixed all known bugs with them

v0.3
removed a section of the functions that was still checking for pet happiness o.0
Optional Files (0)


Archived Files (11)
File Name
Version
Size
Author
Date
 bUI
2.0
213kB
Blooblahguy
01-26-15 12:38 PM
 bUI
1.0.6
279kB
Blooblahguy
12-21-14 10:01 AM
 bUI
1.0.5.5
189kB
Blooblahguy
12-10-14 02:49 PM
 bUI
1.0.5
189kB
Blooblahguy
12-10-14 02:48 PM
 bUI
1.0.4
916kB
Blooblahguy
12-10-14 12:56 PM
 bUI
1.0.3
907kB
Blooblahguy
12-08-14 03:49 AM
 bUI
1.0.2
256kB
Blooblahguy
11-24-14 01:31 AM
 bUI
1.0.1
255kB
Blooblahguy
11-23-14 07:01 PM
 bUI
1.0
255kB
Blooblahguy
11-23-14 06:42 PM
 bUI
0.9
252kB
Blooblahguy
11-17-14 06:47 AM
 bUI
0.8
249kB
Blooblahguy
11-12-14 03:53 PM


Post A Reply Comment Options
Unread Today, 01:24 AM  
Telaq
A Kobold Labourer
 
Telaq's Avatar

Forum posts: 1
File comments: 12
Uploads: 0
Originally Posted by Blooblahguy
Originally Posted by Telaq
How does this look in raidcombat? or in raid overall?

Cant DL and check it out as i'm at work atm!
I didn't take a SS of the alt raid tonight, but here's a video of the UI during a raid. https://www.youtube.com/watch?v=BFKdys6YLvI
Lookin fine there pal!

Nice guide aswell, got me stuck thru the whole 27min!

Giving this baby a try!
Telaq is offline Report comment to moderator  
Reply With Quote
Unread Today, 12:52 AM  
Blooblahguy
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 10
File comments: 157
Uploads: 21
Originally Posted by Telaq
How does this look in raidcombat? or in raid overall?

Cant DL and check it out as i'm at work atm!
I didn't take a SS of the alt raid tonight, but here's a video of the UI during a raid. https://www.youtube.com/watch?v=BFKdys6YLvI
Blooblahguy is offline Report comment to moderator  
Reply With Quote
Unread Today, 12:52 AM  
Blooblahguy
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 10
File comments: 157
Uploads: 21
Originally Posted by KepiGio
If i try to go into /bui config I get the following Error Message:

Code:
Message: Interface\AddOns\bUI\core\commands.lua:15: attempt to index field 'configmain' (a nil value)
Time: 01/26/15 15:43:16
Count: 1
Stack: Interface\AddOns\bUI\core\commands.lua:15: in function `?'
Interface\FrameXML\ChatFrame.lua:4387: in function `ChatEdit_ParseText'
Interface\FrameXML\ChatFrame.lua:4041: in function `ChatEdit_SendText'
Interface\FrameXML\ChatFrame.lua:4080: in function `ChatEdit_OnEnterPressed'
[string "*:OnEnterPressed"]:1: in function <[string "*:OnEnterPressed"]:1>

Locals: msg = "config"
editbox = ChatFrame1EditBox {
 0 = <userdata>
 tabCompleteTableIndex = 1
 focusLeft = ChatFrame1EditBoxFocusLeft {
 }
 setText = 0
 chatFrame = ChatFrame1 {
 }
 addSpaceToAutoComplete = true
 command = "/bui"
 language = "Orcish"
 focusMid = ChatFrame1EditBoxFocusMid {
 }
 headerSuffix = ChatFrame1EditBoxHeaderSuffix {
 }
 text = "/"
 autoCompleteXOffset = 35
 header = ChatFrame1EditBoxHeader {
 }
 addHighlightedText = true
 languageID = 1
 focusRight = ChatFrame1EditBoxFocusRight {
 }
}
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = "attempt to index field 'configmain' (a nil value)"
bUI = <unnamed> {
 0 = <userdata>
 moveui = <function> defined @Interface\AddOns\bUI\core\functions.lua:56
 resetUI = <function> defined @Interface\AddOns\bUI\core\functions.lua:47
 media = <table> {
 }
 MakeMovable = <function> defined @Interface\AddOns\bUI\core\functions.lua:6
 moveable = <table> {
 }
 moving = 0
 class = "WARRIOR"
}
F = <table> {
 bar3 = bUI_Bottom Right Actionbar {
 }
 errors = <unnamed> {
 }
 powerbar = <unnamed> {
 }
 bags = <unnamed> {
 }
 unitframes = <unnamed> {
 }
 minimap = Minimap {
 }
 config window = <unnamed> {
 }
 extrabar = <unnamed> {
 }
 xp = bXP {
 }
 interrupts = <unnamed> {
 }
 loading = <unnamed> {
 }
 chat = <unnamed> {
 }
 buff tracker = <unnamed> {
 }
 buffs = <unnamed> {
 }
 bar5 = bUI_Right 2 Actionbar {
 }
 sell greys = <unnamed> {
 }
 ranged = <unnamed> {
 }
 bar2 = bUI_Bottom Left Actionbar {
 }
 bar1 = bUI_Main Actionbar {
 }
 tooltip = <unnamed> {
 }
 chatbackground = <unnamed> {
 }
 auto repair = <unnamed> {
 }
 fonts = <unnamed> {
 }
 config = <unnamed> {
 }
 stancebar = bUI_Pet 2 Actionbar {
 }
 abcore = <unnamed> {
 }
 nameplates = <unnamed> {
 }
 petbar = bUI_Pet 2 Actionbar {
 }
 double click buyout = <unnamed> {
 }
 bar4 = bUI_Right 1 Actionbar {
 }
}

I have no idea how these bugs got in, I think I like didn't realized I was tabbed and was slamming keybinds and moved a ton of stuff around without noticing. I pushed an update, everything should be good now.
Blooblahguy is offline Report comment to moderator  
Reply With Quote
Unread Yesterday, 04:56 PM  
Telaq
A Kobold Labourer
 
Telaq's Avatar

Forum posts: 1
File comments: 12
Uploads: 0
How does this look in raidcombat? or in raid overall?

Cant DL and check it out as i'm at work atm!
Telaq is offline Report comment to moderator  
Reply With Quote
Unread Yesterday, 02:42 PM  
KepiGio
A Defias Bandit
 
KepiGio's Avatar
AddOn Compiler - Click to view compilations

Forum posts: 2
File comments: 28
Uploads: 2
If i try to go into /bui config I get the following Error Message:

Code:
Message: Interface\AddOns\bUI\core\commands.lua:15: attempt to index field 'configmain' (a nil value)
Time: 01/26/15 15:43:16
Count: 1
Stack: Interface\AddOns\bUI\core\commands.lua:15: in function `?'
Interface\FrameXML\ChatFrame.lua:4387: in function `ChatEdit_ParseText'
Interface\FrameXML\ChatFrame.lua:4041: in function `ChatEdit_SendText'
Interface\FrameXML\ChatFrame.lua:4080: in function `ChatEdit_OnEnterPressed'
[string "*:OnEnterPressed"]:1: in function <[string "*:OnEnterPressed"]:1>

Locals: msg = "config"
editbox = ChatFrame1EditBox {
 0 = <userdata>
 tabCompleteTableIndex = 1
 focusLeft = ChatFrame1EditBoxFocusLeft {
 }
 setText = 0
 chatFrame = ChatFrame1 {
 }
 addSpaceToAutoComplete = true
 command = "/bui"
 language = "Orcish"
 focusMid = ChatFrame1EditBoxFocusMid {
 }
 headerSuffix = ChatFrame1EditBoxHeaderSuffix {
 }
 text = "/"
 autoCompleteXOffset = 35
 header = ChatFrame1EditBoxHeader {
 }
 addHighlightedText = true
 languageID = 1
 focusRight = ChatFrame1EditBoxFocusRight {
 }
}
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = "attempt to index field 'configmain' (a nil value)"
bUI = <unnamed> {
 0 = <userdata>
 moveui = <function> defined @Interface\AddOns\bUI\core\functions.lua:56
 resetUI = <function> defined @Interface\AddOns\bUI\core\functions.lua:47
 media = <table> {
 }
 MakeMovable = <function> defined @Interface\AddOns\bUI\core\functions.lua:6
 moveable = <table> {
 }
 moving = 0
 class = "WARRIOR"
}
F = <table> {
 bar3 = bUI_Bottom Right Actionbar {
 }
 errors = <unnamed> {
 }
 powerbar = <unnamed> {
 }
 bags = <unnamed> {
 }
 unitframes = <unnamed> {
 }
 minimap = Minimap {
 }
 config window = <unnamed> {
 }
 extrabar = <unnamed> {
 }
 xp = bXP {
 }
 interrupts = <unnamed> {
 }
 loading = <unnamed> {
 }
 chat = <unnamed> {
 }
 buff tracker = <unnamed> {
 }
 buffs = <unnamed> {
 }
 bar5 = bUI_Right 2 Actionbar {
 }
 sell greys = <unnamed> {
 }
 ranged = <unnamed> {
 }
 bar2 = bUI_Bottom Left Actionbar {
 }
 bar1 = bUI_Main Actionbar {
 }
 tooltip = <unnamed> {
 }
 chatbackground = <unnamed> {
 }
 auto repair = <unnamed> {
 }
 fonts = <unnamed> {
 }
 config = <unnamed> {
 }
 stancebar = bUI_Pet 2 Actionbar {
 }
 abcore = <unnamed> {
 }
 nameplates = <unnamed> {
 }
 petbar = bUI_Pet 2 Actionbar {
 }
 double click buyout = <unnamed> {
 }
 bar4 = bUI_Right 1 Actionbar {
 }
}
__________________
KepiGio is offline Report comment to moderator  
Reply With Quote
Unread Yesterday, 02:30 PM  
Baine
A Murloc Raider
 
Baine's Avatar
AddOn Author - Click to view AddOns

Forum posts: 4
File comments: 341
Uploads: 2
first login with your addon alone is ok
after that, and after each /rl i get this:
Code:
Message: Interface\AddOns\bUI\config\core.lua:149: attempt to call global 'skinBackdrop' (a nil value)
Time: 01/26/15 21:31:19
Count: 1
Stack: Interface\AddOns\bUI\config\core.lua:149: in function `addOption'
Interface\AddOns\bUI\config\core.lua:175: in main chunk

Locals: name = "General"
frame = <unnamed> {
 0 = <userdata>
 text = <unnamed> {
 }
 name = "General"
 select = <function> defined @Interface\AddOns\bUI\config\core.lua:101
}
panel = <unnamed> {
 0 = <userdata>
 name = "General"
 scrollframe = <unnamed> {
 }
}
(*temporary) = nil
(*temporary) = <unnamed> {
 0 = <userdata>
 scrollStep = 1
 ScrollUpButton = UIParentScrollUpButton {
 }
 ScrollDownButton = UIParentScrollDownButton {
 }
}
(*temporary) = 0.1
(*temporary) = 0.1
(*temporary) = 0.1
(*temporary) = 0.8
(*temporary) = "attempt to call global 'skinBackdrop' (a nil value)"
configmain = <unnamed> {
 0 = <userdata>
 addOption = <function> defined @Interface\AddOns\bUI\config\core.lua:80
 options = <table> {
 }
 close = <unnamed> {
 }
 numframes = 0
 changed = <function> defined @Interface\AddOns\bUI\config\core.lua:48
 left = <unnamed> {
 }
 panels = <table> {
 }
}
media = <table> {
 unitColors = <table> {
 }
 flat = "Interface\Buttons\WHITE8x8"
 arial = "fonts\ARIALN.ttf"
 API = <table> {
 }
 font = "Interface\Addons\bUI\core\font.ttf"
}


edit:
also got those:
Code:
Message: Interface\AddOns\bUI\modules\tooltips\tooltips.lua:35: attempt to index global 'config' (a nil value)
Time: 01/26/15 21:32:27
Count: 1
Stack: Interface\AddOns\bUI\modules\tooltips\tooltips.lua:35: in function `Enable'
Interface\AddOns\bUI\core\loading.lua:89: in function <Interface\AddOns\bUI\core\loading.lua:26>

Locals: self = <unnamed> {
 0 = <userdata>
 Enable = <function> defined @Interface\AddOns\bUI\modules\tooltips\tooltips.lua:6
}
tooltips = <table> {
 1 = "GameTooltip"
 2 = "ItemRefTooltip"
 3 = "ItemRefShoppingTooltip1"
 4 = "ItemRefShoppingTooltip2"
 5 = "ShoppingTooltip1"
 6 = "ShoppingTooltip2"
 7 = "DropDownList1MenuBackdrop"
 8 = "DropDownList2MenuBackdrop"
 9 = "WorldMapTooltip"
 10 = "WorldMapCompareTooltip1"
 11 = "WorldMapCompareTooltip2"
}
tooltips2 = <table> {
 1 = "GameTooltip"
 2 = "ShoppingTooltip1"
 3 = "DropDownList1MenuBackdrop"
 4 = "WorldMapTooltip"
 5 = "WorldMapCompareTooltip1"
}
(*temporary) = nil
(*temporary) = 11
(*temporary) = 1
(*temporary) = 11
(*temporary) = <function> defined =[C]:-1
(*temporary) = WorldMapCompareTooltip2 {
 0 = <userdata>
 updateTooltip = 0.2
 needsReset = true
}
(*temporary) = 1
(*temporary) = <userdata>
(*temporary) = nil
(*temporary) = 0
(*temporary) = "attempt to index global 'config' (a nil value)"
media = <table> {
 unitColors = <table> {
 }
 flat = "Interface\Buttons\WHITE8x8"
 arial = "fonts\ARIALN.ttf"
 API = <table> {
 }
 font = "Interface\Addons\bUI\core\font.ttf"
}
C = <table> {
 general = <table> {
 }
 powerbar = <table> {
 }
 bags = <table> {
 }
 buff tracker = <table> {
 }
 actionbars = <table> {
 }
 unitframes = <table> {
 }
 chat = <table> {
 }
 minimap = <table> {
 }
 xp = <table> {
 }
 nameplates = <table> {
 }
 buffs = <table> {
 }
 tooltip = <table> {
 }
 raid frames = <table> {
 }
}
on calling /bui config
Code:
Message: Interface\AddOns\bUI\core\commands.lua:15: attempt to index field 'configmain' (a nil value)
Time: 01/26/15 21:32:46
Count: 1
Stack: Interface\AddOns\bUI\core\commands.lua:15: in function `?'
Interface\FrameXML\ChatFrame.lua:4387: in function `ChatEdit_ParseText'
Interface\FrameXML\ChatFrame.lua:4041: in function `ChatEdit_SendText'
Interface\FrameXML\ChatFrame.lua:4080: in function `ChatEdit_OnEnterPressed'
[string "*:OnEnterPressed"]:1: in function <[string "*:OnEnterPressed"]:1>

Locals: msg = "config"
editbox = ChatFrame1EditBox {
 0 = <userdata>
 tabCompleteTableIndex = 1
 focusLeft = ChatFrame1EditBoxFocusLeft {
 }
 setText = 0
 chatFrame = ChatFrame1 {
 }
 addSpaceToAutoComplete = true
 command = "/bui"
 language = "Gemeinsprache"
 chatLanguage = "Gemeinsprache"
 headerSuffix = ChatFrame1EditBoxHeaderSuffix {
 }
 text = ""
 autoCompleteXOffset = 35
 focusMid = ChatFrame1EditBoxFocusMid {
 }
 header = ChatFrame1EditBoxHeader {
 }
 addHighlightedText = true
 languageID = 7
 focusRight = ChatFrame1EditBoxFocusRight {
 }
}
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = "attempt to index field 'configmain' (a nil value)"
bUI = <unnamed> {
 0 = <userdata>
 moveui = <function> defined @Interface\AddOns\bUI\core\functions.lua:56
 resetUI = <function> defined @Interface\AddOns\bUI\core\functions.lua:47
 media = <table> {
 }
 MakeMovable = <function> defined @Interface\AddOns\bUI\core\functions.lua:6
 moveable = <table> {
 }
 moving = 0
 class = "MAGE"
}
F = <table> {
 bar3 = bUI_Bottom Right Actionbar {
 }
 errors = <unnamed> {
 }
 powerbar = <unnamed> {
 }
 bags = <unnamed> {
 }
 unitframes = <unnamed> {
 }
 minimap = Minimap {
 }
 config window = <unnamed> {
 }
 extrabar = <unnamed> {
 }
 xp = bXP {
 }
 interrupts = <unnamed> {
 }
 loading = <unnamed> {
 }
 chat = <unnamed> {
 }
 buff tracker = <unnamed> {
 }
 buffs = <unnamed> {
 }
 bar5 = bUI_Right 2 Actionbar {
 }
 sell greys = <unnamed> {
 }
 ranged = <unnamed> {
 }
 bar2 = bUI_Bottom Left Actionbar {
 }
 bar1 = bUI_Main Actionbar {
 }
 tooltip = <unnamed> {
 }
 chatbackground = <unnamed> {
 }
 auto repair = <unnamed> {
 }
 fonts = <unnamed> {
 }
 config = <unnamed> {
 }
 stancebar = bUI_Pet 2 Actionbar {
 }
 abcore = <unnamed> {
 }
 nameplates = <unnamed> {
 }
 petbar = bUI_Pet 2 Actionbar {
 }
 double click buyout = <unnamed> {
 }
 bar4 = bUI_Right 1 Actionbar {
 }
}
__________________
Last edited by Baine : 01-26-15 at 02:33 PM.
Baine is offline Report comment to moderator  
Reply With Quote
Unread 12-16-14, 05:40 PM  
Blooblahguy
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 10
File comments: 157
Uploads: 21
Originally Posted by JackOnTheMap
Liking the UI. Playing around with things and I'd like to remove the name and health text from the unitframes. I like the bars to be minimalistic.

If you could point me in the general direction, that would be great.
On line 252 you can see where I'm making specific style changes by frame. There's a function for player, target, focus, etc

Just add
Code:
self.Name:Hide()
self.Curhp:Hide()
To the bottom of the functions
Blooblahguy is offline Report comment to moderator  
Reply With Quote
Unread 12-16-14, 04:14 PM  
JackOnTheMap
A Murloc Raider

Forum posts: 8
File comments: 133
Uploads: 0
Liking the UI. Playing around with things and I'd like to remove the name and health text from the unitframes. I like the bars to be minimalistic.

If you could point me in the general direction, that would be great.
JackOnTheMap is offline Report comment to moderator  
Reply With Quote
Unread 12-08-14, 04:42 AM  
kawe
A Murloc Raider

Forum posts: 9
File comments: 73
Uploads: 1
Re: Re: Main action bar doesnt change

i think this is how i fixed it previously but i changed to domino's cause of pet (activation overlay bug; when changing the size of petbar, the "autocast animation", those yellow dots doesnt resize)

myclass = select(2, UnitClass("player"));

local function GetBar()
local condition = Page["DEFAULT"]
local class = myclass
local page = Page[class]
if page then
condition = condition.." "..page
end
condition = condition.." 1"
return condition
end
Originally Posted by Blooblahguy
Originally Posted by Skyring04
Love this ui, but sadly right now I cant use it. When I switch into cat or bear form the action bar doesnt change? Is there a way to fix this?
Hmm, might have broken that and have not noticed since I don't play a druid or rogue atm. I'll look into it.
kawe is offline Report comment to moderator  
Reply With Quote
Unread 12-07-14, 07:40 PM  
Blooblahguy
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 10
File comments: 157
Uploads: 21
Re: Main action bar doesnt change

Originally Posted by Skyring04
Love this ui, but sadly right now I cant use it. When I switch into cat or bear form the action bar doesnt change? Is there a way to fix this?
Hmm, might have broken that and have not noticed since I don't play a druid or rogue atm. I'll look into it.
Blooblahguy is offline Report comment to moderator  
Reply With Quote
Unread 12-07-14, 09:33 AM  
Skyring04
A Kobold Labourer

Forum posts: 0
File comments: 1
Uploads: 0
Main action bar doesnt change

Love this ui, but sadly right now I cant use it. When I switch into cat or bear form the action bar doesnt change? Is there a way to fix this?
Skyring04 is offline Report comment to moderator  
Reply With Quote
Unread 12-03-14, 03:16 PM  
kawe
A Murloc Raider

Forum posts: 9
File comments: 73
Uploads: 1
hp integer

Originally Posted by Phanx View Post
First of all, let's put that code in a [code] tag so it's nice to read:
Code:
oUF.Tags.Events['curhp'] = 'UNIT_HEALTH UNIT_MAXHEALTH'
oUF.Tags.Methods['curhp'] = function(unit)
   local r,g,b = gradient(UnitHealth(unit)/UnitHealthMax(unit))
   return format('|cff%02x%02x%02x %s |cffFFFFFF | |r|cff%02x%02x%02x%d%%|r', 
      r, g, b, numberize(UnitHealth(unit)), 
      r, g, b, floor((UnitHealth(unit)/UnitHealthMax(unit))*1000)/10)
end
Now, the part I highlighted in orange is what's causing your error. UnitHealthMax can return 0, and we all know dividing by 0 causes black holes.

While you're fixing that, you should also use some variables to avoid having to call UnitHealth and UnitHealthMax multiple times, since function calls are Very Slow:
Code:
oUF.Tags.Events['curhp'] = 'UNIT_HEALTH UNIT_MAXHEALTH'
oUF.Tags.Methods['curhp'] = function(unit)
   local hp, hpMax = UnitHealth(unit), UnitHealthMax(unit)
   if hpMax == 0 then return end
   local hpPercent = hp / hpMax
   local r,g,b = gradient(hpPercent)
   return format('|cff%02x%02x%02x %s |cffFFFFFF | |r|cff%02x%02x%02x%d%%|r', 
      r, g, b, numberize(hp), 
      r, g, b, floor(hpPercent * 1000) / 10
   )
end
kawe is offline Report comment to moderator  
Reply With Quote
Unread 11-24-14, 05:47 AM  
kawe
A Murloc Raider

Forum posts: 9
File comments: 73
Uploads: 1
name tags

first one was my bad with editting

you might want to add this one for the esthetics

local Iconbg = CreateFrame("frame", nil, self.Castbar)
Iconbg:SetFrameLevel(0)
Iconbg:SetAllPoints(self.Castbar.Icon)
skinBackdrop(Iconbg)

last small notice 'Spirit of Beast Blessing' in bbuffed; should be 'Spirit Beast Blessing'

thx allot btw!
Last edited by kawe : 11-24-14 at 09:29 AM.
kawe is offline Report comment to moderator  
Reply With Quote
Unread 11-24-14, 05:39 AM  
kawe
A Murloc Raider

Forum posts: 9
File comments: 73
Uploads: 1
Re: ToT and Pet

Originally Posted by Baine
looks good, used your UI in the past
there's one thing that bugs me though...

ToT and Pet frames are overlapping (namewise), see screenshot below
any way to "fix" that?
go to modules, unitframes, line 209 there u can change the name position
kawe is offline Report comment to moderator  
Reply With Quote
Unread 11-24-14, 05:17 AM  
Baine
A Murloc Raider
 
Baine's Avatar
AddOn Author - Click to view AddOns

Forum posts: 4
File comments: 341
Uploads: 2
ToT and Pet

looks good, used your UI in the past
there's one thing that bugs me though...

ToT and Pet frames are overlapping (namewise), see screenshot below
any way to "fix" that?
__________________
Baine is offline Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump:

Support AddOn Development!

You have just downloaded by the author . If you like this AddOn why not consider supporting the author? This author has set up a donation account. Donations ensure that authors can continue to develop useful tools for everyone.