From d31d1ef204b5c9b6dea2b447942635caa85ee051 Mon Sep 17 00:00:00 2001 From: MinaciousGrace Date: Sun, 19 Mar 2017 11:33:47 -0400 Subject: [PATCH] restrict only the input callbacks to the if statement enclosure to allow initialization of notefield params --- .../WifeJudgmentSpotting.lua | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/Themes/Til Death/BGAnimations/ScreenGameplay overlay/WifeJudgmentSpotting.lua b/Themes/Til Death/BGAnimations/ScreenGameplay overlay/WifeJudgmentSpotting.lua index 6bb8580390..1e029435cf 100644 --- a/Themes/Til Death/BGAnimations/ScreenGameplay overlay/WifeJudgmentSpotting.lua +++ b/Themes/Til Death/BGAnimations/ScreenGameplay overlay/WifeJudgmentSpotting.lua @@ -647,15 +647,15 @@ local t = Def.ActorFrame{ if(playerConfig:get_data(pn_to_profile_slot(PLAYER_1)).CustomizeGameplay) then SCREENMAN:GetTopScreen():AddInputCallback(firstHalfInput) SCREENMAN:GetTopScreen():AddInputCallback(secondHalfInput) - screen = SCREENMAN:GetTopScreen() - noteField = screen:GetChild("PlayerP1"):GetChild("NoteField") - noteField:addx(noteFieldX) - noteField:addy(noteFieldY) - noteColumns = noteField:get_column_actors() - for i, actor in ipairs(noteColumns) do - actor:zoomtowidth(noteFieldWidth) - actor:zoomtoheight(noteFieldHeight) - end + end + screen = SCREENMAN:GetTopScreen() + noteField = screen:GetChild("PlayerP1"):GetChild("NoteField") + noteField:addx(noteFieldX) + noteField:addy(noteFieldY) + noteColumns = noteField:get_column_actors() + for i, actor in ipairs(noteColumns) do + actor:zoomtowidth(noteFieldWidth) + actor:zoomtoheight(noteFieldHeight) end end, JudgmentMessageCommand=function(self, msg)