Thread Tools Display Modes
11-23-11, 02:25 PM   #1
zoktar
A Cliff Giant
AddOn Compiler - Click to view compilations
Join Date: Dec 2006
Posts: 72
Disable spell icons in chatframe

Disable spell icons in chatframe. Is it possible?. Cause when hiding your chat
they always leak through.
  Reply With Quote
11-23-11, 04:40 PM   #2
Nibelheim
local roygbi-
 
Nibelheim's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2010
Posts: 1,600
I was always curious, do these icons show with the default UI? I've never seen them, personally.
  Reply With Quote
11-23-11, 06:54 PM   #3
zoktar
A Cliff Giant
AddOn Compiler - Click to view compilations
Join Date: Dec 2006
Posts: 72
huh, i figured they where default maybe some addons up to no-good then.
  Reply With Quote
11-23-11, 07:14 PM   #4
Vlad
A Molten Giant
 
Vlad's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2005
Posts: 793
Show us a screenshot, helps a lot.
  Reply With Quote
11-24-11, 01:35 AM   #5
Ketho
A Pyroguard Emberseer
 
Ketho's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 1,026
I know that UI escape sequence textures won't get faded away ..*

*at least not the ones in the Argent Tournament jousting dailies

.. nvm

Last edited by Ketho : 11-24-11 at 01:27 PM.
  Reply With Quote
11-24-11, 11:53 AM   #6
zoktar
A Cliff Giant
AddOn Compiler - Click to view compilations
Join Date: Dec 2006
Posts: 72
here, one regular skull automark from bigwigs or whatever and a boss ability

http://img847.imageshack.us/img847/6992/chaticons.jpg
  Reply With Quote
11-24-11, 12:02 PM   #7
Vlad
A Molten Giant
 
Vlad's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2005
Posts: 793
What chat mod do you use? By default they fade out...
  Reply With Quote
11-24-11, 12:05 PM   #8
zoktar
A Cliff Giant
AddOn Compiler - Click to view compilations
Join Date: Dec 2006
Posts: 72
rChat from rothui
  Reply With Quote
11-24-11, 12:11 PM   #9
Vlad
A Molten Giant
 
Vlad's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2005
Posts: 793
I am sure zork will then notice the thread soon and reply, hehe.

Weird, it seems in the code he did account for fading, so not too sure but, you can test things like:

/s {rt1}{rt2}{rt3}

Then you see icons, and then you hide it and see if they remain or disappear.

You should try this with the addon disabled, maybe some other addon interferes!
  Reply With Quote
11-24-11, 02:57 PM   #10
zoktar
A Cliff Giant
AddOn Compiler - Click to view compilations
Join Date: Dec 2006
Posts: 72
im sure his fading works, its probobly kong ui hider than doesnt.
  Reply With Quote
12-03-11, 07:05 AM   #11
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 1,740
I use the default chat fading. Chat lines fade by itself over time.
Lines that get posted in just that moment are always displayed. So hiding them completly is nothing I do.
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW)

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)
  Reply With Quote
12-03-11, 02:06 PM   #12
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 2,313
It's a glitch in the widget itself, sometimes icons fail to fade with the lines they're attached to. I've had this happen on rare occasion with no addons that modify the frame in any way.
__________________
WoWInterface AddOns
"All I want is a pretty girl, a decent meal, and the right to shoot lightning at fools."
-Anders (Dragon Age: Origins - Awakening)
  Reply With Quote
12-15-11, 08:44 AM   #13
zoktar
A Cliff Giant
AddOn Compiler - Click to view compilations
Join Date: Dec 2006
Posts: 72
Originally Posted by SDPhantom View Post
It's a glitch in the widget itself, sometimes icons fail to fade with the lines they're attached to. I've had this happen on rare occasion with no addons that modify the frame in any way.
is there any way to disable icons in chat completely? i haven't found one.
  Reply With Quote
12-15-11, 06:23 PM   #14
Vlad
A Molten Giant
 
Vlad's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2005
Posts: 793
Code:
local orig = DEFAULT_CHAT_FRAME.AddMessage
function DEFAULT_CHAT_FRAME:AddMessage(msg, ...)
  if type(msg) == "string" then
    msg = msg:gsub("|T.+|t", "") -- should replace any icon tags and their content
  end
  return orig(self, ...)
end
Just an idea, you can make it into an addon using http://addon.ziuo.net/ if you like.
  Reply With Quote
12-15-11, 08:27 PM   #15
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
@Vladinator:

1. You didn't pass the message back to the real AddMessage method, so your hook completely breaks the chat frame.

2. If a message contains more than one icon, your pattern will delete the first and last icons, and everything in between, icon or otherwise. Using a - instead of a + will match the shortest possible string, instead of the longest.

3. Your code will only remove icons from the first chat frame.

Code:
local orig = {}
local function AddMessage(self, msg, ...)
	if type(msg) == "string" then
		msg = msg:gsub("|T.-|t", "")
	end
	return orig[self](self, msg, ...)
end
for i = 1, 10 do
	local f = _G["ChatFrame"..i]
	if f then
		orig[f] = f.AddMessage
		f.AddMessage = AddMessage
	end
end
  Reply With Quote
12-15-11, 08:41 PM   #16
Vlad
A Molten Giant
 
Vlad's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2005
Posts: 793
I am sorry Phanx, I am tired and just posted it as an idea not ready-to-go code.

Your code would handle icons in all the chat frames so it is better yes, also you remembered to pass the msg parameter I forgot to pass on, hehe.
  Reply With Quote
12-16-11, 11:04 AM   #17
zoktar
A Cliff Giant
AddOn Compiler - Click to view compilations
Join Date: Dec 2006
Posts: 72
thanks will test this out!
  Reply With Quote
12-27-11, 06:16 AM   #18
zoktar
A Cliff Giant
AddOn Compiler - Click to view compilations
Join Date: Dec 2006
Posts: 72
this worked btw! thanks.
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » Disable spell icons in chatframe

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off