Download
(283Kb)
Download
Updated: 10-27-22 05:31 PM
Compatibility:
Dragonflight Pre-patch (10.0.0)
Updated:10-27-22 05:31 PM
Created:08-28-12 08:53 PM
Downloads:20,938
Favorites:40
MD5:

oUF Hank Fan Update  Popular! (More than 5000 hits)

Version: 10.0.1
by: gwyd [More]

This is an update of Hank's oUF_Hank addon for WoW 10.0.

Dependancies: oUF by haste.
Optional Dependancies:
oUF_WarlockSpecBars - by tukz
oUF_TotemBar (included) - updated by ckaotik

Note: Development code can be found on github

All credit goes to Hank. I am only trying to keep it running.

== 7.0.0
Compatibility with legion

== 6.0.2
Added a 6th chi class icon when needed
Latency calculation fix for castbar

== 6.0.1
Fixed backgrounds showing for class icons
Fixed animations for players without class icons (low level paly, non-spriest)
Removed animations for eclipse bar (this is a temporary fix to make the addon work for druids, but more work is still needed)
Experimental: added support for auras on player frame

== 6.0
Updated for WoD
Moved combo points to player frame

== 5.2.0
.toc bump
Fixed tag display for untaggable mobs -ckaotik
Updated moonkin eclipse cast counter formulas -ckaotik

== 5.1.0 ==
.toc bump
vehicle health fix
updated dispel types

== 5.0.5 ==
Fixed .toc file after breaking it.

== 5.0.5 ==
Added Warlock and Shaman power bars courtesy of ckaotik.
Updated config to parse focus frame correctly.

== 5.0.4c ==
Added back config functionality
Optional Files (1)
File Name
Version
Size
Author
Date
Type
0
352kB
09-27-12 10:26 AM
Patch


Post A Reply Comment Options
Unread 10-30-13, 11:05 PM  
FallMonkey
A Kobold Labourer

Forum posts: 0
File comments: 4
Uploads: 0
Since the recent patch of 5.4.1, there's been this annoying issue:

My unitframe(player frame, specifically) of Hank will be on top of the map if I toggle the world map and it's the only thing that is on top of the map, while other addons like elvui are working fine and behind the map.

Since I recall seeing some errors of elvui days ago about blizzard blocking evlui's functions to interact with map, this might be where the issue stems from.
http://us.battle.net/wow/en/forum/topic/10388639018#20
http://us.battle.net/wow/en/forum/topic/10389278994

Any thought you might have? I love the modification you make there and hope this tiny patch is not ruining the whole fun. Thanks!
Report comment to moderator  
Reply With Quote
Unread 11-21-13, 01:30 PM  
Pyrates
A Cliff Giant
 
Pyrates's Avatar
AddOn Author - Click to view AddOns

Forum posts: 77
File comments: 280
Uploads: 4
You should probably rename that folder for your download, I neede to rename it to "oUF_Hank_v3" to have it loaded.

Thanks for keeping hanks_uf up, I'm reviving my UI package and I'm very happy this is still around
__________________
" ... and the Vogon will do things to you that you wish you'd never been born, or, if you're a clearer minded thinker, that the Vogon had never been born."
Report comment to moderator  
Reply With Quote
Unread 11-23-13, 09:18 AM  
Pyrates
A Cliff Giant
 
Pyrates's Avatar
AddOn Author - Click to view AddOns

Forum posts: 77
File comments: 280
Uploads: 4
Can anyone tell me why the following modification isn't working?

Code:
oUF.Tags.Methods["classColor"] = function(unit)
	local color = RAID_CLASS_COLORS[select(2, UnitClass(unit))]
	if not color then
		color = {}
		color.r = 1
		color.g = 1
		color.b = 1
	end
	
	return ("FF%.2x%.2x%.2x"):format(color.r * 255, color.g * 255, color.b * 255)
end

