rsr: Fix DVNO wheel colors

(Sourced from shakesoda/stepmania.)
This commit is contained in:
Colby Klein
2013-10-05 10:07:14 -07:00
parent ede552add8
commit 6f9b0dc4af
@@ -4,10 +4,6 @@ local width = 330
local height = 46
local offset = -16
t.InitCommand=function(self)
--self:y(0.5)
end
-- background
t[#t+1] = Def.Quad {}
t[#t].InitCommand = function(self)
@@ -24,6 +20,10 @@ local function GenerateRandomColors(song)
-- move the number over several digits to compensate.
local length = song:MusicLengthSeconds()
if song:GetDisplayMainTitle() == "DVNO" then
return 2, { { 1, 0.8, 0, 1 }, { 1, 0.6, 0, 1 } }
end
-- BMS files without BGM mess with this (zero). Use 120 instead.
if length == 0 then
length = 120