Disable error reporting if any dialogs are ignored.

This commit is contained in:
Kyzentun
2015-01-05 16:53:52 -07:00
parent 2c6776c480
commit beb625e6aa
2 changed files with 8 additions and 0 deletions
@@ -3,6 +3,10 @@
-- If you include this file in your theme, you will not benefit from any improvements in error reporting.
-- If you want to adjust how long errors stay on screen for, call the "SetErrorMessageTime" function. (see usage notes in comments above that function)
if PREFSMAN:GetPreference("IgnoredDialogs") ~= "" then
return Def.Actor{}
end
local line_height= 12 -- A good line height for Common Normal at .5 zoom.
local min_message_time= {show= 1, hide= .03125}
@@ -144,6 +144,10 @@ local log_display_mt= {
end
end,
[name_mess]= function(subself, mess)
if PREFSMAN:GetPreference("IgnoredDialogs") ~= "" then
self:visible(false)
return
end
if not mess.message then return end
if self.messes_since_update > self.max_log then return end
-- Long ago, someone decided that "::" should be an alias for "\n"