Skip to content

Commit

Permalink
properly center chartpreview notefields
Browse files Browse the repository at this point in the history
  • Loading branch information
MinaciousGrace committed Nov 24, 2018
1 parent f416a99 commit 47ed239
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ local noteField = false
local heyiwasusingthat = false
local mcbootlarder
local prevX = capWideScale(get43size(98), 98)
local idkwhatimdoing = capWideScale(prevX+8, prevX/2+4)
local usingreverse = GAMESTATE:GetPlayerState(PLAYER_1):GetCurrentPlayerOptions():UsingReverse()
local prevY = 55
local prevrevY = 208
Expand Down Expand Up @@ -108,7 +107,7 @@ local function toggleNoteField()
MESSAGEMAN:Broadcast("ChartPreviewOn") -- for banner reaction... lazy -mina
mcbootlarder:playcommand("SetupNoteField")
mcbootlarder:xy(prevX,prevY)
mcbootlarder:GetChild("NoteField"):xy(prevX+idkwhatimdoing, prevY*1.5)
mcbootlarder:GetChild("NoteField"):y(prevY*1.5)
if usingreverse then
mcbootlarder:GetChild("NoteField"):y(prevY*1.5 + prevrevY)
end
Expand Down
1 change: 1 addition & 0 deletions Themes/Til Death/BGAnimations/_chartpreview.lua
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ local function setUpPreviewNoteField()
yeet:zoom(prevZoom):draworder(90)
SCREENMAN:GetTopScreen():dootforkfive(memehamstermax)
yeet = memehamstermax:GetChild("NoteField")
yeet:x(wodth/2)
memehamstermax:SortByDrawOrder()
MESSAGEMAN:Broadcast("NoteFieldVisible")
end
Expand Down

0 comments on commit 47ed239

Please sign in to comment.