Skip to content

Commit

Permalink
maybe probably fix the preview seek thing without breaking everything
Browse files Browse the repository at this point in the history
  • Loading branch information
MinaciousGrace committed Feb 9, 2019
1 parent 40fdd62 commit 413a61f
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ local usingreverse = GAMESTATE:GetPlayerState(PLAYER_1):GetCurrentPlayerOptions(
local prevY = 55
local prevrevY = 208
local boolthatgetssettotrueonsongchangebutonlyifonatabthatisntthisone = false
local boolthatgetssettotrueonsongchangebutonlyifonthegeneraltabandthepreviewhasbeentoggledoff = false

local update = false
local t =
Expand All @@ -33,6 +34,9 @@ local t =
if getTabIndex() ~= 0 then
boolthatgetssettotrueonsongchangebutonlyifonatabthatisntthisone = true
end
if getTabIndex() == 0 and noteField and not mcbootlarder:GetChild("NoteField"):IsVisible() then
boolthatgetssettotrueonsongchangebutonlyifonthegeneraltabandthepreviewhasbeentoggledoff = true
end
end,
MintyFreshCommand = function(self)
self:finishtweening()
Expand Down Expand Up @@ -148,6 +152,9 @@ local function toggleNoteField()
if boolthatgetssettotrueonsongchangebutonlyifonatabthatisntthisone then
song:Borp()
boolthatgetssettotrueonsongchangebutonlyifonatabthatisntthisone = false
elseif boolthatgetssettotrueonsongchangebutonlyifonthegeneraltabandthepreviewhasbeentoggledoff then
song:Borp()
boolthatgetssettotrueonsongchangebutonlyifonthegeneraltabandthepreviewhasbeentoggledoff = false
end
MESSAGEMAN:Broadcast("ChartPreviewOn")
end
Expand Down

0 comments on commit 413a61f

Please sign in to comment.