Minion Beta! - Help us test our new AddOn updater. Get it now!
Download
(6 Kb)
Download
Updated: 10-25-14 09:17 AM
Pictures
File Info
Compatibility:
Warlords of Draenor Pre-Patch (6.0.2)
Updated:10-25-14 09:17 AM
Created:11-18-10 09:31 AM
Downloads:4,585
Favorites:24
MD5:

xanChat

Version: v3.9
by: Xruptor [More]

This is my personal modifications to the default blizzard chat frames. I really didn't want something as heavy as Prat installed to do a few things I needed. So I hand coded my own chat modifications.

I'm probably not going to make any major updates. However, if you have suggestions I may take it into consideration.


What the mod gives you:

  • Mousewheel control for scrolling
  • Move the chat frame to the edges of the screen.
  • Hold CTRL while using the mousewheel to scroll ridiculously fast.
  • Hold ALT while using the mousewheel to scroll to the top or bottom of the chat window.
  • Automatically enables class colors on all chat windows and channels.
  • Option to hide/show the social chat buttons.
  • Option to hide/show the chat scroll buttons.
  • Option to enable/disable channel short names.
  • Option to move the edit box to the top or bottom.
  • Option to show or hide the chat tabs. (Will still show when you mouse over the chat frame.)
  • Enables stick channels for the following channels
    1. Say
    2. Party
    3. Raid
    4. Guild
    5. Officer
    6. Whisper
    7. Channel
  • Removes the ALT key press requirement to move around in the edit box. You can now move just using the arrow keys.
  • Removes the annoying Blizzard default alpha borders around the edit box when it's not being used. The borders will still show though when you use it and hide again when you are done.
  • Removes the guild loot gold messages and replaces them with the original ones.
  • Right-Click player names in chat window to be able to copy their names. (Great for names with special characters)
  • Right-Click player names in chat window to be able to Guild Invite.
  • Right-Click player names in chat window to be able to do a Who lookup.
  • Has built in URL support. Clickable URL links in the chat window.


Note: Timestamps were not included because Blizzard already implemented this feature into the client.
Options -> Interface -> Social -> Chat Timestamps



Slash Commands:
  • /xanchat social -- toggles the chat social buttons (ON/OFF)
  • /xanchat scroll -- toggles the chat scroll buttons (ON/OFF)
  • /xanchat shortnames -- toggles channel short names (ON/OFF)
  • /xanchat editbox -- toggles the edit box to show (TOP/BOTTOM)
  • /xanchat tabs -- toggles the chat tabs (ON/OFF)



You can view Alpha Builds at my Github tracker.

v3.9
-Toc Update for 6.0

v3.8
-Updated TOC for patch 5.2
-Added a small fix for when Battle.net goes down.

v3.7
-Fixed a stupid bug where blizzard has now prevented ChatFrame1 from moving independently. They must have added this in a hotfix.
-Because of the above fix, the issue with the 'ChatFrame1' is not movable has been fixed.

v3.6
-Fixed a stupid taint issue with removing glyphs. Why does blizzard keep adding taint calls to functions, in every expansion.

v3.5
-Fix for an error that would occur if the chatframes were locked and the addon would try to move them.

v3.4
-Updated for Mists of Panderia patch 5.01

v3.3
-Small fix for scrolling
-layout saved first before restored

v3.2
-Another darn fix for positioning... fixed for real now.

v3.1
-Oops small bugfix for saving layout.

v3.0
-Added chat numbers to shortnames if enabled.
-Fixed some serious issues with text going missing on player login.
-Changed the way that chatframes are saved and restored on the screen.
-Fixed a slight bug with the amount of lines in the chatframes.
-Changed the way some settings are applied.

v2.8
-Toc update for patch 4.3

v2.7
-Updated for Firelands.
-YES I'm back to playing WOW, expect updates to all my addons.

v2.6:
-Updated TOC for patch 4.1

v2.5
-This will fix the mysterious floating chat frames for the combat log.
-This will address those chat frames that are docked.
-Enhanced the way the chatframes are saved and restored.

v2.4
-Chat frames will now remember the position you placed them and position correctly on login or reload.

v2.3
-You can now move the chat window to the edges of the screen

Version 2.2:
-Added a slash command to move the editbox to the top or bottom.
-Added a slash command to hide the chat tabs. (They will still show when you mouse over the chat.)
-Fixed an issue where the editbox would prevent you from clicking the chat tabs when it was displayed at the top.

