From a400d33b8e22aeb52e71a5739f33d37eff849971 Mon Sep 17 00:00:00 2001 From: Barinade Date: Fri, 23 Dec 2022 14:21:59 -0600 Subject: [PATCH] rebirth actually fix misalignments for practice cdgraph --- .../elements/_gameplaypractice.lua | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/Themes/Rebirth/BGAnimations/ScreenGameplay overlay/elements/_gameplaypractice.lua b/Themes/Rebirth/BGAnimations/ScreenGameplay overlay/elements/_gameplaypractice.lua index 6106342861..425497a9c5 100644 --- a/Themes/Rebirth/BGAnimations/ScreenGameplay overlay/elements/_gameplaypractice.lua +++ b/Themes/Rebirth/BGAnimations/ScreenGameplay overlay/elements/_gameplaypractice.lua @@ -205,8 +205,6 @@ t[#t+1] = Def.Quad { Name = "BookmarkPos", InitCommand = function(self) -- trickery - self:SetFakeParent(self:GetParent():GetChild("PracticeCDGraph")) - self:playcommand("SetUpMovableValues") self:valign(0) self:zoomto(bookmarkWidth, height) self:diffuse(bookmarkColor) @@ -214,10 +212,9 @@ t[#t+1] = Def.Quad { self:draworder(1100) self:visible(false) end, - SetUpMovableValuesMessageCommand = function(self) - self:y(MovableValues.PracticeCDGraphY) - local height = MovableValues.PracticeCDGraphHeight * (53 / 555 * SCREEN_HEIGHT) - self:zoomy(height) + FirstUpdateCommand = function(self) + -- have to call this late because the graph is named late (in BeginCommand) + self:SetFakeParent(self:GetParent():GetChild("PracticeCDGraph")) end, SetCommand = function(self) self:visible(true)