Fixed GAMESTATE:GetCurrentStage to use correct logic for determining if all human players are on final stage.
THEME:GetPath lua functions can now pass true for the third arg if the element is optional. Fixes to various StageDisplay things in default. thify_number and thified_curstage_index lua functions added to default/Scripts/04 Other.lua.
This commit is contained in:
@@ -33,7 +33,7 @@ for i=1,#statList do
|
||||
as[#as+1] = Def.ActorFrame {
|
||||
Def.Sprite {
|
||||
InitCommand=cmd(scaletoclipped,256,80);
|
||||
BeginCommand=function(self)
|
||||
OnCommand=function(self)
|
||||
local path = statList[j]:GetPlayedSongs()[1]:GetBannerPath() or THEME:GetPathG("Common","fallback banner");
|
||||
self:LoadBanner(path);
|
||||
end;
|
||||
@@ -43,7 +43,7 @@ for i=1,#statList do
|
||||
OnCommand=cmd(zoomto,80,18;diffuse,Color.Black;diffusealpha,0.5;fadeleft,0.5);
|
||||
};
|
||||
LoadFont("Common Normal") .. {
|
||||
Text=StageToLocalizedString( statList[j]:GetStage() );
|
||||
Text=thify_number(statList[j]:GetStageIndex()+1);
|
||||
InitCommand=cmd(x,128-4;y,40-4;horizalign,right;vertalign,bottom);
|
||||
OnCommand=cmd(diffuse,StageToColor(statList[j]:GetStage());zoom,0.675;shadowlength,1);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user