fix errors with subtitle
This commit is contained in:
@@ -176,23 +176,23 @@ t[#t+1] = StandardDecorationFromFileOptional("SongInformation","SongInformation"
|
|||||||
local SongOrCourse;
|
local SongOrCourse;
|
||||||
if GAMESTATE:GetCurrentSong() then
|
if GAMESTATE:GetCurrentSong() then
|
||||||
SongOrCourse = GAMESTATE:GetCurrentSong();
|
SongOrCourse = GAMESTATE:GetCurrentSong();
|
||||||
|
|
||||||
c.TextTitle:settext( SongOrCourse:GetDisplayMainTitle() or nil );
|
c.TextTitle:settext( SongOrCourse:GetDisplayMainTitle() or nil );
|
||||||
c.TextSubtitle:settext( SongOrCourse:GetDisplaySubTitle() or nil );
|
c.TextSubtitle:settext( SongOrCourse:GetDisplaySubTitle() or nil );
|
||||||
c.TextArtist:settext( SongOrCourse:GetDisplayArtist() or nil );
|
c.TextArtist:settext( SongOrCourse:GetDisplayArtist() or nil );
|
||||||
|
|
||||||
if SongOrCourse:GetDisplaySubTitle() == "" then
|
if SongOrCourse:GetDisplaySubTitle() == "" then
|
||||||
c.TextTitle:visible(true);
|
c.TextTitle:visible(true);
|
||||||
c.TextTitle:y(-16.5/2);
|
c.TextTitle:y(-16.5/2);
|
||||||
c.Subtitle:visible(false);
|
c.TextSubtitle:visible(false);
|
||||||
c.Subtitle:y(0);
|
c.TextSubtitle:y(0);
|
||||||
c.TextArtist:visible(true);
|
c.TextArtist:visible(true);
|
||||||
c.TextArtist:y(18/2);
|
c.TextArtist:y(18/2);
|
||||||
else
|
else
|
||||||
c.TextTitle:visible(true);
|
c.TextTitle:visible(true);
|
||||||
c.TextTitle:y(-16.5);
|
c.TextTitle:y(-16.5);
|
||||||
c.Subtitle:visible(true);
|
c.TextSubtitle:visible(true);
|
||||||
c.Subtitle:y(0);
|
c.TextSubtitle:y(0);
|
||||||
c.TextArtist:visible(true);
|
c.TextArtist:visible(true);
|
||||||
c.TextArtist:y(18);
|
c.TextArtist:y(18);
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -2,8 +2,8 @@ local vStats = STATSMAN:GetCurStageStats();
|
|||||||
|
|
||||||
local function CreateStats( pnPlayer )
|
local function CreateStats( pnPlayer )
|
||||||
-- Actor Templates
|
-- Actor Templates
|
||||||
local aLabel = LoadFont("Common Normal") .. { Text="..."; InitCommand=cmd(zoom,0.5;shadowlength,1;horizalign,left); };
|
local aLabel = LoadFont("Common Normal") .. { InitCommand=cmd(zoom,0.5;shadowlength,1;horizalign,left); };
|
||||||
local aText = LoadFont("Common Normal") .. { Text="..."; InitCommand=cmd(zoom,0.5;shadowlength,1;horizalign,left); };
|
local aText = LoadFont("Common Normal") .. { InitCommand=cmd(zoom,0.5;shadowlength,1;horizalign,left); };
|
||||||
-- DA STATS, JIM!!
|
-- DA STATS, JIM!!
|
||||||
local pnStageStats = vStats:GetPlayerStageStats( pnPlayer );
|
local pnStageStats = vStats:GetPlayerStageStats( pnPlayer );
|
||||||
-- Organized Stats.
|
-- Organized Stats.
|
||||||
|
|||||||
Reference in New Issue
Block a user