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

16 lines
535 B
Lua
Raw Normal View History

2010-08-28 13:28:42 -05:00
return LoadFont("ScreenGameplay","SongTitle") .. {
CurrentSongChangedMessageCommand=cmd(playcommand,"Refresh");
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 );
2010-09-02 00:26:16 -05:00
self:playcommand( "On" );
2010-08-28 13:28:42 -05:00
end;
};