diff --git a/Themes/Til Death/BGAnimations/ScreenGameplay overlay/npscalc.lua b/Themes/Til Death/BGAnimations/ScreenGameplay overlay/npscalc.lua index 6281e8a0db..6a65138007 100644 --- a/Themes/Til Death/BGAnimations/ScreenGameplay overlay/npscalc.lua +++ b/Themes/Til Death/BGAnimations/ScreenGameplay overlay/npscalc.lua @@ -352,7 +352,9 @@ local function npsDisplay(pn) npsDisplayActor = self:GetChild("Text") end, OnCommand=function(self) - SCREENMAN:GetTopScreen():AddInputCallback(displayInput) + if(playerConfig:get_data(pn_to_profile_slot(PLAYER_1)).CustomizeGameplay) then + SCREENMAN:GetTopScreen():AddInputCallback(displayInput) + end end, -- Whenever a MessageCommand is broadcasted, -- a table contanining parameters can also be passed along. @@ -417,7 +419,9 @@ local function npsGraph(pn) npsGraphActor = self end, OnCommand=function(self) - SCREENMAN:GetTopScreen():AddInputCallback(graphInput) + if(playerConfig:get_data(pn_to_profile_slot(PLAYER_1)).CustomizeGameplay) then + SCREENMAN:GetTopScreen():AddInputCallback(graphInput) + end end } local verts= { diff --git a/Themes/Til Death/BGAnimations/ScreenGameplay underlay/ScreenFilter.lua b/Themes/Til Death/BGAnimations/ScreenGameplay underlay/ScreenFilter.lua index 870e9ed82f..df81bbadf4 100644 --- a/Themes/Til Death/BGAnimations/ScreenGameplay underlay/ScreenFilter.lua +++ b/Themes/Til Death/BGAnimations/ScreenGameplay underlay/ScreenFilter.lua @@ -50,7 +50,9 @@ end local t = Def.ActorFrame{ OnCommand=function() - SCREENMAN:GetTopScreen():AddInputCallback(input) + if(playerConfig:get_data(pn_to_profile_slot(PLAYER_1)).CustomizeGameplay) then + SCREENMAN:GetTopScreen():AddInputCallback(input) + end end };