Files
itgmania212121/Themes/legacy/Graphics/ScreenGameplay SongTitle.lua
T
ListenerJubatus f257f19dad Add new 5.1 default theme Lambda
I'd like to thank everyone who made this possible;, including but not
limited to Riakodoadm, MrThatKid, kyzentun, Luizsan, JoseVarelaP,
everyone else who provided feedback and bug reports.
2017-08-08 01:07:34 -06:00

16 lines
520 B
Lua

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 );
self:playcommand( "On" );
end;
};