oUF_Hank_hooks.ClassToT_etc = {
	sharedStyle = function(self, unit, isSingle)
		if unit == "targettarget" or unit == "focustarget" then self:Tag(name, "|c[classColor]\226\128\186  [smartName] @ [perhp]%|r")
		elseif unit == "targettargettarget" then self:Tag(name, "|c[classColor]\194\187 [smartName] @ [perhp]%|r") end
	end,
}
The ingame message tells me the hook is loaded. I can put that sharedStyle part into hank_v3.lua (just the 2 lines with "if" and "elseif" to replace lines 641 and 642) and the tag into tags.lua just copy-&pasting, and it works, so there isn't any typo or whatnot. Still, with the hook is just doesn't work, no error message... Any help appreciated!
__________________
" ... and the Vogon will do things to you that you wish you'd never been born, or, if you're a clearer minded thinker, that the Vogon had never been born."
Report comment to moderator  
Reply With Quote
Unread 03-29-14, 02:44 PM  
Pyrates
A Cliff Giant
 
Pyrates's Avatar
AddOn Author - Click to view AddOns

Forum posts: 77
File comments: 280
Uploads: 4
I think there's a small problem with the class icons. At least for the priest, the background of the shadow orbs shows up regardless of spec. I suspect the same is true for the soul shard of the warlocks wrt spell availability (I don't really know much about that, I just read classicons.lua). I fixed it by inserting the following code in hank_v3.lua after the definition of self.ClassIcons.PostUpdate. Please not that this is not thoroughly tested, especially in case of warlocks.

Lua Code:
  1. if playerClass == "PRIEST" then
  2.             local talentUpdate = function(self,event, unit)
  3.                 if GetSpecialization() ~= SPEC_PRIEST_SHADOW then --Shadow Spec
  4.                     for i = 1,5 do
  5.                         bg[i]:Hide()
  6.                     end
  7.                 else
  8.                     for i = 1,5 do
  9.                         bg[i]:Show()
  10.                     end
  11.                 end
  12.             end
  13.            
  14.             self:RegisterEvent('PLAYER_TALENT_UPDATE', talentUpdate, true)
  15.            
  16.         elseif playerClass == "WARLOCK" then   
  17.             local spellUpdate = function(self,event, unit)
  18.                 if GetSpecialization() ~= WARLOCK_SOULBURN then --Shadow Spec
  19.                     for i = 1,5 do
  20.                         bg[i]:Hide()
  21.                     end
  22.                 else
  23.                     for i = 1,5 do
  24.                         bg[i]:Show()
  25.                     end
  26.                 end
  27.             end
  28.        
  29.             self:RegisterEvent('SPELLS_CHANGED', spellUpdate, true)
  30.         end
__________________
" ... and the Vogon will do things to you that you wish you'd never been born, or, if you're a clearer minded thinker, that the Vogon had never been born."
Report comment to moderator  
Reply With Quote
Unread 10-15-14, 11:27 AM  
jbbuena
A Defias Bandit

Forum posts: 2
File comments: 14
Uploads: 0
Thank you so much for the prompt update to this addon!

May I ask if there's any way to make it so the text on the castbars have outlines or shadows on them? It looks so bare with just the white text. :x
Report comment to moderator  
Reply With Quote
Unread 10-15-14, 11:29 AM  
Dancingblade
A Murloc Raider
 
Dancingblade's Avatar

Forum posts: 9
File comments: 50
Uploads: 0
I'd also like to thank you for keeping this addon going.

It seems like the latency tracking on the castbars is wonky. It always shows a very high latency in the text and the entire bar is red. Other than that, working great and I'm thrilled to have it. Thanks again!
Report comment to moderator  
Reply With Quote
Unread 10-18-14, 09:39 PM  
the9thresident
A Kobold Labourer
 
the9thresident's Avatar

Forum posts: 1
File comments: 60
Uploads: 0
bugsack error on lock

