Skip to content

Commit

Permalink
restrict only the input callbacks to the if statement enclosure to al…
Browse files Browse the repository at this point in the history
…low initialization of notefield params
  • Loading branch information
MinaciousGrace committed Mar 19, 2017
1 parent 9a633cb commit d31d1ef
Showing 1 changed file with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d31d1ef

Please sign in to comment.