Skip to content

Commit

Permalink
rebirth actually fix misalignments for practice cdgraph
Browse files Browse the repository at this point in the history
  • Loading branch information
poco0317 committed Dec 23, 2022
1 parent 2b6ffd3 commit a400d33
Showing 1 changed file with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -205,19 +205,16 @@ 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)
self:diffusealpha(bookmarkAlpha)
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)
Expand Down

0 comments on commit a400d33

Please sign in to comment.