So I want to remove my right click context menu items since it looks like Blizzard will never fix that bug but that leaves me with another problem that I need to solve and I was wondering if anyone else had some cleaver ideas. The menu items allowed my addon to invite players into the Metaguild. The only reason I did it that was was so names with strange characters in them could easily be invited into the guild without having to try to type them in. If I remove this function, how else can I get the names of the characters without having to type them in?
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.
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.
So for my Addon, I am interested in getting the achievements the player gets, but want to exclude any guild achievements. Does anyone have any Idea how to do this? I was looking into the categories but didn't see anything that was "guild" related. Any help would be most welcome. Thanks.
Does anyone have any examples of how to get this to work? I dont want to totally replace the current right click menu, I only want to add my own menu item.
So My addon allows you to invite other addons to join it. While I can use slash commands, players with strange letters in their names become an issue. My solution was to add my own kind of "Addon Invite" to the right click character context menu.
Yes. I was iterating over the table as I was modifying it, which was a very bad thing to do and made my results vary. Thanks for the help guys. I will try to avoid such bad ideas in the future.
There is a whole drawn out story, but the basics come down to this
DB.profile.data[newKey] = DB.profile.data[oldKey]
DB.profile.data[oldKey] = nil
DB.profile.data[newKey] now is nil.
Is there another way to do this? I basically am just trying to switch the key in the database but the way I am doing it is destroying my data. Any ideas?
0
https://gist.github.com/1518409
0
0
0
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.
0
0
"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.
0
0
0
0
0
0
So here is my question... How do you do that?
Thanks in advance.
0
0
DB.profile.data[newKey] = DB.profile.data[oldKey]
DB.profile.data[oldKey] = nil
DB.profile.data[newKey] now is nil.
Is there another way to do this? I basically am just trying to switch the key in the database but the way I am doing it is destroying my data. Any ideas?
0