WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   AddOn Help/Support (https://www.wowinterface.com/forums/forumdisplay.php?f=3)
-   -   Disable spell icons in chatframe (https://www.wowinterface.com/forums/showthread.php?t=41880)

zoktar 11-23-11 02:25 PM

Disable spell icons in chatframe
 
Disable spell icons in chatframe. Is it possible?. Cause when hiding your chat
they always leak through.

Nibelheim 11-23-11 04:40 PM

I was always curious, do these icons show with the default UI? I've never seen them, personally.

zoktar 11-23-11 06:54 PM

huh, i figured they where default maybe some addons up to no-good then.

Vlad 11-23-11 07:14 PM

Show us a screenshot, helps a lot.

Ketho 11-24-11 01:35 AM

I know that UI escape sequence textures won't get faded away ..*

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

.. nvm

zoktar 11-24-11 11:53 AM

here, one regular skull automark from bigwigs or whatever and a boss ability
 
http://img847.imageshack.us/img847/6992/chaticons.jpg

Vlad 11-24-11 12:02 PM

What chat mod do you use? By default they fade out...

zoktar 11-24-11 12:05 PM

rChat from rothui

Vlad 11-24-11 12:11 PM

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!

zoktar 11-24-11 02:57 PM

im sure his fading works, its probobly kong ui hider than doesnt.

zork 12-03-11 07:05 AM

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.

SDPhantom 12-03-11 02:06 PM

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.

zoktar 12-15-11 08:44 AM

Quote:

Originally Posted by SDPhantom (Post 248535)
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.

Vlad 12-15-11 06:23 PM

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.

Phanx 12-15-11 08:27 PM

@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


Vlad 12-15-11 08:41 PM

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.

zoktar 12-16-11 11:04 AM

thanks will test this out!

zoktar 12-27-11 06:16 AM

this worked btw! thanks.


All times are GMT -6. The time now is 07:42 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI