Skip to content

Commit d31d1ef

Browse files
restrict only the input callbacks to the if statement enclosure to allow initialization of notefield params
1 parent 9a633cb commit d31d1ef

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

Themes/Til Death/BGAnimations/ScreenGameplay overlay/WifeJudgmentSpotting.lua

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -647,15 +647,15 @@ local t = Def.ActorFrame{
647647
if(playerConfig:get_data(pn_to_profile_slot(PLAYER_1)).CustomizeGameplay) then
648648
SCREENMAN:GetTopScreen():AddInputCallback(firstHalfInput)
649649
SCREENMAN:GetTopScreen():AddInputCallback(secondHalfInput)
650-
screen = SCREENMAN:GetTopScreen()
651-
noteField = screen:GetChild("PlayerP1"):GetChild("NoteField")
652-
noteField:addx(noteFieldX)
653-
noteField:addy(noteFieldY)
654-
noteColumns = noteField:get_column_actors()
655-
for i, actor in ipairs(noteColumns) do
656-
actor:zoomtowidth(noteFieldWidth)
657-
actor:zoomtoheight(noteFieldHeight)
658-
end
650+
end
651+
screen = SCREENMAN:GetTopScreen()
652+
noteField = screen:GetChild("PlayerP1"):GetChild("NoteField")
653+
noteField:addx(noteFieldX)
654+
noteField:addy(noteFieldY)
655+
noteColumns = noteField:get_column_actors()
656+
for i, actor in ipairs(noteColumns) do
657+
actor:zoomtowidth(noteFieldWidth)
658+
actor:zoomtoheight(noteFieldHeight)
659659
end
660660
end,
661661
JudgmentMessageCommand=function(self, msg)

0 commit comments

Comments
 (0)