From beb625e6aa621be98ee256d23c6a9f1437985afb Mon Sep 17 00:00:00 2001 From: Kyzentun Date: Mon, 5 Jan 2015 16:53:52 -0700 Subject: [PATCH] Disable error reporting if any dialogs are ignored. --- Themes/_fallback/BGAnimations/ScreenSystemLayer error.lua | 4 ++++ Themes/_fallback/Scripts/04 LogDisplay.lua | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/Themes/_fallback/BGAnimations/ScreenSystemLayer error.lua b/Themes/_fallback/BGAnimations/ScreenSystemLayer error.lua index 6772731280..b30fc7429f 100644 --- a/Themes/_fallback/BGAnimations/ScreenSystemLayer error.lua +++ b/Themes/_fallback/BGAnimations/ScreenSystemLayer error.lua @@ -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} diff --git a/Themes/_fallback/Scripts/04 LogDisplay.lua b/Themes/_fallback/Scripts/04 LogDisplay.lua index f9207d79be..ca1fcc116a 100644 --- a/Themes/_fallback/Scripts/04 LogDisplay.lua +++ b/Themes/_fallback/Scripts/04 LogDisplay.lua @@ -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"