Version 2.1:
-Small update to make the channel short names ignore processing the combatlog.
-Note: I highly recommend updating to this version.

Version 2.0:
-Major changes to the layout of the code
-Added the removal of guild gold loot messages. It will be changed to the default ones.
-Changed the color of the URL links to be a much brighter moss green.
-Changed the way in which the primary code loads up.
-Added slash commands
-Added an option to hide scroll bars
-Added an option to hide social buttons
-Added a confirmation box when changes are done as a ReloadUI is required.
-Added support for short channel names
-Modified the code slightly

Version 1.7:
-Had to add support for SPECIAL channels, since blizzard loves to make everything separate into different channels.
-Added support for Battleground Leader
-Added support for Battle.Net Conversation
-Added support for Battle.Net Whisper
-Added support for Party Leader
-Added support for Raid Leader
-Added support for Raid Warning
-Enhanced the URL parsing a bit more to make sure it supports a whole heap of different URLs.

Version 1.6:
-Had to modified the way that URL's were being hooked.
-Fixed the popup issue ;)
-Had to remove maxlines as it was causing issues.
-Fixed an issue where sometimes the addon would conflict with other chat addons and prevent certain text from appear. Such as Boss Yells and NPC Say speech.
-Changed the way that URL's are parsed. Should no longer affect regular chat text including that of NPC's.

Version 1.5:
-Added a guild invite function to the chat playername right click menu
-Added a who function to the chat playername right click menu

Version 1.4:
-Fixed the class coloring for all the global channels.
-Added a Copy Name option to the right-click menu that appears when you right-click a player name in the chatframe. This will be useful for those times a player name may contain special characters in the name not native to your keyboard.

Version 1.2:
-Apparently global channels were not being affected. This has been fixed in version 1.2


Version 1.1:
-A slight fix for the class colors sometimes not working.
Optional Files (0)


Archived Files (25)
File Name
Version
Size
Author
Date
v3.8
6kB
Xruptor
03-13-13 05:39 PM
v3.7
6kB
Xruptor
11-22-12 07:14 AM
v3.6
6kB
Xruptor
10-14-12 08:20 AM
v3.5
6kB
Xruptor
09-27-12 04:32 PM
v3.4
6kB
Xruptor
09-24-12 06:11 PM
v3.3
6kB
Xruptor
04-17-12 11:23 AM
v3.2
6kB
Xruptor
04-16-12 03:26 PM
v3.1
6kB
Xruptor
04-16-12 03:10 PM
v3.0
6kB
Xruptor
04-16-12 10:28 AM
v2.8
6kB
Xruptor
11-29-11 03:15 PM
v2.7
6kB
Xruptor
10-24-11 09:46 AM
v2.6
6kB
Xruptor
05-03-11 06:16 AM
v2.5
6kB
Xruptor
01-27-11 03:32 PM
v2.4
5kB
Xruptor
01-25-11 09:26 PM
v2.3
5kB
Xruptor
01-24-11 01:42 PM
2.2
5kB
Xruptor
01-04-11 02:18 PM
2.1
4kB
Xruptor
01-04-11 07:53 AM
2.0
4kB
Xruptor
01-03-11 05:51 PM
1.7
3kB
Xruptor
12-21-10 11:28 AM
1.6
3kB
Xruptor
12-20-10 07:48 PM
1.5
3kB
Xruptor
11-26-10 07:08 AM
1.4
3kB
Xruptor
11-20-10 12:12 PM
1.2
2kB
Xruptor
11-19-10 09:44 AM
1.1
2kB
Xruptor
11-19-10 07:46 AM
1.0
2kB
Xruptor
11-18-10 09:31 AM


Post A Reply Comment Options
Unread 09-26-12, 10:20 PM  
Jaim Sandar
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 13
File comments: 357
Uploads: 1
comparison

I have been using CleanChat for a long time, and I really depend on it and it does just what I want for my chat frames even though it hasn't been updated since July, 2010.

There are a couple of things that don't work perfectly (never have), but nothing terribly objectionable (I'll get to those in a moment), but I thought I should try a similar AddOn that is more up to date: XanChat!! Here are my first impressions.
They are nearly identical in the end result, except that XanChat has options that can be toggled on/off, whereas CleanChat has no options; it just does what it does. I'm fine with that, and when I tested XanChat I toggled everything to end up how I liked it, and it now looks almost just like CleanChat does. Here are the differences I can see:
1) Memory: CleanChat uses less than 1.5 kB, XanChat about 60 to 75 kB
2) Combat Log fading glitch: CleanChat completely fades every part of the frame, although it doesn't fade immediately on logging but is completely visibly until the cursor hovers over the frame, then it fades completely. Additionally, after RELOADUI the Header Bar (My Actions/What happened to me) and the tab both won't fade completely but remain slightly visible: I estimate about 20%. XanChat never completely fades those parts of the Combat Log frame, whether on initial log or after RELOADUI.

