Some theme bug fixes.
This commit is contained in:
@@ -53,7 +53,12 @@ t[#t+1] = StandardDecorationFromFileOptional("SongTime","SongTime") .. {
|
|||||||
curSelection = GAMESTATE:GetCurrentCourse();
|
curSelection = GAMESTATE:GetCurrentCourse();
|
||||||
self:playcommand("Reset");
|
self:playcommand("Reset");
|
||||||
if curSelection then
|
if curSelection then
|
||||||
length = curSelection:GetTotalSeconds(GAMESTATE:GetCurrentStyle():GetStepsType());
|
local trail = GAMESTATE:GetCurrentTrail(GAMESTATE:GetMasterPlayerNumber());
|
||||||
|
if trail then
|
||||||
|
length = TrailUtil.GetTotalSeconds(trail);
|
||||||
|
else
|
||||||
|
length = 0.0;
|
||||||
|
end;
|
||||||
else
|
else
|
||||||
length = 0.0;
|
length = 0.0;
|
||||||
end;
|
end;
|
||||||
@@ -78,6 +83,8 @@ t[#t+1] = StandardDecorationFromFileOptional("SongTime","SongTime") .. {
|
|||||||
end;
|
end;
|
||||||
CurrentSongChangedMessageCommand=cmd(playcommand,"Set");
|
CurrentSongChangedMessageCommand=cmd(playcommand,"Set");
|
||||||
CurrentCourseChangedMessageCommand=cmd(playcommand,"Set");
|
CurrentCourseChangedMessageCommand=cmd(playcommand,"Set");
|
||||||
|
CurrentTrailP1ChangedMessageCommand=cmd(playcommand,"Set");
|
||||||
|
CurrentTrailP2ChangedMessageCommand=cmd(playcommand,"Set");
|
||||||
}
|
}
|
||||||
|
|
||||||
if not GAMESTATE:IsCourseMode() then
|
if not GAMESTATE:IsCourseMode() then
|
||||||
|
|||||||
@@ -36,7 +36,17 @@ return Def.CourseContentsList {
|
|||||||
InitCommand=cmd(x,-96;y,2;Load,"TextBanner";SetFromString,"", "", "", "", "", "");
|
InitCommand=cmd(x,-96;y,2;Load,"TextBanner";SetFromString,"", "", "", "", "", "");
|
||||||
SetSongCommand=function(self, params)
|
SetSongCommand=function(self, params)
|
||||||
if params.Song then
|
if params.Song then
|
||||||
|
if GAMESTATE:GetCurrentCourse():GetDisplayFullTitle() == "Abomination" then
|
||||||
|
if params.Number % 2 ~= 0 then
|
||||||
|
-- turkey march
|
||||||
|
local artist = params.Song:GetDisplayArtist();
|
||||||
|
self:SetFromString( "Turkey", "", "", "", artist, "" );
|
||||||
|
else
|
||||||
self:SetFromSong( params.Song );
|
self:SetFromSong( params.Song );
|
||||||
|
end;
|
||||||
|
else
|
||||||
|
self:SetFromSong( params.Song );
|
||||||
|
end;
|
||||||
self:diffuse( SONGMAN:GetSongColor(params.Song) );
|
self:diffuse( SONGMAN:GetSongColor(params.Song) );
|
||||||
-- self:glow("1,1,1,0.5");
|
-- self:glow("1,1,1,0.5");
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user