WoWInterface SVN idChat

Compare Revisions

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

Rev 5 → Rev 6

trunk/idChat.toc
1,9 → 1,2
## Interface: 20400
## Title: Industrial: Chat
## Credits: Industrial
## Notes: Chat frame modifications
 
## LoadManagers: AddonLoader
## X-LoadOn-Always: delayed
 
## Interface: 30000
Addon.lua
trunk/Addon.lua
34,6 → 34,17
local BL, BC, BR = 'BOTTOMLEFT', 'BOTTOM', 'BOTTOMRIGHT'
 
local hooks = {}
local replaces = {
['Guild'] = 'G',
['Party'] = 'P',
['Raid'] = 'R',
['Raid Leader'] = 'RL',
['Raid Warning'] = 'RW',
['Officer'] = 'O',
['Battleground'] = 'B',
['Battleground Leader'] = 'BL',
['(%d+)%. .-'] = '%1',
}
 
local function moveFrame (f, p1, p, p2, x, y)
f:ClearAllPoints()
52,17 → 63,11
 
local function AddMessage(frame, text, red, green, blue, id)
text = tostring(text) or ''
text = text:gsub('%[Guild%] (|Hplayer.+)', 'G %1')
text = text:gsub('%[Party%] (|Hplayer.+)', 'P %1')
text = text:gsub('%[Raid%] (|Hplayer.+)', 'R %1')
text = text:gsub('%[Raid Leader%] (|Hplayer.+)', 'RL %1')
text = text:gsub('%[Raid Warning%] (|Hplayer.+)', 'RW %1')
text = text:gsub('%[Officer%] (|Hplayer.+)', 'O %1')
text = text:gsub('%[Battleground%] (|Hplayer.+)', 'B %1')
text = text:gsub('%[Battleground Leader%] (|Hplayer.+)', 'BL %1')
text = text:gsub('%<AFK%>(|Hplayer.+)', '%1')
text = text:gsub('%<DND%>(|Hplayer.+)', '%1')
text = text:gsub('%[(%d+)%. .+%] (|Hplayer.+)', '%1 %2')
 
for k,v in pairs(replaces) do
text = text:gsub('|h%['..k..'%]|h', '|h'..v..'|h')
end
 
text = text:gsub('(|Hplayer.-|h)%[(.-)%].-:', '%1%2|h:')
text = '|cff999999' .. date('%H%M') .. '|r ' .. text