Skip to content

Commit

Permalink
Disable error reporting if any dialogs are ignored.
Browse files Browse the repository at this point in the history
  • Loading branch information
kyzentun committed Jan 5, 2015
1 parent 2c6776c commit beb625e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Themes/_fallback/BGAnimations/ScreenSystemLayer error.lua
Expand Up @@ -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}
Expand Down
4 changes: 4 additions & 0 deletions Themes/_fallback/Scripts/04 LogDisplay.lua
Expand Up @@ -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"
Expand Down

0 comments on commit beb625e

Please sign in to comment.