10x oUF_Hank\hank.lua:1252: attempt to compare nil with number
oUF_Hank\hank.lua:1252: in function <oUF_Hank\hank.lua:1250>
(tail call): ?
(tail call): ?
oUF\elements\classicons.lua:199: in function <oUF\elements\classicons.lua:190>
oUF\elements\classicons.lua:166: in function <oUF\elements\classicons.lua:147>
(tail call): ?
oUF\ouf-1.6.8.lua:158: in function <oUF\ouf.lua:149>
(tail call): ?
[C]: in function `Show'
FrameXML\SecureStateDriver.lua:83: in function <FrameXML\SecureStateDriver.lua:73>
FrameXML\SecureStateDriver.lua:137: in function <FrameXML\SecureStateDriver.lua:119>

Locals:
(*temporary) = 0.017000000923872
(*temporary) = <function> defined =[C]:-1

now getting it on a low lvl priest too (just made her) but not on my high lvl SP O.o odd
Last edited by the9thresident : 10-19-14 at 12:52 AM.
Report comment to moderator  
Reply With Quote
Unread 10-19-14, 06:35 AM  
chumii
A Fallenroot Satyr
 
chumii's Avatar
AddOn Compiler - Click to view compilations

Forum posts: 23
File comments: 17
Uploads: 2
hey, thanks for doing this fan update, loving it so far

but i just got this error on my feral druid

1x oUF_Hank\hank.lua:1300: attempt to index field 'direction' (a nil value)
oUF_Hank\hank.lua:1300: in function <oUF_Hank\hank.lua:1299>
(tail call): ?
oUF\elements\eclipsebar.lua:177: in function `func'
oUF\ouf-1.6.8.lua:158: in function <oUF\ouf.lua:149>
(tail call): ?
[C]: in function `Show'
FrameXML\SecureStateDriver.lua:83: in function <FrameXML\SecureStateDriver.lua:73>
FrameXML\SecureStateDriver.lua:137: in function <FrameXML\SecureStateDriver.lua:119>

Locals:
(*temporary) = 1.0789999961853
(*temporary) = <function> defined =[C]:-1
Report comment to moderator  
Reply With Quote
Unread 10-21-14, 05:20 PM  
gwyd
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 10
File comments: 47
Uploads: 1
Originally Posted by jbbuena
Thank you so much for the prompt update to this addon!

May I ask if there's any way to make it so the text on the castbars have outlines or shadows on them? It looks so bare with just the white text. :x
They actually have a shadow, but it's small. If you want an outline, blizzard has 3 outline styles built in that you can use in whatever combination. If you look at the Fonts section of the config.lua file, you will see these font objects. The 3rd parameter to this can be a string with a comma-delimited list of the effects you want. For example, you could change

Lua Code:
  1. CastBarBig = {"Interface\\AddOns\\oUF_Hank_v3\\fonts\\tahoma.ttf", 15},

to be

Lua Code:
  1. CastBarBig = {"Interface\\AddOns\\oUF_Hank_v3\\fonts\\tahoma.ttf", 15, "OUTLINE, MONOCHROME"},

The 3 outline styles are "OUTLINE", "THICKOUTLINE", and "MONOCHROME".
Report comment to moderator  
Reply With Quote
Unread 10-22-14, 06:28 AM  
gwyd
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 10
File comments: 47
Uploads: 1
Originally Posted by Dancingblade
I'd also like to thank you for keeping this addon going.

It seems like the latency tracking on the castbars is wonky. It always shows a very high latency in the text and the entire bar is red. Other than that, working great and I'm thrilled to have it. Thanks again!
Yeah, it looks like the UNIT_SPELLCAST_SENT event (client side event when you start a spell) isn't being triggered for some reason so I'm not getting valid start time (just defaulting to 0). I'll look into it.
Report comment to moderator  
Reply With Quote
Unread 10-22-14, 06:33 AM  
gwyd
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 10
File comments: 47
Uploads: 1
Re: bugsack error on lock

Originally Posted by the9thresident
10x oUF_Hank\hank.lua:1252: attempt to compare nil with number
oUF_Hank\hank.lua:1252: in function <oUF_Hank\hank.lua:1250>
(tail call): ?
(tail call): ?
oUF\elements\classicons.lua:199: in function <oUF\elements\classicons.lua:190>
oUF\elements\classicons.lua:166: in function <oUF\elements\classicons.lua:147>
(tail call): ?
oUF\ouf-1.6.8.lua:158: in function <oUF\ouf.lua:149>
(tail call): ?
[C]: in function `Show'
FrameXML\SecureStateDriver.lua:83: in function <FrameXML\SecureStateDriver.lua:73>
FrameXML\SecureStateDriver.lua:137: in function <FrameXML\SecureStateDriver.lua:119>

Locals:
(*temporary) = 0.017000000923872
(*temporary) = <function> defined =[C]:-1

