WoWInterface SVN ItemLinkRecolor

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /
    from Rev 6 to Rev 7
    Reverse comparison

Rev 6 → Rev 7

ItemLinkRecolor.toc
1,8 → 1,8
## Interface: 50001
## Title: * |cFF33CC66Item Link Recolor|r
## Author: |cff993366Silvanas
## Version: 3.0.3
## Notes: |cff999999Adds more info in the item chatlinks |n|cffffffffVersion: (|cFF9900003|cFFFFFFFF.|cFF9900000|cFFFFFFFF.|cFF9900003|cFFFFFFFF)|n|cFFFFFFFFAuthor: |cFF993366Silvanas|r
## Version: 3.0.4
## Notes: |cff999999Adds more info in the item chatlinks |n|cffffffffVersion: (|cFF9900003|cFFFFFFFF.|cFF9900000|cFFFFFFFF.|cFF9900004|cFFFFFFFF)|n|cFFFFFFFFAuthor: |cFF993366Silvanas|r
## eMail: westhof99@zonnet.nl
## URL: http://www.google.com
## License: None
ItemLinkRecolor.lua
1,5 → 1,8
--[[
Changelog:
Version 3.0.4
Removed some debugging info i forgot
 
Version 3.0.3
Updated TOC version number
Fixed for MoP 11 sections itemlinks
179,7 → 182,7
--main global var
ItemLinkRecolor = {
["NAME"] = "|TInterface\\Icons\\Spell_unused:0|t |cFF33CC66Item Link Recolor|r",
["VERSION"] = "(|cFF9900003|cFFFFFFFF.|cFF9900000|cFFFFFFFF.|cFF9900003|cFFFFFFFF)|r",
["VERSION"] = "(|cFF9900003|cFFFFFFFF.|cFF9900000|cFFFFFFFF.|cFF9900004|cFFFFFFFF)|r",
}
--
 
229,9 → 232,6
--on event
function ItemLinkRecolor_Event()
--basic chatframe event hook
 
Silvanas.DebugVar(ChatFrame_MessageEventHandler, "Hooking")
 
ILR_ChatFrame_MessageEventHandler_Hook = ChatFrame_MessageEventHandler
ChatFrame_MessageEventHandler = ItemLinkRecolor_ChatFrame_MessageEventHandler
 
356,8 → 356,6
--coloring functions--
----------------------
function ItemLinkRecolor_Colorize(texty)
Silvanas.DebugVar(texty:gsub("|","||"), "Colorising")
 
--parse elements of the link
local link,itemnum,socket1,socket2,socket3,linklvl
link,itemnum,socket1,socket2,socket3,linklvl = string.match(texty,"^|H(item:(%d+):%d+:(%d+):(%d+):(%d+):%d+:[-%d]+:[-%d]+:(%d+):%d+:%d+)|h")