Skip to content

Commit 0c7aac5

Browse files
committed
Add ssr/msd graph toggling to debug stuff
1 parent 36d641e commit 0c7aac5

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

Themes/Til Death/BGAnimations/_calcdisplay.lua

+12-2
Original file line numberDiff line numberDiff line change
@@ -675,7 +675,7 @@ local function bottomGraphLineMSD(mod, colorToUse, hand)
675675
self:SetVertices({})
676676
self:SetDrawState {Mode = "DrawMode_Quads", First = 1, Num = 0}
677677

678-
self:visible(true)
678+
self:visible(not ssrGraphActive)
679679

680680
local verts = {}
681681
local values = graphVecs[mod][hand]
@@ -694,6 +694,11 @@ local function bottomGraphLineMSD(mod, colorToUse, hand)
694694
else
695695
self:visible(false)
696696
end
697+
end,
698+
UpdateActiveLowerGraphMessageCommand = function(self)
699+
if song and enabled then
700+
self:visible(not ssrGraphActive)
701+
end
697702
end
698703
}
699704
end
@@ -708,7 +713,7 @@ local function bottomGraphLineSSR(lineNum, colorToUse)
708713
self:SetVertices({})
709714
self:SetDrawState {Mode = "DrawMode_Quads", First = 1, Num = 0}
710715

711-
self:visible(true)
716+
self:visible(ssrGraphActive)
712717
local verts = {}
713718

714719
for i = 1, #ssrs[lineNum] do
@@ -724,6 +729,11 @@ local function bottomGraphLineSSR(lineNum, colorToUse)
724729
else
725730
self:visible(false)
726731
end
732+
end,
733+
UpdateActiveLowerGraphMessageCommand = function(self)
734+
if song and enabled then
735+
self:visible(ssrGraphActive)
736+
end
727737
end
728738
}
729739
end

0 commit comments

Comments
 (0)