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
|