Thread Tools Display Modes
05/12/14, 06:04 AM   #1
Trollwut
 
Trollwut's Avatar
Join Date: Apr 2014
Posts: 6
Hook into skill tooltips?

Hi guys!

I'm planning on starting to create an addon. I just want to know if it's possible to hook into an abilities' tooltip to add some more lines?

Like:
Name: Best Skill Ever
Cost: 123 Magicka
MyLine: Here my text
  Reply With Quote
05/12/14, 07:14 AM   #2
Fathis Ules
Thief Guild Master
 
Fathis Ules's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 42
Yeah I think you should hook around the global InformationTooltip
  Reply With Quote
05/12/14, 11:53 AM   #3
Harven
 
Harven's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 135
I think you should hook to SkillTooltip or SkillTooltipTopLevel. I just tried like this:
Lua Code:
  1. local f = SkillTooltip.SetSkillAbility
  2. SkillTooltip.SetSkillAbility = function(self,...)
  3. self:AddHeaderLine("test", "ZoFontGame", 1, TOOLTIP_HEADER_SIDE_LEFT, 1, 1, 1)
  4. f(self,...)
  5. end
and it displays "test" in a skill ability tooltip in the Skills window but not in the tooltip above the action bar.
  Reply With Quote

ESOUI » AddOns » AddOn Help/Support » Hook into skill tooltips?


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off