Skip to content

Commit

Permalink
Don't pause the music on right click on Score & Profile tabs
Browse files Browse the repository at this point in the history
this is a giant hack until we get proper buttons in the theme
  • Loading branch information
poco0317 committed Nov 24, 2019
1 parent aec1145 commit 979e95d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Themes/Til Death/BGAnimations/_chartpreview.lua
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,13 @@ local t = Def.ActorFrame {
end
end,
MouseRightClickMessageCommand=function(self)
SCREENMAN:GetTopScreen():PausePreviewNoteField()
self:GetChild("pausetext"):playcommand("Set")
local tab = getTabIndex()
-- the Score and Profile tabs have right click functionality
-- so ignore right clicks if on those
if tab ~= 2 and tab ~= 4 then
SCREENMAN:GetTopScreen():PausePreviewNoteField()
self:GetChild("pausetext"):playcommand("Set")
end
end,
SetupNoteFieldCommand=function(self)
setUpPreviewNoteField()
Expand Down
1 change: 1 addition & 0 deletions Themes/Til Death/BGAnimations/superscoreboard.lua
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,7 @@ local o =
self:GetParent():GetParent():playcommand("Collapse")
elseif isOver(self) then
self:GetParent():GetParent():playcommand("Expand")
SCREENMAN:GetTopScreen():PausePreviewNoteField()
end
end
},
Expand Down

0 comments on commit 979e95d

Please sign in to comment.