Skip to content

Commit

Permalink
another obnoxious theme function rename
Browse files Browse the repository at this point in the history
better to get this out of the way now
  • Loading branch information
MinaciousGrace committed Jul 21, 2018
1 parent 035c6c9 commit 1f9fe6e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1081,12 +1081,12 @@ local p = Def.ActorFrame{
BeginCommand=function(self)
local ttime = GetPlayableTime()
settext(self,SecondsToMMSS(ttime))
diffuse(self, ByMusicLength(ttime))
diffuse(self, byMusicLength(ttime))
end,
DoneLoadingNextSongMessageCommand=function(self)
local ttime = GetPlayableTime()
settext(self,SecondsToMMSS(ttime))
diffuse(self, ByMusicLength(ttime))
diffuse(self, byMusicLength(ttime))
end
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -657,7 +657,7 @@ t[#t+1] = LoadFont("Common Large") .. {
if song then
local playabletime = GetPlayableTime()
self:settext(SecondsToMMSS(playabletime))
self:diffuse(ByMusicLength(playabletime))
self:diffuse(byMusicLength(playabletime))
else
self:settext("")
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ t[#t+1] = LoadFont("Common Large") .. {
if song then
local playabletime = GetPlayableTime()
self:settext(SecondsToMMSS(playabletime))
self:diffuse(ByMusicLength(playabletime))
self:diffuse(byMusicLength(playabletime))
else
self:settext("")
end
Expand Down
2 changes: 1 addition & 1 deletion Themes/Til Death/Scripts/01 color_config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ function byMSD(x)
return HSV(0, 0.9, 0.9)
end

function ByMusicLength(x)
function byMusicLength(x)
if x then
x = math.min(x,600)
return HSV(math.max(95 - (x/900)*150, -50), 0.9, 0.9)
Expand Down

0 comments on commit 1f9fe6e

Please sign in to comment.