You can see that since I don't need or want the toggle features (although I wouldn't mind having the options there just in case), and because of the memory difference, for now I will continue to use CleanChat even though it hasn't been updated for so long, as long as it continues to work as it always has.

@Xruptor: I'm not trying to condemn your AddOn, or convince anyone that one AddOn is better than the other in any way. I simply want to show you what I found in comparing the two, and give you my opinion regarding what I prefer in this type of modification. If you find something of worth in these comments, great! If not, then nothing gained, nothing lost. I just hope CleanChat continues to work as it has, since I can't see any indication that the author is doing anything with it. But if it does break, maybe yours will still be around for me to fall back on.
And thank you so much for your efforts & dedication in creating and maintaining your series of AddOns; I tried maintaining an AddOn for a while, learning LUA scripting as needed, but I simply wasn't able to dedicate the time & effort to continue to learn what was required to keep it going after a couple of patches broke too many things.
Pardon my long wind; buhbye!
Jaim Sandar is offline Report comment to moderator  
Reply With Quote
Unread 06-09-12, 06:17 AM  
Xruptor
A Black Drake
 
Xruptor's Avatar
AddOn Author - Click to view AddOns

Forum posts: 87
File comments: 584
Uploads: 37
Originally Posted by Lleztrah
So after reading your reply I went and did what I should have done in the first place. I cleaned out my saved variable files and got rid of the saved variables from the last chat addon I tried. This one seems to be working perfectly now. Sorry for jumping the gun and not trying that first--I really do know better.
That's great to hear! I had reviewed the code and I couldn't for the love of me see how this problem could occurred. The slash commands are initiated on player login. So unless there was another conflict with an addon it shouldn't have happened.
__________________
Click HERE for the ultimate idiot test.

if (sizeof(sadness) > sizeof(happiness)) { initDepression(); }
Xruptor is offline Report comment to moderator  
Reply With Quote
Unread 06-04-12, 07:41 AM  
Lleztrah
A Kobold Labourer

Forum posts: 1
File comments: 2
Uploads: 0
So after reading your reply I went and did what I should have done in the first place. I cleaned out my saved variable files and got rid of the saved variables from the last chat addon I tried. This one seems to be working perfectly now. Sorry for jumping the gun and not trying that first--I really do know better.
Lleztrah is offline Report comment to moderator  
Reply With Quote
Unread 06-02-12, 06:08 AM  
Xruptor
A Black Drake
 
Xruptor's Avatar
AddOn Author - Click to view AddOns

Forum posts: 87
File comments: 584
Uploads: 37
Re: slash commands not working

Originally Posted by Lleztrah
This addon worked beautifully right out of the box--until I reloaded my UI. Then the slash commands stopped working. I tried exiting the game and restarting but still no slash commands. What should I try next?
That's really odd it works fine for me. Sounds to me another addon may be conflicting. I'll look at the code and see if maybe it is a bug.
__________________
Click HERE for the ultimate idiot test.

if (sizeof(sadness) > sizeof(happiness)) { initDepression(); }
Xruptor is offline Report comment to moderator  
Reply With Quote
Unread 05-31-12, 10:22 AM  
Lleztrah
A Kobold Labourer

Forum posts: 1
File comments: 2
Uploads: 0
slash commands not working

This addon worked beautifully right out of the box--until I reloaded my UI. Then the slash commands stopped working. I tried exiting the game and restarting but still no slash commands. What should I try next?
Lleztrah is offline Report comment to moderator  
Reply With Quote
Unread 05-26-12, 09:52 AM  
Xruptor
A Black Drake
 
Xruptor's Avatar
AddOn Author - Click to view AddOns

Forum posts: 87
File comments: 584
Uploads: 37
Originally Posted by byoonie
Thank you for this add-on. It does exactly what I'm looking for
Your welcome! Glad this tiny modification for some Chat annoyances helps some folks out!
__________________
Click HERE for the ultimate idiot test.

if (sizeof(sadness) > sizeof(happiness)) { initDepression(); }
Xruptor is offline Report comment to moderator  
Reply With Quote
Unread 05-25-12, 11:58 AM  
byoonie
A Defias Bandit

Forum posts: 2
File comments: 14
Uploads: 0
Thank you for this add-on. It does exactly what I'm looking for
byoonie is offline Report comment to moderator  
Reply With Quote
Unread 10-12-11, 07:31 AM  
Xruptor
A Black Drake
 
Xruptor's Avatar
AddOn Author - Click to view AddOns

Forum posts: 87
File comments: 584
Uploads: 37
Originally posted by Keldian
Finally a chat mod that does exactly what I need it to, thanks.
I'm glad you like it
__________________
Click HERE for the ultimate idiot test.

if (sizeof(sadness) > sizeof(happiness)) { initDepression(); }
Xruptor is offline Report comment to moderator  
Reply With Quote
Unread 10-10-11, 02:37 AM  
Keldian
A Kobold Labourer

Forum posts: 0
File comments: 4
Uploads: 0
Finally a chat mod that does exactly what I need it to, thanks.
Last edited by Keldian : 10-10-11 at 02:37 AM.
Keldian is offline Report comment to moderator  
Reply With Quote
Unread 07-25-11, 04:35 PM  
Xruptor
A Black Drake
 
Xruptor's Avatar
AddOn Author - Click to view AddOns

Forum posts: 87
File comments: 584
Uploads: 37
Originally posted by Linkszwodrei
[b]After some modifications I'm happy.
But I've removed all the configuration and DB stuff... Why don't you just add a small configuration on top of the lua file? This would shorten the file and less memory would be used.
Before my modification it was using around 120 kb, my version now has ~20 kb (without any configuration at all )

Still really nice work - for casuals definitely nice especially because of the little ingame config.
The reason I use a DB is to allow people to save their settings without having to modify the code. There are a lot of people that don't want to bother having to edit LUA files or know what they are doing to successfully put all the configurations in a file.

Therefore I provide slash commands which is well.. idiot proof. It also allows people to modify their settings on the go.

Also seriously? 120kb? Please don't take this the wrong way, but people complain way too much about memory consumption by addons. Especially when computers currently have several GIGS (yes plural) of memory. I seriously doubt 120kb is going to make a huge impact on the game. I find it amusing that people get so uptight about the smallest of memory. Granted if the addon took up several megabytes of data I would myself be concerned, however 120KB is not much of a deal.

Especially when about 80% of that 120kb is just database stuff to give people slash flexibility rather then have to edit a LUA themselves.

Granted I'm glad you were able to bring down the usage and for that I'm extremely glad I truly understand your view trust me as a developer I know all about efficiency. But there is a fine line for developers between efficiency and flexibility as well as 'ease' of use. I did go ahead and make the modifications to the scrollbars with the code you provided

Please don't try to take the post negative as it wasn't meant to be. I'm just baffled that's all.
__________________
Click HERE for the ultimate idiot test.

if (sizeof(sadness) > sizeof(happiness)) { initDepression(); }
Xruptor is offline Report comment to moderator  
Reply With Quote
Unread 07-22-11, 09:54 AM  
Taet
A Murloc Raider

Forum posts: 7
File comments: 60
Uploads: 0
"Before my modification it was using around 120 kb, my version now has ~20 kb (without any configuration at all )"


Link for download ?
Taet is offline Report comment to moderator  
Reply With Quote
Unread 07-01-11, 08:11 AM  
Linkszwodrei
A Kobold Labourer

Forum posts: 0
File comments: 11
Uploads: 0
Quick fix for scrolling:
Replace the existing function with this one:
local function scrollChat(frame, dir)
--Faster Scroll
if IsControlKeyDown() or IsShiftKeyDown() then
--Faster scrolling by triggering a few scroll up in a loop
if ( dir > 0 ) then
for i = 1,5 do frame:ScrollUp(); end;
elseif ( dir < 0 ) then
for i = 1,5 do frame:ScrollDown(); end;
end
elseif IsAltKeyDown() then
--Scroll to the top or bottom
if ( dir > 0 ) then
frame:ScrollToTop();
elseif ( dir < 0 ) then
frame:ScrollToBottom();
end
else
--Normal Scroll
if dir > 0 then
frame:ScrollUp()
elseif dir < 0 then
frame:ScrollDown()
end
end
end
Linkszwodrei is offline Report comment to moderator  
Reply With Quote
Unread 05-18-11, 06:55 PM  
Linkszwodrei
A Kobold Labourer

Forum posts: 0
File comments: 11
Uploads: 0
After some modifications I'm happy.
But I've removed all the configuration and DB stuff... Why don't you just add a small configuration on top of the lua file? This would shorten the file and less memory would be used.
Before my modification it was using around 120 kb, my version now has ~20 kb (without any configuration at all )

Still really nice work - for casuals definitely nice especially because of the little ingame config.

@ paterbrown
Replace the following (THATS ALREADY WITH MY MODIFIED CHANNEL NAMES!)
Code:
		text = gsub(text, "%[%d+%. General.-%]", " 1|")
		text = gsub(text, "%[%d+%. Trade.-%]", " 2|")
		text = gsub(text, "%[%d+%. WorldDefense%]", " 3|")
		text = gsub(text, "%[%d+%. LocalDefense.-%]", " 3|")
		text = gsub(text, "%[%d+%. LookingForGroup%]", " 4|")
		text = gsub(text, "%[%d+%. GuildRecruitment.-%]", " 5|")
with the German channel names. For example:
Code:
		text = gsub(text, "%[%d+%. Handel.-%]", " 2|")
Also replace this part (AGAIN MY MODIFIED CHANNELNAMES!)
Code:
        CHAT_WHISPER_GET 				= " w| %s: "
        CHAT_WHISPER_INFORM_GET 		= " %s: "
        CHAT_YELL_GET 					= "|Hchannel:Yell|h y| |h%s: "
        CHAT_SAY_GET 					= "|Hchannel:Say|h s| |h%s: "
        CHAT_BATTLEGROUND_GET			= "|Hchannel:Battleground|h bg| |h%s: "
        CHAT_BATTLEGROUND_LEADER_GET 	= [[|Hchannel:Battleground|h bg|TInterface\GroupFrame\UI-Group-LeaderIcon:0|t| |h%s: ]]
        CHAT_GUILD_GET   				= "|Hchannel:Guild|h g| |h%s: "
        CHAT_OFFICER_GET 				= "|Hchannel:Officer|h o| |h%s: "
        CHAT_PARTY_GET        			= "|Hchannel:Party|h p| |h%s: "
        CHAT_PARTY_LEADER_GET 			= [[|Hchannel:Party|h p|TInterface\GroupFrame\UI-Group-LeaderIcon:0|t| |h%s: ]]
        CHAT_PARTY_GUIDE_GET  			= CHAT_PARTY_LEADER_GET
        CHAT_RAID_GET         			= "|Hchannel:Raid|h r| |h%s: "
        CHAT_RAID_LEADER_GET  			= [[|Hchannel:Raid|h r|TInterface\GroupFrame\UI-Group-LeaderIcon:0|t| |h%s: ]]
        CHAT_RAID_WARNING_GET 			= [[|Hchannel:RaidWarning|h rw|TInterface\GroupFrame\UI-GROUP-MAINASSISTICON:0|t| |h%s: ]]
		
        CHAT_MONSTER_PARTY_GET   		= CHAT_PARTY_GET
        CHAT_MONSTER_SAY_GET     		= CHAT_SAY_GET
        CHAT_MONSTER_WHISPER_GET 		= CHAT_WHISPER_GET
        CHAT_MONSTER_YELL_GET    		= CHAT_YELL_GET
For example:
Code:
        CHAT_BATTLEGROUND_GET			= "|Hchannel:Schlachtgruppe|h bg| |h%s: "
Last edited by Linkszwodrei : 05-18-11 at 06:56 PM.
Linkszwodrei is offline Report comment to moderator  
Reply With Quote
Unread 02-15-11, 12:01 PM  
paterbrown
A Kobold Labourer

Forum posts: 0
File comments: 21
Uploads: 0
Hi,
good Addon, but one thing. The command for shortnames has no effect (german client).
paterbrown is offline Report comment to moderator  
Reply With Quote
Unread 01-27-11, 03:32 PM  
Xruptor
A Black Drake
 
Xruptor's Avatar
AddOn Author - Click to view AddOns

Forum posts: 87
File comments: 584
Uploads: 37
v2.5
-This will fix the mysterious floating chat frames for the combat log.
-This will address those chat frames that are docked.
-Enhanced the way the chatframes are saved and restored.
__________________
Click HERE for the ultimate idiot test.

if (sizeof(sadness) > sizeof(happiness)) { initDepression(); }
Xruptor is offline Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: