/Post-it
## Notes: Addon to write notes into items. |
## Author: Mikma |
## SavedVariables: PostitDB |
## Version: 0.1 |
## Version: 0.2 |
## X-Website: http://mikma.eu/wow |
## X-Email: mikko.majuri@gmail.com |
local addonName, addon = ... |
if not PostitDB then PostitDB = {} end |
Postit = {} |
local sources = Postit |
local origs = {} |
local name, link = frame:GetItem() |
if link then |
local id = tonumber(link:match("item:(%d+):")) |
if not PostitDB then PostitDB = {} end |
if PostitDB[id] then AddLines(frame, string.split("`", PostitDB[id])) end |
end |
if origs[frame] then return origs[frame](frame, ...) end |