now getting it on a low lvl priest too (just made her) but not on my high lvl SP O.o odd
How low level? What spec are you playing? Also, make sure you have updated to the newest version of oUF. There have been some changes to class icons (shadow orbs display) and that's the chunk of code that is erroring out in your stack trace. I wasn't able to reproduce, but let me know and I can level a priest to some the same level to test.
Report comment to moderator  
Reply With Quote
Unread 10-22-14, 06:35 AM  
gwyd
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 10
File comments: 47
Uploads: 1
Originally Posted by chumii
hey, thanks for doing this fan update, loving it so far

but i just got this error on my feral druid

1x oUF_Hank\hank.lua:1300: attempt to index field 'direction' (a nil value)
oUF_Hank\hank.lua:1300: in function <oUF_Hank\hank.lua:1299>
(tail call): ?
oUF\elements\eclipsebar.lua:177: in function `func'
oUF\ouf-1.6.8.lua:158: in function <oUF\ouf.lua:149>
(tail call): ?
[C]: in function `Show'
FrameXML\SecureStateDriver.lua:83: in function <FrameXML\SecureStateDriver.lua:73>
FrameXML\SecureStateDriver.lua:137: in function <FrameXML\SecureStateDriver.lua:119>

Locals:
(*temporary) = 1.0789999961853
(*temporary) = <function> defined =[C]:-1
Yeah, I don't play a druid, but I looked around a bit last night and it looks like eclipse bar has seen some changes with WoD. I know you are feral, but the frames actually get initialized at load for the class and then just get enabled/disabled by spec. I'm probably going to have to rewrite this, but it's something hopefully I can get to this weekend.
Report comment to moderator  
Reply With Quote
Unread 10-22-14, 06:37 AM  
gwyd
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 10
File comments: 47
Uploads: 1
Originally Posted by Pyrates
I think there's a small problem with the class icons. At least for the priest, the background of the shadow orbs shows up regardless of spec. I suspect the same is true for the soul shard of the warlocks wrt spell availability (I don't really know much about that, I just read classicons.lua). I fixed it by inserting the following code in hank_v3.lua after the definition of self.ClassIcons.PostUpdate. Please not that this is not thoroughly tested, especially in case of warlocks.

Lua Code:
  1. if playerClass == "PRIEST" then
  2.             local talentUpdate = function(self,event, unit)
  3.                 if GetSpecialization() ~= SPEC_PRIEST_SHADOW then --Shadow Spec
  4.                     for i = 1,5 do
  5.                         bg[i]:Hide()
  6.                     end
  7.                 else
  8.                     for i = 1,5 do
  9.                         bg[i]:Show()
  10.                     end
  11.                 end
  12.             end
  13.            
  14.             self:RegisterEvent('PLAYER_TALENT_UPDATE', talentUpdate, true)
  15.            
  16.         elseif playerClass == "WARLOCK" then   
  17.             local spellUpdate = function(self,event, unit)
  18.                 if GetSpecialization() ~= WARLOCK_SOULBURN then --Shadow Spec
  19.                     for i = 1,5 do
  20.                         bg[i]:Hide()
  21.                     end
  22.                 else
  23.                     for i = 1,5 do
  24.                         bg[i]:Show()
  25.                     end
  26.                 end
  27.             end
  28.        
  29.             self:RegisterEvent('SPELLS_CHANGED', spellUpdate, true)
  30.         end
Sorry that this is 7 months late. Thanks for posting a solution. I'm working on a more global (all classes) solution that I should get out in the next version.
Report comment to moderator  
Reply With Quote
Unread 11-06-14, 08:41 AM  
samvx
A Defias Bandit
 
samvx's Avatar
AddOn Author - Click to view AddOns

Forum posts: 3
File comments: 118
Uploads: 3
Doesn't Works

What Im doing wrong?
unzzip>replace
Report comment to moderator  
Reply With Quote
Unread 11-06-14, 06:01 PM  
gwyd
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 10
File comments: 47
Uploads: 1
Re: Doesn't Works

Originally Posted by samvx
What Im doing wrong?
unzzip>replace
What kind of issues are you seeing? Could you install buggrabber and bugsack and tell me if you see any errors?
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: