Minion Beta! - Help us test our new AddOn updater. Get it now!
Download
(6 Kb)
Download
Updated: 03-13-13 05:39 PM
Pictures
File Info
Compatibility:
Thunder Isle (5.2)
Mists of Pandaria (5.0.4)
Updated:03-13-13 05:39 PM
Created:11-18-10 09:31 AM
Downloads:4,474
Favorites:23
MD5:
xanChat
Version: v3.8
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.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 (24)
File Name
Version
Size
Author
Date
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 05-26-12, 09:52 AM  
Xruptor
A Black Drake
 
Xruptor's Avatar
AddOn Author - Click to view AddOns

Forum posts: 87
File comments: 569
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: 569
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: 569
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: 59
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: 569
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
Unread 01-25-11, 09:34 PM  
Xruptor
A Black Drake
 
Xruptor's Avatar
AddOn Author - Click to view AddOns

Forum posts: 87
File comments: 569
Uploads: 37
v2.4
-Chat frames will now remember the position you placed them and position correctly on login or reload.
__________________
Click HERE for the ultimate idiot test.

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

Forum posts: 0
File comments: 10
Uploads: 0
Ok, no problem .
blindhai is offline Report comment to moderator  
Reply With Quote
Unread 01-25-11, 10:02 AM  
Xruptor
A Black Drake
 
Xruptor's Avatar
AddOn Author - Click to view AddOns

Forum posts: 87
File comments: 569
Uploads: 37
Originally posted by blindhai
Hello, i have the same problem with the wrong position after i relog. It seems that the hidden buttons still need the space .

Is it possible to change the font in the chatframe? That is the only feature from prat i still need .
I don't think I will implement something to change fonts. To be honest I don't really change it and since this is my custom modification, I doubt I will add something I wouldn't use. Sorry There are other mods out there that let you change the font.

One of the major issues I have with it, is the fact that the fonts need to be placed in the addon to work. Since I want to make this addon as minimalistic as possible it would defeat the whole purpose if I start adding things like font files.

The blizzard client only really has like 3 or 4 fonts pre-installed. The rest have to be done manually by addons. Which is one of the reasons why Prat is so huge.
__________________
Click HERE for the ultimate idiot test.

if (sizeof(sadness) > sizeof(happiness)) { initDepression(); }
Xruptor is offline Report comment to moderator  
Reply With Quote
Unread 01-25-11, 08:53 AM  
blindhai
A Kobold Labourer

Forum posts: 0
File comments: 10
Uploads: 0
Hello, i have the same problem with the wrong position after i relog. It seems that the hidden buttons still need the space .

Is it possible to change the font in the chatframe? That is the only feature from prat i still need .
blindhai is offline Report comment to moderator  
Reply With Quote
Unread 01-25-11, 07:17 AM  
Xruptor
A Black Drake
 
Xruptor's Avatar
AddOn Author - Click to view AddOns

Forum posts: 87
File comments: 569
Uploads: 37
Originally posted by allogator
It works until I log off and back on (or reloadui).
Could it have something to do with resolutions?

I'm at 1920x1200 on a 24".

No big deal in the meantime since I can just unlock it and shove it back down there.


Also, lol at your note about the timestamps.
It could have something to do with the resolutions. I'll look into it
__________________
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: