Skip to content

Commit

Permalink
missed a couple input filters that should only be loaded if customize…
Browse files Browse the repository at this point in the history
… gameplay is enabled
  • Loading branch information
MinaciousGrace committed Mar 19, 2017
1 parent abb768a commit e977220
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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= {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
};

Expand Down

0 comments on commit e977220

Please sign in to comment.