So, I am building in a tradeskill roster into my addon similar to the current guild tradeskill. So here is the issue, It seems that the function they are using requires a guildId which means it will load based on the member in your guild. I have link info which looks like this:
How do I use that link information to get the tradeskill window to show up when clicking a button? I have tried to use SetItemRef but it doesnt seem to work.
I have the link working now when I print it, but I still cannot seem to get it to launch when I click on my button. This is the code that gets executed when the button is pushed.
local link = self:AddLinks(widget.link) --Convert to a link
self:Print(link) --Prints a clickable link
SetItemRef(link, widget.name, button) --Should open tradeskill window, but doesnt.
your missing the | at the start from the look of it. Also you don't need the widget.name or button in your SetItemRef call as really they don't matter in this context
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
"cffffd000Htrade:88053:525:525:20000000048F1B3:2/7///7///9f///9/v7////////D+//////fh[Cooking]hr"
How do I use that link information to get the tradeskill window to show up when clicking a button? I have tried to use SetItemRef but it doesnt seem to work.
local link = self:AddLinks(widget.link) --Convert to a link
self:Print(link) --Prints a clickable link
SetItemRef(link, widget.name, button) --Should open tradeskill window, but doesnt.