I'd like to be able to apply timestamps to the chat window I want. I have 2 windows, one with General, Trade, Say, Yell, Party, Raid, Battleground, and Emotes... Basically everything minus Whispers. Then I have another window with Whispers. I'd like my Whisper chat box to have times stamps whiile my regular window stays as clean as possible.
IN the timestamps lua find this function:
function idChat2_Timestamps:OnEnable()
for i=1, 7 do
self:Hook(getglobal('ChatFrame'..i), 'AddMessage')
end
end
and change the
for i=1, 7 do
line to
for i={whisper chat widnow #} do
It may take some trial and error to get ther right chat window number, but by default the default gneral chat and comat log windows are chat window 1 and 2 respectively.
Hey Ind,
Think you can add options to editbox that allows for autohide off as well as removing the texture around the box. How confab does it. I would also recommend the ability to change the string format for things like channelnames and timestamps.
With idChat2_ChannelNames the Channel Names are even removed on channel join and on /chatlist .. any chance you could remove it there ? I like to check sometimes which channels i am in, and which number is which channel - in case WoW screwed them up again.
i use ctmastermod (for sending mapnotes between ppl) and that already includes most of the chat options i use, just minus removing the buttons and fade-disable.
Here is the wiki page explaining you all about this Addon. Please post bug reports and feature requests here. Please start with reading at page one to prevent duplicates.
Current bugs:
ChannelNames, PlayerNames, Timestamps;
When toggling this module off and on you get error messages in the first chatframe about how a hook already exists for the function Chatframe1-7:AddMessage().
Future:
ChannelNames
For every channel the replacement of its text will be configurable.
The channel names need to be localized.
EditBox
Provide an option to hide the editbox background
PlayerNames
Provide an option to color all chat nicks by a generated color by name so you get unique colors.
Provide an option to add the player level in front of the player name.
Provide an option to show the <tt><></tt> brackets or not.
ScrollButton
This will be a new module. It will show the "scroll to bottom" button in the bottomright corner of the chatframes. It will only show when you are not at the bottom of the chat history.
Timestamps
The timestamps will be configurable.
The timestamps will be able to be turned on and off per chatframe.
UrlCopy
This will be a new module. It will catch hyperlinks and pop up an editbox with the hyperlink in it, selected, so that it can be copied.
I don't know if this is the preferred way of doing things, but I'd like to propose a small feature to the Scroll-module, adding single-page scrolling with the CTRL-key.
Changing:
function idChat2_Scroll:Scroll()
if arg1 > 0 then
if IsShiftKeyDown() then
this:ScrollToTop()
elseif IsControlKeyDown() then -- **** ADDED **** --
this:PageUp() -- **** ADDED **** --
else
this:ScrollUp()
end
elseif arg1 < 0 then
if IsShiftKeyDown() then
this:ScrollToBottom()
elseif IsControlKeyDown() then -- **** ADDED **** --
this:PageDown() -- **** ADDED **** --
else
this:ScrollDown()
end
end
end
Something small I'm constantly using :)
Edit: Oops, and almost forgot. Thanks for an excellent set of small but handy addons!
Feature Request:
- Option to Hide/Show "[6] Sirow joined channel."/"[6] Sirow left channel." messages
- URL support
- Option to removes the party, yell, and guild words from the chat line. The color of the text would be obvious enough
- Module to create item links into private channels! (See http://ui.worldofwar.net/ui.php?id=1819)
(Didn't test if some requests are allready implemented. )
Does idChat2 split Guild Officer chat off from general Guild?
Confab gives each it's own checkmark, which allows you to make a windows that display only officer chat or guild chat (or both if you check both checkmarks).
Here's a SS of Confab's implimentation.
Here's the default WoW implimentation. Its both or neither; all or nothing.
I really dig Ace and Ace2, and, personally, I don't care how it's implimented, but being able to split officer chat off to its own window is a make/break thing for any chat mod I use.
i know you're gonna get pissed cos i posted in the wrong topic indus but for some reason i can't post in the idaddons thread in the 1.x addons forum.
when you get a chance, could you update you infogami site with idactionbar stuff? all i need to do is know how to scale it and i can't find that info anywhere...
thanks
i know you're gonna get pissed cos i posted in the wrong topic indus but for some reason i can't post in the idaddons thread in the 1.x addons forum.
when you get a chance, could you update you infogami site with idactionbar stuff? all i need to do is know how to scale it and i can't find that info anywhere...
thanks
If I am correct, ida doesn't have any options, so just use visor to scale and move the frames
after the latest update (with toggleable time stamps) im not getting any timestamps on ChatFrame2 (in my case, my combat log) ive tried disabling them and re-enabling but no luck
im also curious as to where i should place my if...else block to right align the timestamps for only frame 2 (im gettin the "no timestamp issue" both with and without my hacked code
this is what i was guessing for right-aligned timestamps
function idChat2_Timestamps:AddMessage(frame, text, red, green, blue, id)
local db = idChat2.db.profile
text = text or ''
red = red or ''
green = green or ''
blue = blue or ''
id = id or nil
for i=1,7 do
local cf='ChatFrame'..i
if frame:GetName()==cf and db.Timestamps['chatframe'..i] then
local name = frame:GetName()
if frame == ChatFrame2 then
text = string.format('%s [%s]', text, date('%X'))
else
text = string.format('[%s] %s', date('%X'), text)
end
self.hooks[frame].AddMessage.orig(frame, text, red, green, blue, id)
return
else
self.hooks[frame].AddMessage.orig(frame, text, red, green, blue, id)
return
end
end
end
edit:
Feature Request
im guessing this would fit into IdChat2 (the base add-on)
add a / command /clear or /clr with the argument FrameNumer#
example:
/clr 1
or
/clr ChatFame1
which would wipe clear the text in that particular chatframe
(very handy for snapping screenshots of your UI etc without having to protect the innocents in gchat lol)
I noticed that you dont get any timestamps on any frame except ChatFrame1 .. so i figured it out.
Change idChat2_Timestamps.lua the last function (AddMessage Hook) to look like this.
function idChat2_Timestamps:AddMessage(frame, text, red, green, blue, id)
local db = idChat2.db.profile
text = text or ''
red = red or ''
green = green or ''
blue = blue or ''
id = id or nil
for i=1,7 do
local cf='ChatFrame'..i
if frame:GetName()==cf then
if db.Timestamps['chatframe'..i] then
text = string.format('%s %s', date('%X'), text)
self.hooks[frame].AddMessage.orig(frame, text, red, green, blue, id)
return
else
self.hooks[frame].AddMessage.orig(frame, text, red, green, blue, id)
return
end
end
end
end
The problem was simple. First it checks if we are in the right Frame. then it checks if we have timestamps for this frame. But for any Frame besides ChatFrame1 the first check already fails, and we get to the "else" where it simply adds the message and returns, without ever checking timestamps. So simple fix :) - First check the Frame, and only if we have the right frame, check for timestamp and output
yep that change works nicely
for anyone that wants "right-aligned" time-stamps, here's the modded code im using at the moment (and big thanks to Nev for the frame fix)
function idChat2_Timestamps:AddMessage(frame, text, red, green, blue, id)
local db = idChat2.db.profile
text = text or ''
red = red or ''
green = green or ''
blue = blue or ''
id = id or nil
for i=1,7 do
local cf='ChatFrame'..i
if frame:GetName()==cf then
if db.Timestamps['chatframe'..i] then
if cf=='ChatFrame2' then
text = string.format('%s [%s]', text, date('%X'))
else
text = string.format('[%s] %s', date('%X'), text)
end
self.hooks[frame].AddMessage.orig(frame, text, red, green, blue, id)
return
else
self.hooks[frame].AddMessage.orig(frame, text, red, green, blue, id)
return
end
end
end
end
for me, chatframe2 is the one i want right-aligned, just replace 'ChatFrame2' with whichever chat frame you want right aligned :)
IN the timestamps lua find this function:
and change the line to
It may take some trial and error to get ther right chat window number, but by default the default gneral chat and comat log windows are chat window 1 and 2 respectively.
Think you can add options to editbox that allows for autohide off as well as removing the texture around the box. How confab does it. I would also recommend the ability to change the string format for things like channelnames and timestamps.
Thanks in Advance,
Malfeus
i use ctmastermod (for sending mapnotes between ppl) and that already includes most of the chat options i use, just minus removing the buttons and fade-disable.
so your mods fit in perfectly -=)
URL copy! - put URLs into a clickable link, to open a box so that you can copy from it into your browser. (works with ip's aswell)
Could you please add a module to support this feature?
thanks
Here is the wiki page explaining you all about this Addon. Please post bug reports and feature requests here. Please start with reading at page one to prevent duplicates.
ChannelNames, PlayerNames, Timestamps;
Future:
ChannelNames
This will be a new module. It will show the "scroll to bottom" button in the bottomright corner of the chatframes. It will only show when you are not at the bottom of the chat history.
Timestamps
This will be a new module. It will catch hyperlinks and pop up an editbox with the hyperlink in it, selected, so that it can be copied.
text = string.gsub(text, '%[Battleground%]', 'b')
text = string.gsub(text, '%[Battleground Leader%]', 'B')
text = string.gsub(text, '%[Raid Warning%]', 'rw')
Changing:
Something small I'm constantly using :)
Edit: Oops, and almost forgot. Thanks for an excellent set of small but handy addons!
- Option to Hide/Show "[6] Sirow joined channel."/"[6] Sirow left channel." messages
- URL support
- Option to removes the party, yell, and guild words from the chat line. The color of the text would be obvious enough
- Module to create item links into private channels! (See http://ui.worldofwar.net/ui.php?id=1819)
(Didn't test if some requests are allready implemented.
Confab gives each it's own checkmark, which allows you to make a windows that display only officer chat or guild chat (or both if you check both checkmarks).
Here's a SS of Confab's implimentation.
Here's the default WoW implimentation. Its both or neither; all or nothing.
I really dig Ace and Ace2, and, personally, I don't care how it's implimented, but being able to split officer chat off to its own window is a make/break thing for any chat mod I use.
when you get a chance, could you update you infogami site with idactionbar stuff? all i need to do is know how to scale it and i can't find that info anywhere...
thanks
i think is this what i have to change to get what i want, but i can't get the result i want, let me explain:
prints "g [name]: blablablablablabla"
if i want to get rid of the 'g' and delete it i get " [name]: blablablablablabla"
notice the space before [name] :(
is there any way to get rid of the 'g', 'p', 'R', etc and just get nothing? not even the space i'm getting now :(
sorry for my bad english and thanks in advance
Tyk
im also curious as to where i should place my if...else block to right align the timestamps for only frame 2 (im gettin the "no timestamp issue" both with and without my hacked code
this is what i was guessing for right-aligned timestamps
edit:
Feature Request
im guessing this would fit into IdChat2 (the base add-on)
add a / command /clear or /clr with the argument FrameNumer#
example:
/clr 1
or
/clr ChatFame1
which would wipe clear the text in that particular chatframe
(very handy for snapping screenshots of your UI etc without having to protect the innocents in gchat lol)
Change idChat2_Timestamps.lua the last function (AddMessage Hook) to look like this.
The problem was simple. First it checks if we are in the right Frame. then it checks if we have timestamps for this frame. But for any Frame besides ChatFrame1 the first check already fails, and we get to the "else" where it simply adds the message and returns, without ever checking timestamps. So simple fix :) - First check the Frame, and only if we have the right frame, check for timestamp and output
for anyone that wants "right-aligned" time-stamps, here's the modded code im using at the moment (and big thanks to Nev for the frame fix)
for me, chatframe2 is the one i want right-aligned, just replace 'ChatFrame2' with whichever chat frame you want right aligned :)
But this is the idChat2 thread. The old one isnt being developed anymore.