Skip to content

Commit

Permalink
cleanup old stuff in songbg
Browse files Browse the repository at this point in the history
  • Loading branch information
MinaciousGrace committed Nov 24, 2018
1 parent 47ed239 commit bf195c0
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions Themes/Til Death/BGAnimations/_songbg.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
local magnitude = 0.03
local maxDistX = SCREEN_WIDTH * magnitude
local maxDistY = SCREEN_HEIGHT * magnitude

local enabled = themeConfig:get_data().global.SongBGEnabled
local brightness = 0.3

Expand All @@ -13,21 +9,12 @@ if enabled then
CurrentSongChangedMessageCommand = function(self)
self:finishtweening():smooth(0.5):diffusealpha(0):sleep(0.2):queuecommand("ModifySongBackground")
end,
BeginCommand = function(self)
self:scaletocover(0, 0, SCREEN_WIDTH + maxDistX / 4, SCREEN_BOTTOM + maxDistY / 4):diffusealpha(0.3)
end,
ModifySongBackgroundCommand = function(self)
self:finishtweening()
collectgarbage()
if GAMESTATE:GetCurrentSong() and GAMESTATE:GetCurrentSong():GetBackgroundPath() then
self:finishtweening()
self:visible(true)
self:LoadBackground(GAMESTATE:GetCurrentSong():GetBackgroundPath())
if moveBG then
self:scaletocover(0 - maxDistY / 8, 0 - maxDistY / 8, SCREEN_WIDTH + maxDistX / 8, SCREEN_BOTTOM + maxDistY / 8)
else
self:scaletocover(0, 0, SCREEN_WIDTH, SCREEN_BOTTOM)
end
self:scaletocover(0, 0, SCREEN_WIDTH, SCREEN_BOTTOM)
self:sleep(0.25)
self:smooth(0.5)
Expand Down

0 comments on commit bf195c0

Please sign in to comment.