Thread Tools Display Modes
01-21-07, 06:17 PM   #1
MGiannetto
A Kobold Labourer
Join Date: Jan 2007
Posts: 1
New Developer Needs Assistance

I'm working on my first addon and need a bit of help. Hopefully I'm posting in the right place. If not, please let me know where I should post.

I'm trying to add some information to a tooltip through EnhTooltips. I'm using Stubby to hook into the EnhTooltips function and add a simple line of text to the tooltip.

I've successfully added a new line to the tooltip (simply "Hi!") and it shows up just fine. The problem is that i'm getting a popup error message in the game.

The error message reads:
[string "StubbyHookingFunction"]:1: attemp to index global 'EnhTooltip' (a nil value)

The <OnLoad> tag in the .xml file calls onLoad_TS();
Everything else there is pretty basic.

Code from .lua file:

function onLoad_TS()
Stubby.RegisterFunctionHook("EnhTooltip.AddTooltip", 500, toolTip_TS);
end

function toolTip_TS()
EnhTooltip.AddLine("Hi!");
end
____________________________________________

Can anyone give me a little advice on this? This is my first real attempt at a useful program, so anything you can do to help would be huge.

-MattG
  Reply With Quote
01-21-07, 06:45 PM   #2
Cairenn
Credendo Vides
 
Cairenn's Avatar
Premium Member
WoWInterface Admin
Join Date: Mar 2004
Posts: 7,134
Yup, right place. You're also welcome to join us in the IRC dev channel if you'd like to.

irc server: irc.freenode.net
channel: #wowi-lounge
__________________
“Do what you feel in your heart to be right — for you’ll be criticized anyway.” ~ Eleanor Roosevelt
~~~~~~~~~~~~~~~~~~~
Co-Founder & Admin: MMOUI
FaceBook Profile, Page, Group
Avatar Image by RaffaeleMarinetti
  Reply With Quote

WoWInterface » Developer Discussions » General Authoring Discussion » New Developer Needs Assistance


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