Originally Posted by Othgar
This would be pretty sweet. At least two of my UI's have chat located at the top of my screen. from what I see the thread it looks like you not only have to modify the tab, but the tab when clicked and the notification glow.
Maybe something that could be coded into Nib Chat Tabs? I'll play around with it later tonight and see if I can get anything to work.
|
Thanks for the Nib suggestion! I'd wound up throwing Nib's text offset code into my edit of Shestak's edit of haste's Fane.
The tab titles relocate, but not the associated clickable regions (haven't figured it out yet /sigh)...
lua Code:
local TabTextMoved = {}
function nibchat(test)
local chat, tab, flash
for i = 1, 10 do
chat = _G["ChatFrame"..i]
tab = _G["ChatFrame"..i.."Tab"]
flash = _G["ChatFrame"..i.."TabFlash"]
if not test then
if not TabTextMoved[i] then
local fs = tab:GetFontString()
local point, relativeTo, relativePoint, xOfs, yOfs = fs:GetPoint()
local xAdj, yAdj = 0, 0
if IsCombatLog(chat) then
xAdj = 0
yAdj = -130
else
xAdj = 0
yAdj = -130
end
fs:SetPoint(point, relativeTo, relativePoint, xOfs + xAdj, yOfs + yAdj)
tab:SetScript("OnEnter", ChatTab_OnEnter)
tab:SetScript("OnLeave", ChatTab_OnLeave)
TabTextMoved[i] = true
end
end
end
end
nibchat()