Files
itgmania212121/Themes/default/Graphics/ScreenGameplay SongTitle.lua
T

18 lines
544 B
Lua
Raw Normal View History

2011-03-17 01:47:30 -04:00
return LoadFont("ScreenGameplay","SongTitle") .. {
2013-07-04 13:09:03 -04:00
CurrentSongChangedMessageCommand=function(self)
self:playcommand("Refresh");
end;
2011-03-17 01:47:30 -04:00
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;
2010-08-28 13:28:42 -05:00
};