From 54c390b8ead4e9221c2e928031550051c25dd42b Mon Sep 17 00:00:00 2001 From: "born a rick, raised a morty, died a jerry" Date: Sun, 3 Mar 2019 12:08:55 -0500 Subject: [PATCH] readjust notefield y pos after playlist courses reset it --- .../ScreenGameplay overlay/WifeJudgmentSpotting.lua | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Themes/Til Death/BGAnimations/ScreenGameplay overlay/WifeJudgmentSpotting.lua b/Themes/Til Death/BGAnimations/ScreenGameplay overlay/WifeJudgmentSpotting.lua index 670f5e685f..50edccc657 100644 --- a/Themes/Til Death/BGAnimations/ScreenGameplay overlay/WifeJudgmentSpotting.lua +++ b/Themes/Til Death/BGAnimations/ScreenGameplay overlay/WifeJudgmentSpotting.lua @@ -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