Skip to content

Commit

Permalink
stop preview notefield from regenerating when entering gameplay
Browse files Browse the repository at this point in the history
  • Loading branch information
MinaciousGrace committed Nov 25, 2018
1 parent 4234038 commit 7eb9a8e
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -623,7 +623,7 @@ t[#t + 1] =

--Chart Preview Button
local yesiwantnotefield = false

local oldstyle
local function ihatestickinginputcallbackseverywhere(event)
if event.type ~= "InputEventType_Release" and getTabIndex() == 0 then
if event.DeviceInput.button == "DeviceButton_space" then
Expand All @@ -649,11 +649,12 @@ t[#t + 1] = LoadFont("Common Normal") .. {
end
end,
CurrentStyleChangedMessageCommand=function(self) -- need to regenerate the notefield when changing styles or crashman appears -mina
if noteField then
if noteField and oldstyle ~= GAMESTATE:GetCurrentStyle() then
SCREENMAN:GetTopScreen():DeletePreviewNoteField(mcbootlarder)
noteField = false
toggleNoteField()
end
oldstyle = GAMESTATE:GetCurrentStyle()
end
}

Expand Down

0 comments on commit 7eb9a8e

Please sign in to comment.