Skip to content

Commit

Permalink
fix tab animations for tags
Browse files Browse the repository at this point in the history
  • Loading branch information
Ulti-FD committed Jul 8, 2021
1 parent 037b5d7 commit 95c3dbf
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,12 @@ local t =
SCREENMAN:GetTopScreen():AddInputCallback(newTagInput)
self:queuecommand("BORPBORPNORFNORFc"):visible(false)
end,
OffCommand = function(self)
self:bouncebegin(0.2):xy(-500, 0):diffusealpha(0)
end,
OnCommand = function(self)
self:bouncebegin(0.2):xy(0, 0):diffusealpha(1)
end,
MouseRightClickMessageCommand = function(self)
if onTab then
hasFocus = false
Expand All @@ -134,12 +140,13 @@ local t =
BORPBORPNORFNORFcCommand = function(self)
if getTabIndex() == 9 then
self:visible(true)
self:queuecommand("On")
song = GAMESTATE:GetCurrentSong()
steps = GAMESTATE:GetCurrentSteps()
onTab = true
MESSAGEMAN:Broadcast("RefreshTags")
else
self:visible(false)
self:queuecommand("Off")
onTab = false
end
end,
Expand Down

0 comments on commit 95c3dbf

Please sign in to comment.