[outdated] Extend the Ignore API
Would be really nice if there was an AddIgnore(name, note) function in addition to AddIgnore(name). Either that, or at least allow us to look up Ignore records by character name instead of only account name.
|
That should be fairly easy to do.
Just make a tiny addon with its own ignore function that allows you to store this kind of data in a savedVariable. |
Quote:
|
You can display the note in a tooltip or some other way.
|
I agree, however...
Since there is already SetIgnoreNote(), I would be more interested in adding a return value for AddIgnore(). That way you could do:
ignoreIndex = AddIgnore(string charOrDisplayName) SetIgnoreNote(luaindex ignoreIndex, string note) That's what I've been wanting to do, but the majority of the functions that do stuff don't give any return variables. :( |
Uhh... I don't understand. You can set ignore notes, and view them already?!?
Also, ignore index is just a number. If you have 5 people on the ignore list, ignoreIndex can be 1-5. If someone is added to that list, it can be 1-6 then. If you remove 2 from the middle, it can be 1-4; it is (like) a lua table, "blanks will be filled". You can do a quick for loop and get the index; that's what I'm saying in short. |
All times are GMT -6. The time now is 10:41 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI