This commit is contained in:
Jonathan Payne
2011-04-25 12:30:38 -07:00
parent 927a172fea
commit 4c621bddd1
10 changed files with 95 additions and 1 deletions
@@ -0,0 +1,47 @@
-- Loads up a slew of objects to load into the screen, like how 3.9 does.
-- I prefer to keep these optional, incase another screen wants to hide
-- these elements.
local t = LoadFallbackB();
-- Legacy StepMania 4 Function
local function CreateStepDisplay(pn)
local function set(self, player)
self:SetFromGameState( player );
end
local t = Def.StepsDisplay {
InitCommand=cmd(Load,"StepsDisplay",GAMESTATE:GetPlayerState(pn););
};
if pn == PLAYER_1 then
t.CurrentStepsP1ChangedMessageCommand=function(self) set(self, pn); end;
t.CurrentTrailP1ChangedMessageCommand=function(self) set(self, pn); end;
else
t.CurrentStepsP2ChangedMessageCommand=function(self) set(self, pn); end;
t.CurrentTrailP2ChangedMessageCommand=function(self) set(self, pn); end;
end
return t;
end
for pn in ivalues(PlayerNumber) do
local MetricsName = "StepsDisplay" .. PlayerNumberToString(pn);
t[#t+1] = CreateStepDisplay(pn) .. {
InitCommand=function(self) self:player(pn); self:name(MetricsName); ActorUtil.LoadAllCommandsAndSetXY(self,Var "LoadingScreen"); end;
PlayerJoinedMessageCommand=function(self, params)
if params.Player == pn then
self:visible(true);
(cmd(zoom,0;bounceend,0.3;zoom,1))(self);
end;
end;
PlayerUnjoinedMessageCommand=function(self, params)
if params.Player == pn then
self:visible(true);
(cmd(bouncebegin,0.3;zoom,0))(self);
end;
end;
};
end
return t
Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

Before

Width:  |  Height:  |  Size: 3.3 KiB

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.
Binary file not shown.
+48 -1
View File
@@ -279,17 +279,64 @@ IconChoiceEndlessDisabledCommand=diffuse,color("1,0,0,0.5");
IconChoiceEndlessOffUnfocusedCommand=linear,0.1175;zoomx,0
IconChoiceEndlessOffFocusedCommand=stopeffect;sleep,0
[ScreenSelectMusic]
ShowStepsDisplayP1=true
StepsDisplayP1X=SCREEN_CENTER_X-192
StepsDisplayP1Y=SCREEN_BOTTOM-64
StepsDisplayP1OnCommand=
StepsDisplayP1OffCommand=
#
ShowStepsDisplayP2=true
StepsDisplayP2X=SCREEN_CENTER_X-192
StepsDisplayP2Y=SCREEN_BOTTOM-64
StepsDisplayP2OnCommand=
StepsDisplayP2OffCommand=
#
MusicWheelX=SCREEN_RIGHT-128-18
MusicWheelOnCommand=draworder,-1
[MusicWheel]
HighlightOnCommand=blend,Blend.Add;diffuseramp;effectclock,'beatnooffset'
#
ItemTransformFunction=function(self,offsetFromCenter,itemIndex,numItems) self:x( (1-math.cos(offsetFromCenter/math.pi))*0 ); self:y( offsetFromCenter*48 ); end
NumWheelItems=13
[MusicWheelItem]
# Move Song all the way to the left, since it is left aligned
# see [TextBanner]
SongNameX=-124
#
SectionExpandedX=-126
SectionExpandedY=0
SectionExpandedOnCommand=horizalign,left;maxwidth,252;shadowlength,1
#
SectionCollapsedX=-126
SectionCollapsedY=0
SectionCollapsedOnCommand=horizalign,left;maxwidth,252;shadowlength,1
#
SectionCountX=108
SectionCountY=16
SectionCountOnCommand=zoom,0.5;shadowlength,1;
[TextBanner]
TitleOnCommand=horizalign,left;shadowlength,1;
SubtitleOnCommand=horizalign,left;shadowlength,1;
ArtistOnCommand=horizalign,left;shadowlength,1;skewx,-0.2
ArtistPrependString=""
ArtistPrependString=""
[StepsDisplay]
ShowMeter=true
ZeroMeterString="?"
MeterX=92
MeterY=0
MeterOnCommand=horizalign,right;zoom,0.75;shadowlength,1
MeterSetCommand=%function(self,param) \
if param.CustomDifficulty then \
self:diffuse(CustomDifficultyToLightColor(param.CustomDifficulty)); \
end \
end;
#
ShowDescription=true
DescriptionX=-92
DescriptionY=0
DescriptionOnCommand=horizalign,left;zoom,0.75;shadowlength,1;uppercase,true;
DescriptionSetCommand=%function(self,param) \
if param.CustomDifficulty then \
self:diffuse(CustomDifficultyToLightColor(param.CustomDifficulty)); \
end \
end;