Skip to content

Commit

Permalink
readjust notefield y pos after playlist courses reset it
Browse files Browse the repository at this point in the history
  • Loading branch information
MinaciousGrace committed Mar 3, 2019
1 parent eb8d58c commit 54c390b
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,17 @@ local t =
actor:zoomtoheight(MovableValues.NotefieldHeight)
end
end,
DoneLoadingNextSongMessageCommand = function(self)
-- put notefield on doneloadingnextsong because playlist courses reset this for w.e reason -mina
screen = SCREENMAN:GetTopScreen()

-- nil checks are needed because these don't exist when doneloadingnextsong is sent initially
-- which is convenient for us since addy -mina
if screen ~= nil and screen:GetChild("PlayerP1") ~= nil then
Notefield = screen:GetChild("PlayerP1"):GetChild("NoteField")
Notefield:addy(MovableValues.NotefieldY * (usingReverse and 1 or -1))
end
end,
JudgmentMessageCommand = function(self, msg)
tDiff = msg.WifeDifferential
wifey = Floor(msg.WifePercent * 100) / 100
Expand Down

0 comments on commit 54c390b

Please sign in to comment.