18 lines
544 B
Lua
18 lines
544 B
Lua
return LoadFont("ScreenGameplay","SongTitle") .. {
|
|
CurrentSongChangedMessageCommand=function(self)
|
|
self:playcommand("Refresh");
|
|
end;
|
|
RefreshCommand=function(self)
|
|
local vSong = GAMESTATE:GetCurrentSong();
|
|
local vCourse = GAMESTATE:GetCurrentCourse();
|
|
local sText = ""
|
|
if vSong then
|
|
sText = vSong:GetDisplayArtist() .. " - " .. vSong:GetDisplayFullTitle()
|
|
end
|
|
if vCourse then
|
|
sText = vCourse:GetDisplayFullTitle() .. " - " .. vSong:GetDisplayFullTitle();
|
|
end
|
|
self:settext( sText );
|
|
self:playcommand( "On" );
|
|
end;
|
|
}; |