Skip to content

Commit

Permalink
use fallback banners when none is available
Browse files Browse the repository at this point in the history
  • Loading branch information
MinaciousGrace committed Nov 23, 2018
1 parent a189b74 commit 4ac9453
Showing 1 changed file with 11 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -492,10 +492,17 @@ t[#t + 1] =
ModifyBannerCommand = function(self)
self:finishtweening()
if song then
self:LoadBackground(GAMESTATE:GetCurrentSong():GetBannerPath())
else
local group = SCREENMAN:GetTopScreen():GetMusicWheel():GetSelectedSection()
self:LoadBackground(SONGMAN:GetSongGroupBannerPath(group))
local bnpath = GAMESTATE:GetCurrentSong():GetBannerPath()
if not bnpath then
bnpath = THEME:GetPathG("Common", "fallback banner")
end
self:LoadBackground(bnpath)
else
local bnpath = SONGMAN:GetSongGroupBannerPath(SCREENMAN:GetTopScreen():GetMusicWheel():GetSelectedSection())
if not bnpath or bnpath == "" then
bnpath = THEME:GetPathG("Common", "fallback banner")
end
self:LoadBackground(bnpath)
end
self:scaletoclipped(capWideScale(get43size(384), 384), capWideScale(get43size(120), 120)):diffusealpha(1)
end,
Expand Down

0 comments on commit 4ac9453

Please sign in to comment.