Skip to content

Commit

Permalink
re-enable ability to call offsetplots for scores at music select
Browse files Browse the repository at this point in the history
this was disabled because the hasreplaydata() functions kept returning false positives causing the game to crash or for the offsetplot screen to overlay without any elements, essentially freezing the game

I'm not sure what was causing this or what I did to fix it but after some preliminary testing it seems to be working ok (for now)
  • Loading branch information
MinaciousGrace committed Nov 14, 2017
1 parent 88f2262 commit 2349890
Showing 1 changed file with 12 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -484,19 +484,18 @@ t[#t+1] = LoadFont("Common Normal")..{
end
}

-- causes too many lockups to be worth it atm
-- t[#t+1] = Def.Quad{
-- InitCommand=function(self)
-- self:xy(frameX+offsetX,frameY+offsetY+288):zoomto(120,30):halign(0):diffusealpha(0)
-- end,
-- MouseLeftClickMessageCommand=function(self)
-- if update then
-- if getTabIndex() == 2 and getScoreForPlot() and getScoreForPlot():HasReplayData() then
-- SCREENMAN:AddNewScreenToTop("ScreenScoreTabOffsetPlot")
-- end
-- end
-- end
-- }
t[#t+1] = Def.Quad{
InitCommand=function(self)
self:xy(frameX+offsetX,frameY+offsetY+288):zoomto(120,30):halign(0):diffusealpha(0)
end,
MouseLeftClickMessageCommand=function(self)
if update then
if getTabIndex() == 2 and getScoreForPlot() and getScoreForPlot():HasReplayData() then
SCREENMAN:AddNewScreenToTop("ScreenScoreTabOffsetPlot")
end
end
end
}


return t

0 comments on commit 2349890

Please sign in to comment.