ErrorFilter

1 - Remove the speech error just just when the error message is filtered.

Hello,
I did some changes in your code, it isn't perfect, but "works":

function UIErrorsFrame:UI_ERROR_MESSAGE(event, name, ...)
	if (DB_Options.isEnabled and DB_Options.isShown and DB_Filters[1]) then
		for k, v in next, DB_Filters do
			if( string.find( string.lower(name), v ) ) then
				--print("found: ", name)
				SetCVar("Sound_EnableErrorSpeech", 0)
				return
			end
		end
	end
	SetCVar("Sound_EnableErrorSpeech", 1)
	return old(self, event, name, ...)
end

The problems with that:

  • If someone doesn't want any speech error, this addon will turn it on
  • The first blocked message will play
  • The first unblocked message will not play

And another good thing, that I don't think it is possible, is an option to remove "moosh" (the sound that an "spell/ability not ready yet" does, not the speech, the sound)

I don't know if I was very clear.
Best regards!

User When Change
iceeagle Apr 06, 2011 at 07:14 UTC Changed status from New to Waiting
NickyNOS Jan 22, 2010 at 11:19 UTC Create

You must login to post a comment. Don't have an account? Register to get one!

  • 1 comment
  • Avatar of iceeagle iceeagle Jan 24, 2010 at 07:30 UTC - 0 likes

    In order to make this work right for the first message it requires to modify the sound handler function which i doubt it's available through the UI lua code.

  • 1 comment

Facts

Last updated
Mar 30, 2012
Reported
Jan 22, 2010
Status
Waiting - Waiting for more information.
Type
Enhancement - A change which is intended to better the project in some way
Priority
Medium - Normal priority.
Votes
1

Reported by

Possible assignees