Revert "Some of default. Better break this up."
This reverts commit 8833ab5bc6.
This commit is contained in:
@@ -1,19 +1,9 @@
|
||||
return Def.ActorFrame {
|
||||
Def.Quad {
|
||||
InitCommand=function(self)
|
||||
self:Center();
|
||||
self:zoomto(SCREEN_WIDTH + 1, SCREEN_HEIGHT);
|
||||
end;
|
||||
OnCommand=function(self)
|
||||
self:diffuse(color("0,0,0,0.5"));
|
||||
self:sleep(5 / 60);
|
||||
self:diffusealpha(1);
|
||||
self:sleep(5 / 60);
|
||||
end;
|
||||
InitCommand=cmd(Center;zoomto,SCREEN_WIDTH+1,SCREEN_HEIGHT);
|
||||
OnCommand=cmd(diffuse,color("0,0,0,0.5");sleep,5/60;diffusealpha,1;sleep,5/60);
|
||||
};
|
||||
LoadActor(THEME:GetPathS("_Screen","cancel")) .. {
|
||||
StartTransitioningCommand=function(self)
|
||||
self:play();
|
||||
end;
|
||||
StartTransitioningCommand=cmd(play);
|
||||
};
|
||||
};
|
||||
@@ -2,15 +2,7 @@ local fSleepTime = THEME:GetMetric( Var "LoadingScreen","ScreenInDelay");
|
||||
|
||||
return Def.ActorFrame {
|
||||
Def.Quad {
|
||||
InitCommand=function(self)
|
||||
self:Center();
|
||||
self:zoomto(SCREEN_WIDTH + 1, SCREEN_HEIGHT);
|
||||
end;
|
||||
OnCommand=function(self)
|
||||
self:diffuse(color("0,0,0,1"));
|
||||
self:sleep(fSleepTime);
|
||||
self:linear(0.01);
|
||||
self:diffusealpha(0);
|
||||
end;
|
||||
InitCommand=cmd(Center;zoomto,SCREEN_WIDTH+1,SCREEN_HEIGHT);
|
||||
OnCommand=cmd(diffuse,color("0,0,0,1");sleep,fSleepTime;linear,0.01;diffusealpha,0);
|
||||
};
|
||||
};
|
||||
@@ -2,15 +2,7 @@ local fSleepTime = THEME:GetMetric( Var "LoadingScreen","ScreenOutDelay");
|
||||
|
||||
return Def.ActorFrame {
|
||||
Def.Quad {
|
||||
InitCommand=function(self)
|
||||
self:Center();
|
||||
self:zoomto(SCREEN_WIDTH + 1, SCREEN_HEIGHT);
|
||||
end;
|
||||
OnCommand=function(self)
|
||||
self:diffuse(color("0,0,0,0"));
|
||||
self:sleep(fSleepTime);
|
||||
self:linear(0.01);
|
||||
self:diffusealpha(1);
|
||||
end;
|
||||
InitCommand=cmd(Center;zoomto,SCREEN_WIDTH+1,SCREEN_HEIGHT);
|
||||
OnCommand=cmd(diffuse,color("0,0,0,0");sleep,fSleepTime;linear,0.01;diffusealpha,1);
|
||||
};
|
||||
};
|
||||
@@ -1,49 +1,19 @@
|
||||
local scrolltime = 95;
|
||||
|
||||
local t = Def.ActorFrame {
|
||||
InitCommand=function(self)
|
||||
self:Center();
|
||||
end;
|
||||
InitCommand=cmd(Center);
|
||||
LoadActor("_space")..{
|
||||
InitCommand=function(self)
|
||||
self:y(-SCREEN_HEIGHT * 1.5);
|
||||
self:fadebottom(0.125);
|
||||
self:fadetop(0.25);
|
||||
end;
|
||||
OnCommand=function(self)
|
||||
self:linear(scrolltime);
|
||||
self:addy(SCREEN_HEIGHT * 1.5825);
|
||||
end;
|
||||
InitCommand=cmd(y,-SCREEN_HEIGHT*1.5;fadebottom,0.125;fadetop,0.25);
|
||||
OnCommand=cmd(linear,scrolltime;addy,SCREEN_HEIGHT*1.5825);
|
||||
};
|
||||
Def.Quad {
|
||||
InitCommand=function(self)
|
||||
self:scaletoclipped(SCREEN_WIDTH + 1, SCREEN_HEIGHT);
|
||||
end;
|
||||
OnCommand=function(self)
|
||||
self:diffusecolor(color("#FFCB05"));
|
||||
self:diffusebottomedge(color("#F0BA00"));
|
||||
self:diffusealpha(0.45);
|
||||
end;
|
||||
InitCommand=cmd(scaletoclipped,SCREEN_WIDTH+1,SCREEN_HEIGHT);
|
||||
OnCommand=cmd(diffusecolor,color("#FFCB05");diffusebottomedge,color("#F0BA00");diffusealpha,0.45);
|
||||
};
|
||||
LoadActor("_grid")..{
|
||||
InitCommand=function(self)
|
||||
self:customtexturerect(0, 0, (SCREEN_WIDTH + 1) / 4, SCREEN_HEIGHT / 4);
|
||||
self:SetTextureFiltering(true);
|
||||
end;
|
||||
OnCommand=function(self)
|
||||
self:zoomto(SCREEN_WIDTH + 1, SCREEN_HEIGHT);
|
||||
self:diffuse(Color("Black"));
|
||||
self:diffuseshift();
|
||||
self:effecttiming((1 / 8) * 4, 0, (7 / 8) * 4, 0);
|
||||
self:effectclock('beatnooffset');
|
||||
self:effectcolor2(Color("Black"));
|
||||
self:effectcolor1(Color.Alpha(Color("Black"),0.45));
|
||||
self:fadebottom(0.25);
|
||||
self:fadetop(0.25);
|
||||
self:croptop(48 / 480);
|
||||
self:cropbottom(48 / 480);
|
||||
self:diffusealpha(0.345);
|
||||
end;
|
||||
InitCommand=cmd(customtexturerect,0,0,(SCREEN_WIDTH+1)/4,SCREEN_HEIGHT/4;SetTextureFiltering,true);
|
||||
OnCommand=cmd(zoomto,SCREEN_WIDTH+1,SCREEN_HEIGHT;diffuse,Color("Black");diffuseshift;effecttiming,(1/8)*4,0,(7/8)*4,0;effectclock,'beatnooffset';
|
||||
effectcolor2,Color("Black");effectcolor1,Color.Alpha(Color("Black"),0.45);fadebottom,0.25;fadetop,0.25;croptop,48/480;cropbottom,48/480;diffusealpha,0.345);
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
@@ -118,18 +118,8 @@ local sections = {
|
||||
|
||||
-- To add people or sections modify the above.
|
||||
|
||||
local lineOn = function(self)
|
||||
self:zoom(0.875);
|
||||
self:strokecolor(color("#444444"));
|
||||
self:shadowcolor(color("#444444"));
|
||||
self:shadowlength(3);
|
||||
end;
|
||||
local sectionOn = function(self)
|
||||
self:diffuse(color("#88DDFF"));
|
||||
self:strokecolor(color("#446688"));
|
||||
self:shadowcolor(color("#446688"));
|
||||
self:shadowlength(3);
|
||||
end;
|
||||
local lineOn = cmd(zoom,0.875;strokecolor,color("#444444");shadowcolor,color("#444444");shadowlength,3)
|
||||
local sectionOn = cmd(diffuse,color("#88DDFF");strokecolor,color("#446688");shadowcolor,color("#446688");shadowlength,3)
|
||||
local item_padding_start = 4;
|
||||
|
||||
local creditScroller = Def.ActorScroller {
|
||||
@@ -138,9 +128,7 @@ local creditScroller = Def.ActorScroller {
|
||||
TransformFunction = function( self, offset, itemIndex, numItems)
|
||||
self:y(30*offset)
|
||||
end;
|
||||
OnCommand = function(self)
|
||||
self:scrollwithpadding(item_padding_start,15);
|
||||
end;
|
||||
OnCommand = cmd(scrollwithpadding,item_padding_start,15);
|
||||
}
|
||||
|
||||
local function AddLine( text, command )
|
||||
@@ -169,14 +157,9 @@ end;
|
||||
|
||||
return Def.ActorFrame{
|
||||
creditScroller..{
|
||||
InitCommand=function(self)
|
||||
self:CenterX();
|
||||
self:y(SCREEN_BOTTOM - 64);
|
||||
end;
|
||||
InitCommand=cmd(CenterX;y,SCREEN_BOTTOM-64),
|
||||
},
|
||||
LoadActor(THEME:GetPathB("ScreenWithMenuElements","background/_bg top"))..{
|
||||
InitCommand=function(self)
|
||||
self:Center();
|
||||
end;
|
||||
InitCommand=cmd(Center),
|
||||
},
|
||||
};
|
||||
|
||||
@@ -1,15 +1,6 @@
|
||||
return Def.ActorFrame{
|
||||
Def.Quad{
|
||||
InitCommand=function(self)
|
||||
self:FullScreen();
|
||||
self:diffuse(color("0,0,0,1"));
|
||||
self:cropbottom(1);
|
||||
self:fadebottom(1);
|
||||
end;
|
||||
OnCommand=function(self)
|
||||
self:decelerate(0.5);
|
||||
self:cropbottom(0);
|
||||
self:fadebottom(0);
|
||||
end;
|
||||
InitCommand=cmd(FullScreen;diffuse,color("0,0,0,1");cropbottom,1;fadebottom,1);
|
||||
OnCommand=cmd(decelerate,0.5;cropbottom,0;fadebottom,0);
|
||||
};
|
||||
};
|
||||
@@ -1,71 +1,32 @@
|
||||
local t = Def.ActorFrame{
|
||||
Def.Quad{
|
||||
Name="TopFrame";
|
||||
InitCommand=function(self)
|
||||
self:CenterX();
|
||||
self:y(SCREEN_TOP);
|
||||
self:valign(0);
|
||||
self:zoomto(SCREEN_WIDTH, SCREEN_HEIGHT * 0.15);
|
||||
self:diffuse(color("0,0,0,1"));
|
||||
self:fadebottom(0.5);
|
||||
end;
|
||||
InitCommand=cmd(CenterX;y,SCREEN_TOP;valign,0;zoomto,SCREEN_WIDTH,SCREEN_HEIGHT*0.15;diffuse,color("0,0,0,1");fadebottom,0.5);
|
||||
};
|
||||
|
||||
Def.Quad{
|
||||
Name="BotFrame";
|
||||
InitCommand=function(self)
|
||||
self:CenterX();
|
||||
self:y(SCREEN_BOTTOM);
|
||||
self:valign(1);
|
||||
self:zoomto(SCREEN_WIDTH, SCREEN_HEIGHT * 0.15);
|
||||
self:diffuse(color("0,0,0,1"));
|
||||
self:fadetop(0.5);
|
||||
end;
|
||||
InitCommand=cmd(CenterX;y,SCREEN_BOTTOM;valign,1;zoomto,SCREEN_WIDTH,SCREEN_HEIGHT*0.15;diffuse,color("0,0,0,1");fadetop,0.5);
|
||||
};
|
||||
|
||||
Def.ActorFrame{
|
||||
Name="MiddleSection";
|
||||
InitCommand=function(self)
|
||||
self:CenterX();
|
||||
self:y(SCREEN_CENTER_Y * 1.35);
|
||||
end;
|
||||
InitCommand=cmd(CenterX;y,SCREEN_CENTER_Y*1.35);
|
||||
Def.Quad{
|
||||
Name="Frame";
|
||||
InitCommand=function(self)
|
||||
self:zoomto(SCREEN_WIDTH, 0);
|
||||
self:diffuse(color("0.1,0.1,0.1,0.75"));
|
||||
self:fadebottom(0.25);
|
||||
self:fadetop(0.25);
|
||||
end;
|
||||
OnCommand=function(self)
|
||||
self:smooth(0.75);
|
||||
self:zoomtoheight(64);
|
||||
end;
|
||||
InitCommand=cmd(zoomto,SCREEN_WIDTH,0;diffuse,color("0.1,0.1,0.1,0.75");fadebottom,0.25;fadetop,0.25;);
|
||||
OnCommand=cmd(smooth,0.75;zoomtoheight,64;);
|
||||
};
|
||||
LoadFont("Common normal")..{
|
||||
Text=Screen.String("Demonstration");
|
||||
InitCommand=function(self)
|
||||
self:diffusealpha(0);
|
||||
self:strokecolor(color("0,0,0,0.5"));
|
||||
end;
|
||||
OnCommand=function(self)
|
||||
self:smooth(0.75);
|
||||
self:diffusealpha(1);
|
||||
self:diffuseshift();
|
||||
self:effectcolor1(HSV(38,0.45,0.95));
|
||||
end;
|
||||
InitCommand=cmd(diffusealpha,0;strokecolor,color("0,0,0,0.5"));
|
||||
OnCommand=cmd(smooth,0.75;diffusealpha,1;diffuseshift;effectcolor1,HSV(38,0.45,0.95));
|
||||
};
|
||||
};
|
||||
|
||||
LoadFont("Common normal")..{
|
||||
Name="SongTitle";
|
||||
InitCommand=function(self)
|
||||
self:x(SCREEN_CENTER_X);
|
||||
self:y(SCREEN_TOP+16);
|
||||
self:zoom(0.5);
|
||||
self:shadowlength(1);
|
||||
self:valign(0);
|
||||
end;
|
||||
InitCommand=cmd(x,SCREEN_CENTER_X;y,SCREEN_TOP+16;zoom,0.5;shadowlength,1;valign,0);
|
||||
BeginCommand=function(self)
|
||||
local song = GAMESTATE:GetCurrentSong();
|
||||
local text = "";
|
||||
@@ -77,6 +38,8 @@ local t = Def.ActorFrame{
|
||||
end;
|
||||
self:settext(text);
|
||||
end;
|
||||
-- OnCommand=cmd(queuecommand,"Scroll");
|
||||
-- ScrollCommand=cmd(linear,10;x,-SCREEN_WIDTH*2;sleep,1;x,SCREEN_WIDTH*2;queuecommand,"Scroll");
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
@@ -1,22 +1,13 @@
|
||||
local t = Def.ActorFrame {
|
||||
InitCommand=function(self)
|
||||
self:fov(90);
|
||||
end;
|
||||
InitCommand=cmd(fov,90);
|
||||
};
|
||||
t[#t+1] = Def.ActorFrame {
|
||||
InitCommand=function(self)
|
||||
self:Center();
|
||||
end;
|
||||
InitCommand=cmd(Center);
|
||||
LoadActor( THEME:GetPathB("ScreenWithMenuElements","background/_bg top") ) .. {
|
||||
InitCommand=function(self)
|
||||
self:scaletoclipped(SCREEN_WIDTH, SCREEN_HEIGHT);
|
||||
end;
|
||||
InitCommand=cmd(scaletoclipped,SCREEN_WIDTH,SCREEN_HEIGHT);
|
||||
};
|
||||
Def.Quad{
|
||||
InitCommand=function(self)
|
||||
self:scaletoclipped(SCREEN_WIDTH, SCREEN_HEIGHT);
|
||||
self:diffuse(color("0.2,0.2,0.2,0"));
|
||||
end;
|
||||
InitCommand=cmd(scaletoclipped,SCREEN_WIDTH,SCREEN_HEIGHT;diffuse,color("0.2,0.2,0.2,0"));
|
||||
OnCommand=function(self)
|
||||
local topScreen = SCREENMAN:GetTopScreen()
|
||||
if topScreen then
|
||||
@@ -28,16 +19,8 @@ t[#t+1] = Def.ActorFrame {
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
EditorShowMessageCommand=function(self)
|
||||
self:stoptweening();
|
||||
self:linear(0.5);
|
||||
self:diffusealpha(0.95);
|
||||
end;
|
||||
EditorHideMessageCommand=function(self)
|
||||
self:stoptweening();
|
||||
self:linear(0.5);
|
||||
self:diffusealpha(0.95);
|
||||
end;
|
||||
EditorShowMessageCommand=cmd(stoptweening;linear,0.5;diffusealpha,0.95);
|
||||
EditorHideMessageCommand=cmd(stoptweening;linear,0.5;diffusealpha,0.65);
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
@@ -1,9 +1,7 @@
|
||||
local t = Def.ActorFrame {};
|
||||
|
||||
t[#t+1] = Def.ActorFrame {
|
||||
InitCommand=function(self)
|
||||
self:Center();
|
||||
end;
|
||||
InitCommand=cmd(Center);
|
||||
Def.Sprite {
|
||||
OnCommand=function(self)
|
||||
if GAMESTATE:GetCurrentSong() then
|
||||
@@ -22,19 +20,17 @@ t[#t+1] = Def.ActorFrame {
|
||||
end;
|
||||
};
|
||||
Def.Quad {
|
||||
InitCommand=function(self)
|
||||
self:scaletoclipped(SCREEN_WIDTH + 1, SCREEN_HEIGHT);
|
||||
end;
|
||||
OnCommand=function(self)
|
||||
self:diffuse(color("#FFCB05"));
|
||||
self:diffusebottomedge(color("#F0BA00"));
|
||||
self:diffusealpha(0.45);
|
||||
end;
|
||||
InitCommand=cmd(scaletoclipped,SCREEN_WIDTH+1,SCREEN_HEIGHT);
|
||||
OnCommand=cmd(diffuse,color("#FFCB05");diffusebottomedge,color("#F0BA00");diffusealpha,0.45);
|
||||
};
|
||||
--[[
|
||||
LoadActor(THEME:GetPathB("ScreenWithMenuElements","background/_grid")).. {
|
||||
InitCommand=cmd(customtexturerect,0,0,(SCREEN_WIDTH+1)/4,SCREEN_HEIGHT/4;SetTextureFiltering,true);
|
||||
OnCommand=cmd(zoomto,SCREEN_WIDTH+1,SCREEN_HEIGHT;diffuse,Color("Black");diffuseshift;effecttiming,(1/8)*4,0,(7/8)*4,0;effectclock,'beatnooffset';
|
||||
effectcolor2,Color("Black");effectcolor1,Colors.Alpha(Color("Black"),0.45);fadebottom,0.25;fadetop,0.25;croptop,48/480;cropbottom,48/480;diffusealpha,0.345);
|
||||
}; --]]
|
||||
LoadActor(THEME:GetPathB("ScreenWithMenuElements","background/_bg top")) .. {
|
||||
InitCommand=function(self)
|
||||
self:scaletoclipped(SCREEN_WIDTH + 1, SCREEN_HEIGHT);
|
||||
end;
|
||||
InitCommand=cmd(scaletoclipped,SCREEN_WIDTH+1,SCREEN_HEIGHT);
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
@@ -1,9 +1,7 @@
|
||||
local function GraphDisplay( pn )
|
||||
local t = Def.ActorFrame {
|
||||
Def.GraphDisplay {
|
||||
InitCommand=function(self)
|
||||
self:Load("GraphDisplay");
|
||||
end;
|
||||
InitCommand=cmd(Load,"GraphDisplay";);
|
||||
BeginCommand=function(self)
|
||||
local ss = SCREENMAN:GetTopScreen():GetStageStats();
|
||||
self:Set( ss, ss:GetPlayerStageStats(pn) );
|
||||
@@ -17,9 +15,7 @@ end
|
||||
local function ComboGraph( pn )
|
||||
local t = Def.ActorFrame {
|
||||
Def.ComboGraph {
|
||||
InitCommand=function(self)
|
||||
self:Load("ComboGraph");
|
||||
end;
|
||||
InitCommand=cmd(Load,"ComboGraph";);
|
||||
BeginCommand=function(self)
|
||||
local ss = SCREENMAN:GetTopScreen():GetStageStats();
|
||||
self:Set( ss, ss:GetPlayerStageStats(pn) );
|
||||
@@ -32,14 +28,8 @@ end
|
||||
|
||||
local function PercentScore( pn )
|
||||
local t = LoadFont("Common normal")..{
|
||||
InitCommand=function(self)
|
||||
self:zoom(0.625);
|
||||
self:shadowlength(1);
|
||||
self:player(pn);
|
||||
end;
|
||||
BeginCommand=function(self)
|
||||
self:playcommand("Set");
|
||||
end;
|
||||
InitCommand=cmd(zoom,0.625;shadowlength,1;player,pn);
|
||||
BeginCommand=cmd(playcommand,"Set");
|
||||
SetCommand=function(self)
|
||||
-- todo: color by difficulty
|
||||
local SongOrCourse, StepsOrTrail;
|
||||
@@ -92,10 +82,7 @@ end
|
||||
if ShowStandardDecoration("StepsDisplay") then
|
||||
for pn in ivalues(PlayerNumber) do
|
||||
local t2 = Def.StepsDisplay {
|
||||
InitCommand=function(self)
|
||||
self:Load("StepsDisplayEvaluation",pn);
|
||||
self:SetFromGameState(pn);
|
||||
end;
|
||||
InitCommand=cmd(Load,"StepsDisplayEvaluation",pn;SetFromGameState,pn;);
|
||||
UpdateNetEvalStatsMessageCommand=function(self,param)
|
||||
if GAMESTATE:IsPlayerEnabled(pn) then
|
||||
self:SetFromSteps(param.Steps)
|
||||
@@ -137,9 +124,7 @@ for pn in ivalues(PlayerNumber) do
|
||||
self:name(MetricsName);
|
||||
ActorUtil.LoadAllCommandsAndSetXY(self,Var "LoadingScreen");
|
||||
end;
|
||||
BeginCommand=function(self)
|
||||
self:playcommand("Set");
|
||||
end;
|
||||
BeginCommand=cmd(playcommand,"Set");
|
||||
SetCommand=function(self)
|
||||
local tStats = THEME:GetMetric(Var "LoadingScreen", "Summary") and STATSMAN:GetAccumPlayedStageStats() or STATSMAN:GetCurStageStats();
|
||||
tStats = tStats:GetPlayerStageStats(pn);
|
||||
@@ -160,9 +145,7 @@ for pn in ivalues(PlayerNumber) do
|
||||
self:name(MetricsName);
|
||||
ActorUtil.LoadAllCommandsAndSetXY(self,Var "LoadingScreen");
|
||||
end;
|
||||
BeginCommand=function(self)
|
||||
self:playcommand("Set");
|
||||
end;
|
||||
BeginCommand=cmd(playcommand,"Set");
|
||||
SetCommand=function(self)
|
||||
local tStats = THEME:GetMetric(Var "LoadingScreen", "Summary") and STATSMAN:GetAccumPlayedStageStats() or STATSMAN:GetCurStageStats();
|
||||
tStats = tStats:GetPlayerStageStats(pn);
|
||||
@@ -236,81 +219,38 @@ t[#t+1] = StandardDecorationFromFileOptional("SongInformation","SongInformation"
|
||||
self:playcommand("Hide")
|
||||
end
|
||||
end;
|
||||
CurrentSongChangedMessageCommand=function(self)
|
||||
self:playcommand("Set");
|
||||
end;
|
||||
CurrentCourseChangedMessageCommand=function(self)
|
||||
self:playcommand("Set");
|
||||
end;
|
||||
DisplayLanguageChangedMessageCommand=function(self)
|
||||
self:playcommand("Set");
|
||||
end;
|
||||
-- OnCommand=cmd(playcommand,"Set");
|
||||
CurrentSongChangedMessageCommand=cmd(playcommand,"Set");
|
||||
CurrentCourseChangedMessageCommand=cmd(playcommand,"Set");
|
||||
DisplayLanguageChangedMessageCommand=cmd(playcommand,"Set");
|
||||
};
|
||||
t[#t+1] = StandardDecorationFromFileOptional("LifeDifficulty","LifeDifficulty");
|
||||
t[#t+1] = StandardDecorationFromFileOptional("TimingDifficulty","TimingDifficulty");
|
||||
t[#t+1] = StandardDecorationFromFileOptional("GameType","GameType");
|
||||
t[#t+1] = Def.ActorFrame {
|
||||
Condition=GAMESTATE:HasEarnedExtraStage() and GAMESTATE:IsExtraStage() and not GAMESTATE:IsExtraStage2();
|
||||
InitCommand=function(self)
|
||||
self:draworder(105);
|
||||
end;
|
||||
InitCommand=cmd(draworder,105);
|
||||
LoadActor( THEME:GetPathS("ScreenEvaluation","try Extra1" ) ) .. {
|
||||
Condition=THEME:GetMetric( Var "LoadingScreen","Summary" ) == false;
|
||||
OnCommand=function(self)
|
||||
self:play();
|
||||
end;
|
||||
OnCommand=cmd(play);
|
||||
};
|
||||
LoadActor( THEME:GetPathG("ScreenStageInformation","Stage extra1" ) ) .. {
|
||||
Condition=THEME:GetMetric( Var "LoadingScreen","Summary" ) == false;
|
||||
InitCommand=function(self)
|
||||
self:Center();
|
||||
end;
|
||||
OnCommand=function(self)
|
||||
self:diffusealpha(0);
|
||||
self:zoom(0.85);
|
||||
self:bounceend(1);
|
||||
self:zoom(1);
|
||||
self:diffusealpha(1);
|
||||
self:sleep(0);
|
||||
self:glow(Color("White"));
|
||||
self:decelerate(1);
|
||||
self:glow(Color("Invisible"));
|
||||
self:smooth(0.35);
|
||||
self:zoom(0.25);
|
||||
self:y(SCREEN_BOTTOM-72);
|
||||
end;
|
||||
InitCommand=cmd(Center);
|
||||
OnCommand=cmd(diffusealpha,0;zoom,0.85;bounceend,1;zoom,1;diffusealpha,1;sleep,0;glow,Color("White");decelerate,1;glow,Color("Invisible");smooth,0.35;zoom,0.25;y,SCREEN_BOTTOM-72);
|
||||
};
|
||||
};
|
||||
t[#t+1] = Def.ActorFrame {
|
||||
Condition=GAMESTATE:HasEarnedExtraStage() and not GAMESTATE:IsExtraStage() and GAMESTATE:IsExtraStage2();
|
||||
InitCommand=function(self)
|
||||
self:draworder(105);
|
||||
end;
|
||||
InitCommand=cmd(draworder,105);
|
||||
LoadActor( THEME:GetPathS("ScreenEvaluation","try Extra2" ) ) .. {
|
||||
Condition=THEME:GetMetric( Var "LoadingScreen","Summary" ) == false;
|
||||
OnCommand=function(self)
|
||||
self:play();
|
||||
end;
|
||||
OnCommand=cmd(play);
|
||||
};
|
||||
LoadActor( THEME:GetPathG("ScreenStageInformation","Stage extra2" ) ) .. {
|
||||
Condition=THEME:GetMetric( Var "LoadingScreen","Summary" ) == false;
|
||||
InitCommand=function(self)
|
||||
self:Center();
|
||||
end;
|
||||
OnCommand=function(self)
|
||||
self:diffusealpha(0);
|
||||
self:zoom(0.85);
|
||||
self:bounceend(1);
|
||||
self:zoom(1);
|
||||
self:diffusealpha(1);
|
||||
self:sleep(0);
|
||||
self:glow(Color("White"));
|
||||
self:decelerate(1);
|
||||
self:glow(Color("Invisible"));
|
||||
self:smooth(0.35);
|
||||
self:zoom(0.25);
|
||||
self:y(SCREEN_BOTTOM-72);
|
||||
end;
|
||||
InitCommand=cmd(Center);
|
||||
OnCommand=cmd(diffusealpha,0;zoom,0.85;bounceend,1;zoom,1;diffusealpha,1;sleep,0;glow,Color("White");decelerate,1;glow,Color("Invisible");smooth,0.35;zoom,0.25;y,SCREEN_BOTTOM-72);
|
||||
};
|
||||
};
|
||||
return t
|
||||
@@ -2,20 +2,8 @@ local vStats = STATSMAN:GetCurStageStats();
|
||||
|
||||
local function CreateStats( pnPlayer )
|
||||
-- Actor Templates
|
||||
local aLabel = LoadFont("Common Normal") .. {
|
||||
InitCommand=function(self)
|
||||
self:zoom(0.5);
|
||||
self:shadowlength(1);
|
||||
self:horizalign(left);
|
||||
end;
|
||||
};
|
||||
local aText = LoadFont("Common Normal") .. {
|
||||
InitCommand=function(self)
|
||||
self:zoom(0.5);
|
||||
self:shadowlength(1);
|
||||
self:horizalign(left);
|
||||
end;
|
||||
};
|
||||
local aLabel = LoadFont("Common Normal") .. { 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!!
|
||||
local pnStageStats = vStats:GetPlayerStageStats( pnPlayer );
|
||||
-- Organized Stats.
|
||||
@@ -45,94 +33,24 @@ local function CreateStats( pnPlayer )
|
||||
|
||||
local t = Def.ActorFrame {};
|
||||
t[#t+1] = Def.ActorFrame {
|
||||
InitCommand=function(self)
|
||||
self:y(-34);
|
||||
end;
|
||||
InitCommand=cmd(y,-34);
|
||||
LoadActor(THEME:GetPathG("ScreenTitleMenu","PreferenceFrame")) .. {
|
||||
InitCommand=function(self)
|
||||
self:zoom(0.875);
|
||||
self:diffuse(PlayerColor( pnPlayer ));
|
||||
end;
|
||||
};
|
||||
aLabel .. {
|
||||
Text=THEME:GetString("ScreenEvaluation","ITG DP:");
|
||||
InitCommand=function(self)
|
||||
self:x(-64);
|
||||
end;
|
||||
};
|
||||
aText .. {
|
||||
Text=string.format("%04i",tValues["ITG"]);
|
||||
InitCommand=function(self)
|
||||
self:x(-8);
|
||||
self:y(5);
|
||||
self:vertalign(bottom);
|
||||
self:zoom(0.6);
|
||||
end;
|
||||
};
|
||||
aText .. {
|
||||
Text="/";
|
||||
InitCommand=function(self)
|
||||
self:x(28);
|
||||
self:y(5);
|
||||
self:vertalign(bottom);
|
||||
self:zoom(0.5);
|
||||
self:diffusealpha(0.5);
|
||||
end;
|
||||
};
|
||||
aText .. {
|
||||
Text=string.format("%04i",tValues["ITG_MAX"]);
|
||||
InitCommand=function(self)
|
||||
self:x(32);
|
||||
self:y(5);
|
||||
self:vertalign(bottom);
|
||||
self:zoom(0.5);
|
||||
end;
|
||||
InitCommand=cmd(zoom,0.875;diffuse,PlayerColor( pnPlayer ));
|
||||
};
|
||||
aLabel .. { Text=THEME:GetString("ScreenEvaluation","ITG DP:"); InitCommand=cmd(x,-64) };
|
||||
aText .. { Text=string.format("%04i",tValues["ITG"]); InitCommand=cmd(x,-8;y,5;vertalign,bottom;zoom,0.6); };
|
||||
aText .. { Text="/"; InitCommand=cmd(x,28;y,5;vertalign,bottom;zoom,0.5;diffusealpha,0.5); };
|
||||
aText .. { Text=string.format("%04i",tValues["ITG_MAX"]); InitCommand=cmd(x,32;y,5;vertalign,bottom;zoom,0.5); };
|
||||
};
|
||||
t[#t+1] = Def.ActorFrame {
|
||||
InitCommand=function(self)
|
||||
self:y(-6);
|
||||
end;
|
||||
InitCommand=cmd(y,-6);
|
||||
LoadActor(THEME:GetPathG("ScreenTitleMenu","PreferenceFrame")) .. {
|
||||
InitCommand=function(self)
|
||||
self:zoom(0.875);
|
||||
self:diffuse(PlayerColor( pnPlayer ));
|
||||
end;
|
||||
};
|
||||
aLabel .. {
|
||||
Text=THEME:GetString("ScreenEvaluation","MIGS DP:");
|
||||
InitCommand=function(self)
|
||||
self:x(-64);
|
||||
end;
|
||||
};
|
||||
aText .. {
|
||||
Text=string.format("%04i",tValues["MIGS"]);
|
||||
InitCommand=function(self)
|
||||
self:x(-8);
|
||||
self:y(5);
|
||||
self:vertalign(bottom);
|
||||
self:zoom(0.6);
|
||||
end;
|
||||
};
|
||||
aText .. {
|
||||
Text="/";
|
||||
InitCommand=function(self)
|
||||
self:x(28);
|
||||
self:y(5);
|
||||
self:vertalign(bottom);
|
||||
self:zoom(0.5);
|
||||
self:diffusealpha(0.5);
|
||||
end;
|
||||
};
|
||||
aText .. {
|
||||
Text=string.format("%04i",tValues["MIGS_MAX"]);
|
||||
InitCommand=function(self)
|
||||
self:x(32);
|
||||
self:y(5);
|
||||
self:vertalign(bottom);
|
||||
self:zoom(0.5);
|
||||
end;
|
||||
InitCommand=cmd(zoom,0.875;diffuse,PlayerColor( pnPlayer ));
|
||||
};
|
||||
aLabel .. { Text=THEME:GetString("ScreenEvaluation","MIGS DP:"); InitCommand=cmd(x,-64) };
|
||||
aText .. { Text=string.format("%04i",tValues["MIGS"]); InitCommand=cmd(x,-8;y,5;vertalign,bottom;zoom,0.6); };
|
||||
aText .. { Text="/"; InitCommand=cmd(x,28;y,5;vertalign,bottom;zoom,0.5;diffusealpha,0.5); };
|
||||
aText .. { Text=string.format("%04i",tValues["MIGS_MAX"]); InitCommand=cmd(x,32;y,5;vertalign,bottom;zoom,0.5); };
|
||||
};
|
||||
return t
|
||||
end;
|
||||
@@ -140,19 +58,11 @@ end;
|
||||
local t = Def.ActorFrame {};
|
||||
GAMESTATE:IsPlayerEnabled(PLAYER_1)
|
||||
t[#t+1] = Def.ActorFrame {
|
||||
InitCommand=function(self)
|
||||
self:hide_if(not GAMESTATE:IsPlayerEnabled(PLAYER_1));
|
||||
self:x(WideScale(math.floor(SCREEN_CENTER_X * 0.3) - 8, math.floor(SCREEN_CENTER_X * 0.5) - 8));
|
||||
self:y(SCREEN_CENTER_Y-34);
|
||||
end;
|
||||
InitCommand=cmd(hide_if,not GAMESTATE:IsPlayerEnabled(PLAYER_1);x,WideScale(math.floor(SCREEN_CENTER_X*0.3)-8,math.floor(SCREEN_CENTER_X*0.5)-8);y,SCREEN_CENTER_Y-34);
|
||||
CreateStats( PLAYER_1 );
|
||||
};
|
||||
t[#t+1] = Def.ActorFrame {
|
||||
InitCommand=function(self)
|
||||
self:hide_if(not GAMESTATE:IsPlayerEnabled(PLAYER_2));
|
||||
self:x(WideScale(math.floor(SCREEN_CENTER_X * 1.7) + 8, math.floor(SCREEN_CENTER_X * 1.5) + 8));
|
||||
self:y(SCREEN_CENTER_Y-34);
|
||||
end;
|
||||
InitCommand=cmd(hide_if,not GAMESTATE:IsPlayerEnabled(PLAYER_2);x,WideScale(math.floor(SCREEN_CENTER_X*1.7)+8,math.floor(SCREEN_CENTER_X*1.5)+8);y,SCREEN_CENTER_Y-34);
|
||||
CreateStats( PLAYER_2 );
|
||||
};
|
||||
return t
|
||||
@@ -2,20 +2,8 @@ local vStats = STATSMAN:GetCurStageStats();
|
||||
|
||||
local function CreateStats( pnPlayer )
|
||||
-- Actor Templates
|
||||
local aLabel = LoadFont("Common Normal") .. {
|
||||
InitCommand=function(self)
|
||||
self:zoom(0.5);
|
||||
self:shadowlength(1);
|
||||
self:horizalign(left);
|
||||
end;
|
||||
};
|
||||
local aText = LoadFont("Common Normal") .. {
|
||||
InitCommand=function(self)
|
||||
self:zoom(0.5);
|
||||
self:shadowlength(1);
|
||||
self:horizalign(left);
|
||||
end;
|
||||
};
|
||||
local aLabel = LoadFont("Common Normal") .. { 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!!
|
||||
local pnStageStats = vStats:GetPlayerStageStats( pnPlayer );
|
||||
-- Organized Stats.
|
||||
@@ -77,94 +65,24 @@ local function CreateStats( pnPlayer )
|
||||
|
||||
local t = Def.ActorFrame {};
|
||||
t[#t+1] = Def.ActorFrame {
|
||||
InitCommand=function(self)
|
||||
self:y(-34);
|
||||
end;
|
||||
InitCommand=cmd(y,-34);
|
||||
LoadActor(THEME:GetPathG("ScreenTitleMenu","PreferenceFrame")) .. {
|
||||
InitCommand=function(self)
|
||||
self:zoom(0.875);
|
||||
self:diffuse(PlayerColor( pnPlayer ));
|
||||
end;
|
||||
};
|
||||
aLabel .. {
|
||||
Text=THEME:GetString("ScreenEvaluation","ITG DP:");
|
||||
InitCommand=function(self)
|
||||
self:x(-64);
|
||||
end;
|
||||
};
|
||||
aText .. {
|
||||
Text=string.format("%04i",tValues["ITG"]);
|
||||
InitCommand=function(self)
|
||||
self:x(-8);
|
||||
self:y(5);
|
||||
self:vertalign(bottom);
|
||||
self:zoom(0.6);
|
||||
end;
|
||||
};
|
||||
aText .. {
|
||||
Text="/";
|
||||
InitCommand=function(self)
|
||||
self:x(28);
|
||||
self:y(5);
|
||||
self:vertalign(bottom);
|
||||
self:zoom(0.5);
|
||||
self:diffusealpha(0.5);
|
||||
end;
|
||||
};
|
||||
aText .. {
|
||||
Text=string.format("%04i",tValues["ITG_MAX"]);
|
||||
InitCommand=function(self)
|
||||
self:x(32);
|
||||
self:y(5);
|
||||
self:vertalign(bottom);
|
||||
self:zoom(0.5);
|
||||
end;
|
||||
InitCommand=cmd(zoom,0.875;diffuse,PlayerColor( pnPlayer ));
|
||||
};
|
||||
aLabel .. { Text=THEME:GetString("ScreenEvaluation","ITG DP:"); InitCommand=cmd(x,-64) };
|
||||
aText .. { Text=string.format("%04i",tValues["ITG"]); InitCommand=cmd(x,-8;y,5;vertalign,bottom;zoom,0.6); };
|
||||
aText .. { Text="/"; InitCommand=cmd(x,28;y,5;vertalign,bottom;zoom,0.5;diffusealpha,0.5); };
|
||||
aText .. { Text=string.format("%04i",tValues["ITG_MAX"]); InitCommand=cmd(x,32;y,5;vertalign,bottom;zoom,0.5); };
|
||||
};
|
||||
t[#t+1] = Def.ActorFrame {
|
||||
InitCommand=function(self)
|
||||
self:y(-6);
|
||||
end;
|
||||
InitCommand=cmd(y,-6);
|
||||
LoadActor(THEME:GetPathG("ScreenTitleMenu","PreferenceFrame")) .. {
|
||||
InitCommand=function(self)
|
||||
self:zoom(0.875);
|
||||
self:diffuse(PlayerColor( pnPlayer ));
|
||||
end;
|
||||
};
|
||||
aLabel .. {
|
||||
Text=THEME:GetString("ScreenEvaluation","MIGS DP:");
|
||||
InitCommand=function(self)
|
||||
self:x(-64);
|
||||
end;
|
||||
};
|
||||
aText .. {
|
||||
Text=string.format("%04i",tValues["MIGS"]);
|
||||
InitCommand=function(self)
|
||||
self:x(-8);
|
||||
self:y(5);
|
||||
self:vertalign(bottom);
|
||||
self:zoom(0.6);
|
||||
end;
|
||||
};
|
||||
aText .. {
|
||||
Text="/";
|
||||
InitCommand=function(self)
|
||||
self:x(28);
|
||||
self:y(5);
|
||||
self:vertalign(bottom);
|
||||
self:zoom(0.5);
|
||||
self:diffusealpha(0.5);
|
||||
end;
|
||||
};
|
||||
aText .. {
|
||||
Text=string.format("%04i",tValues["MIGS_MAX"]);
|
||||
InitCommand=function(self)
|
||||
self:x(32);
|
||||
self:y(5);
|
||||
self:vertalign(bottom);
|
||||
self:zoom(0.5);
|
||||
end;
|
||||
InitCommand=cmd(zoom,0.875;diffuse,PlayerColor( pnPlayer ));
|
||||
};
|
||||
aLabel .. { Text=THEME:GetString("ScreenEvaluation","MIGS DP:"); InitCommand=cmd(x,-64) };
|
||||
aText .. { Text=string.format("%04i",tValues["MIGS"]); InitCommand=cmd(x,-8;y,5;vertalign,bottom;zoom,0.6); };
|
||||
aText .. { Text="/"; InitCommand=cmd(x,28;y,5;vertalign,bottom;zoom,0.5;diffusealpha,0.5); };
|
||||
aText .. { Text=string.format("%04i",tValues["MIGS_MAX"]); InitCommand=cmd(x,32;y,5;vertalign,bottom;zoom,0.5); };
|
||||
};
|
||||
return t
|
||||
end;
|
||||
@@ -172,19 +90,11 @@ end;
|
||||
local t = Def.ActorFrame {};
|
||||
GAMESTATE:IsPlayerEnabled(PLAYER_1)
|
||||
t[#t+1] = Def.ActorFrame {
|
||||
InitCommand=function(self)
|
||||
self:hide_if(not GAMESTATE:IsPlayerEnabled(PLAYER_1));
|
||||
self:x(WideScale(math.floor(SCREEN_CENTER_X * 0.3) - 8, math.floor(SCREEN_CENTER_X * 0.5) - 8));
|
||||
self:y(SCREEN_CENTER_Y-34);
|
||||
end;
|
||||
InitCommand=cmd(hide_if,not GAMESTATE:IsPlayerEnabled(PLAYER_1);x,WideScale(math.floor(SCREEN_CENTER_X*0.3)-8,math.floor(SCREEN_CENTER_X*0.5)-8);y,SCREEN_CENTER_Y-34);
|
||||
CreateStats( PLAYER_1 );
|
||||
};
|
||||
t[#t+1] = Def.ActorFrame {
|
||||
InitCommand=function(self)
|
||||
self:hide_if(not GAMESTATE:IsPlayerEnabled(PLAYER_2));
|
||||
self:x(WideScale(math.floor(SCREEN_CENTER_X * 1.7) + 8, math.floor(SCREEN_CENTER_X * 1.5) + 8));
|
||||
self:y(SCREEN_CENTER_Y-34);
|
||||
end;
|
||||
InitCommand=cmd(hide_if,not GAMESTATE:IsPlayerEnabled(PLAYER_2);x,WideScale(math.floor(SCREEN_CENTER_X*1.7)+8,math.floor(SCREEN_CENTER_X*1.5)+8);y,SCREEN_CENTER_Y-34);
|
||||
CreateStats( PLAYER_2 );
|
||||
};
|
||||
return t
|
||||
@@ -0,0 +1,86 @@
|
||||
local ss = STATSMAN:GetCurStageStats();
|
||||
local pss = ss:GetPlayerStageStats('PlayerNumber_P1');
|
||||
local misscount = pss:GetTapNoteScores('TapNoteScore_Miss');
|
||||
local boocount = pss:GetTapNoteScores('TapNoteScore_W5');
|
||||
local goodcount = pss:GetTapNoteScores('TapNoteScore_W4');
|
||||
local greatcount = pss:GetTapNoteScores('TapNoteScore_W3');
|
||||
local perfcount = pss:GetTapNoteScores('TapNoteScore_W2');
|
||||
local marvcount = pss:GetTapNoteScores('TapNoteScore_W1');
|
||||
local minehitcount = pss:GetTapNoteScores('TapNoteScore_HitMine');
|
||||
local minemisscount = pss:GetTapNoteScores('TapNoteScore_AvoidMine');
|
||||
local okcount = pss:GetHoldNoteScores('HoldNoteScore_Held');
|
||||
local ngcount = pss:GetHoldNoteScores('HoldNoteScore_LetGo');
|
||||
local ITGdp = marvcount*7 + perfcount*6 + greatcount*5 + goodcount*4 + boocount*2 + okcount*7
|
||||
local ITGdpmax = (marvcount + perfcount + greatcount + goodcount + boocount + misscount + okcount + ngcount)*7
|
||||
local MIGSdp = marvcount*3 + perfcount*2 + greatcount*1 - boocount*4 - misscount*8 + okcount*6
|
||||
local MIGSdpmax = (marvcount + perfcount + greatcount + goodcount + boocount + misscount)*3 + (okcount + ngcount)*6
|
||||
local histogram = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}
|
||||
local total = 0
|
||||
local maxValue = 0;
|
||||
print("John11length: "..#histogram);
|
||||
|
||||
for i=1,#tTotalJudgmentsSigned do
|
||||
print("John11Timings: "..i.." - "..tTotalJudgmentsSigned[i])
|
||||
local index = math.floor((0.18-tTotalJudgmentsSigned[i])*(#histogram/.36));
|
||||
print("John11Index: "..i.." - "..index)
|
||||
if index >= 0 and index <= #histogram - 1 then
|
||||
histogram[index] = histogram[index] + 1
|
||||
total = total + 1
|
||||
if histogram[index] > maxValue then
|
||||
maxValue = histogram[index]
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
for i=1,#histogram do
|
||||
print("John11Judgments: "..i.." - "..histogram[i])
|
||||
end
|
||||
|
||||
local t = Def.ActorFrame {}
|
||||
t[#t+1] = Def.ActorFrame {
|
||||
InitCommand=cmd(x,SCREEN_CENTER_X/3;y,SCREEN_CENTER_Y);
|
||||
LoadFont("Common Normal") .. {
|
||||
Text="MIGS DP: "..tostring(MIGSdp).."/"..tostring(MIGSdpmax).."\nITG DP: "..tostring(ITGdp).."/"..tostring(ITGdpmax).."\nOffset Avg: "..RoundTo(tTimingDifferenceAverage,5).."\nAbs Offset Avg: "..RoundTo(tTimingDifferenceAbsAverage,5).."\nEarly Taps: "..tEarlyHits.."\nLate Taps: "..tLateHits;
|
||||
InitCommand=cmd(y,-4;shadowlength,1;diffuse,Color("Red");zoom,0.5)
|
||||
};
|
||||
}
|
||||
|
||||
for i=1,#histogram do
|
||||
local offset = -1
|
||||
if i > #histogram/2 then
|
||||
offset = 1
|
||||
end
|
||||
t[#t+1] = Def.Quad {
|
||||
InitCommand=cmd(diffuse,Color("Red");zoomtowidth,300/#histogram-1;zoomtoheight,histogram[#histogram-i]/maxValue*150;x,SCREEN_CENTER_X+100+300/#histogram*i+offset;y,SCREEN_CENTER_Y-histogram[#histogram-i]/maxValue*150/2);
|
||||
}
|
||||
end
|
||||
|
||||
t[#t+1] = Def.Quad {
|
||||
InitCommand=cmd(x,SCREEN_CENTER_X+250;y,SCREEN_CENTER_Y+3;zoomtowidth,300;zoomtoheight,5;diffuse,color("#FFFFFF"));
|
||||
}
|
||||
|
||||
t[#t+1] = Def.Quad {
|
||||
InitCommand=cmd(x,SCREEN_CENTER_X+252;y,SCREEN_CENTER_Y-75;zoomtowidth,1;zoomtoheight,150;diffuse,color("#000000"));
|
||||
}
|
||||
|
||||
|
||||
t[#t+1] = Def.ActorFrame {
|
||||
InitCommand=cmd(x,SCREEN_CENTER_X+125;y,SCREEN_CENTER_Y+15);
|
||||
LoadFont("Common Normal") .. {
|
||||
Text="Early";
|
||||
InitCommand=cmd(shadowlength,1;diffuse,Color("#FF0000");zoom,0.5)
|
||||
};
|
||||
}
|
||||
|
||||
t[#t+1] = Def.ActorFrame {
|
||||
InitCommand=cmd(x,SCREEN_CENTER_X+375;y,SCREEN_CENTER_Y+15);
|
||||
LoadFont("Common Normal") .. {
|
||||
Text="Late";
|
||||
InitCommand=cmd(shadowlength,1;diffuse,Color("#FF0000");zoom,0.5)
|
||||
};
|
||||
}
|
||||
|
||||
print("John11Total: "..total)
|
||||
print("John11MaxValue: "..maxValue)
|
||||
|
||||
return t
|
||||
@@ -1,22 +1,11 @@
|
||||
return Def.ActorFrame {
|
||||
InitCommand=function(self)
|
||||
self:x(SCREEN_CENTER_X);
|
||||
self:y(SCREEN_CENTER_Y);
|
||||
end;
|
||||
InitCommand=cmd(x,SCREEN_CENTER_X;y,SCREEN_CENTER_Y);
|
||||
LoadFont("Common Normal") .. {
|
||||
Text=ScreenString("GAME OVER");
|
||||
InitCommand=function(self)
|
||||
self:y(-4);
|
||||
self:shadowlength(1);
|
||||
self:diffuse(Color("Red"));
|
||||
end;
|
||||
InitCommand=cmd(y,-4;shadowlength,1;diffuse,Color("Red"));
|
||||
};
|
||||
LoadFont("Common Normal") .. {
|
||||
Text=ScreenString("Play again soon!");
|
||||
InitCommand=function(self)
|
||||
self:y(16);
|
||||
self:shadowlength(1);
|
||||
self:zoom(0.5);
|
||||
end;
|
||||
InitCommand=cmd(y,16;shadowlength,1;zoom,0.5;);
|
||||
};
|
||||
};
|
||||
@@ -1,15 +1,6 @@
|
||||
return Def.ActorFrame {
|
||||
Def.Quad{
|
||||
InitCommand=function(self)
|
||||
self:FullScreen();
|
||||
self:diffuse(color("1,0,0,0"));
|
||||
self:blend(Blend.Multiply);
|
||||
end;
|
||||
OnCommand=function(self)
|
||||
self:smooth(1);
|
||||
self:diffuse(color("0.75,0,0,0.75"));
|
||||
self:decelerate(2);
|
||||
self:diffuse(color("0,0,0,1"));
|
||||
end;
|
||||
InitCommand=cmd(FullScreen;diffuse,color("1,0,0,0");blend,Blend.Multiply);
|
||||
OnCommand=cmd(smooth,1;diffuse,color("0.75,0,0,0.75");decelerate,2;diffuse,color("0,0,0,1"));
|
||||
};
|
||||
};
|
||||
@@ -4,22 +4,6 @@ if IsNetSMOnline() then
|
||||
end
|
||||
|
||||
return LoadActor("go") .. {
|
||||
InitCommand=function(self)
|
||||
self:Center();
|
||||
self:draworder(105);
|
||||
end;
|
||||
StartTransitioningCommand=function(self)
|
||||
self:zoom(1.3);
|
||||
self:diffusealpha(0);
|
||||
self:bounceend(0.25);
|
||||
self:zoom(1);
|
||||
self:diffusealpha(1);
|
||||
self:linear(0.15);
|
||||
self:glow(BoostColor(Color("Blue"),1.75));
|
||||
self:decelerate(0.3);
|
||||
self:glow(1, 1, 1, 0);
|
||||
self:sleep(1-0.45);
|
||||
self:linear(0.25);
|
||||
self:diffusealpha(0);
|
||||
end;
|
||||
InitCommand=cmd(Center;draworder,105);
|
||||
StartTransitioningCommand=cmd(zoom,1.3;diffusealpha,0;bounceend,0.25;zoom,1;diffusealpha,1;linear,0.15;glow,BoostColor(Color("Blue"),1.75);decelerate,0.3;glow,1,1,1,0;sleep,1-0.45;linear,0.25;diffusealpha,0;);
|
||||
};
|
||||
@@ -1,12 +1,7 @@
|
||||
local t = Def.ActorFrame {};
|
||||
t[#t+1] = Def.Sprite {
|
||||
InitCommand=function(self)
|
||||
self:Center();
|
||||
self:diffusealpha(1);
|
||||
end;
|
||||
BeginCommand=function(self)
|
||||
self:LoadFromCurrentSongBackground();
|
||||
end;
|
||||
InitCommand=cmd(Center;diffusealpha,1);
|
||||
BeginCommand=cmd(LoadFromCurrentSongBackground);
|
||||
OnCommand=function(self)
|
||||
if PREFSMAN:GetPreference("StretchBackgrounds") then
|
||||
self:SetSize(SCREEN_WIDTH,SCREEN_HEIGHT)
|
||||
|
||||
@@ -36,7 +36,5 @@ if GAMESTATE:GetCurrentCourse() then
|
||||
end
|
||||
end;
|
||||
end;
|
||||
t.InitCommand=function(self)
|
||||
self:SetUpdateFunction(UpdateTime);
|
||||
end;
|
||||
t.InitCommand=cmd(SetUpdateFunction,UpdateTime);
|
||||
return t
|
||||
|
||||
@@ -4,22 +4,6 @@ if IsNetSMOnline() then
|
||||
end
|
||||
|
||||
return LoadActor("ready") .. {
|
||||
InitCommand=function(self)
|
||||
self:Center();
|
||||
self:draworder(105);
|
||||
end;
|
||||
StartTransitioningCommand=function(self)
|
||||
self:zoom(1.3);
|
||||
self:diffusealpha(0);
|
||||
self:bounceend(0.25);
|
||||
self:zoom(1);
|
||||
self:diffusealpha(1);
|
||||
self:linear(0.15);
|
||||
self:glow(BoostColor(Color("Orange"),1.75));
|
||||
self:decelerate(0.3);
|
||||
self:glow(1, 1, 1, 0);
|
||||
self:sleep(1-0.45);
|
||||
self:linear(0.25);
|
||||
self:diffusealpha(0);
|
||||
end;
|
||||
InitCommand=cmd(Center;draworder,105);
|
||||
StartTransitioningCommand=cmd(zoom,1.3;diffusealpha,0;bounceend,0.25;zoom,1;diffusealpha,1;linear,0.15;glow,BoostColor(Color("Orange"),1.75);decelerate,0.3;glow,1,1,1,0;sleep,1-0.45;linear,0.25;diffusealpha,0;);
|
||||
};
|
||||
@@ -1,4 +1,5 @@
|
||||
return Def.ActorFrame {
|
||||
-- InitCommand=cmd(x,SCREEN_RIGHT;y,SCREEN_BOTTOM;draworder,101);
|
||||
StartTransitioningCommand=function(self)
|
||||
MESSAGEMAN:Broadcast("Toasty",{ Time = math.random(1,3) });
|
||||
end
|
||||
|
||||
@@ -15,9 +15,7 @@ for pn=1,#players do
|
||||
end,
|
||||
Def.Quad {
|
||||
InitCommand=function(self)
|
||||
self:fadeleft(0.1);
|
||||
self:faderight(0.1);
|
||||
self:zoomtoheight(SCREEN_HEIGHT);
|
||||
(cmd('fadeleft,0.1;faderight,0.1;zoomtoheight,SCREEN_HEIGHT'))(self)
|
||||
self:zoomtowidth(
|
||||
Center1Player() and SCREEN_WIDTH-32 or SCREEN_CENTER_X-16
|
||||
)
|
||||
|
||||
@@ -1,13 +1,4 @@
|
||||
return LoadActor("bg.png") ..{
|
||||
InitCommand=function(self)
|
||||
self:x(SCREEN_CENTER_X);
|
||||
self:y(SCREEN_CENTER_Y);
|
||||
self:zoomtowidth(SCREEN_WIDTH);
|
||||
self:zoomtoheight(SCREEN_HEIGHT);
|
||||
end;
|
||||
OnCommand=function(self)
|
||||
self:texcoordvelocity(0, -1);
|
||||
self:customtexturerect(0, 0, SCREEN_WIDTH / self:GetWidth(), SCREEN_HEIGHT / self:GetHeight());
|
||||
self:diffuse(color("0.9,0.9,0.9,1"));
|
||||
end;
|
||||
InitCommand=cmd(x,SCREEN_CENTER_X;y,SCREEN_CENTER_Y;zoomtowidth,SCREEN_WIDTH;zoomtoheight,SCREEN_HEIGHT);
|
||||
OnCommand=cmd(texcoordvelocity,0,-1;customtexturerect,0,0,SCREEN_WIDTH/self:GetWidth(),SCREEN_HEIGHT/self:GetHeight();diffuse,color("0.9,0.9,0.9,1"));
|
||||
};
|
||||
@@ -1,16 +1,6 @@
|
||||
return Def.ActorFrame{
|
||||
LoadActor("jumpmessage") .. {
|
||||
InitCommand=function(self)
|
||||
self:x(SCREEN_CENTER_X + 160);
|
||||
self:y(SCREEN_CENTER_Y + 40);
|
||||
self:diffusealpha(0);
|
||||
end;
|
||||
ShowCommand=function(self)
|
||||
self:linear(0);
|
||||
self:diffusealpha(1);
|
||||
self:sleep(1.7);
|
||||
self:linear(0);
|
||||
self:diffusealpha(0);
|
||||
end;
|
||||
InitCommand=cmd(x,SCREEN_CENTER_X+160;y,SCREEN_CENTER_Y+40;diffusealpha,0;);
|
||||
ShowCommand=cmd(linear,0;diffusealpha,1;sleep,1.7;linear,0;diffusealpha,0);
|
||||
};
|
||||
};
|
||||
@@ -1,16 +1,6 @@
|
||||
return Def.ActorFrame{
|
||||
LoadActor("missmessage") .. {
|
||||
InitCommand=function(self)
|
||||
self:x(SCREEN_CENTER_X + 160);
|
||||
self:y(SCREEN_CENTER_Y + 40);
|
||||
self:diffusealpha(0);
|
||||
end;
|
||||
ShowCommand=function(self)
|
||||
self:linear(0);
|
||||
self:diffusealpha(1);
|
||||
self:sleep(22.7);
|
||||
self:linear(0);
|
||||
self:diffusealpha(0);
|
||||
end;
|
||||
InitCommand=cmd(x,SCREEN_CENTER_X+160;y,SCREEN_CENTER_Y+40;diffusealpha,0;);
|
||||
ShowCommand=cmd(linear,0;diffusealpha,1;sleep,22.7;linear,0;diffusealpha,0);
|
||||
};
|
||||
};
|
||||
@@ -1,16 +1,6 @@
|
||||
return Def.ActorFrame{
|
||||
LoadActor("tapmessage") .. {
|
||||
InitCommand=function(self)
|
||||
self:x(SCREEN_CENTER_X + 160);
|
||||
self:y(SCREEN_CENTER_Y + 40);
|
||||
self:diffusealpha(0);
|
||||
end;
|
||||
ShowCommand=function(self)
|
||||
self:linear(0);
|
||||
self:diffusealpha(1);
|
||||
self:sleep(2);
|
||||
self:linear(0);
|
||||
self:diffusealpha(0);
|
||||
end;
|
||||
InitCommand=cmd(x,SCREEN_CENTER_X+160;y,SCREEN_CENTER_Y+40;diffusealpha,0;);
|
||||
ShowCommand=cmd(linear,0;diffusealpha,1;sleep,2;linear,0;diffusealpha,0);
|
||||
};
|
||||
};
|
||||
@@ -1,12 +1,6 @@
|
||||
return Def.ActorFrame{
|
||||
Def.Quad{
|
||||
InitCommand=function(self)
|
||||
self:FullScreen();
|
||||
self:diffuse(color("0,0,0,1"));
|
||||
end;
|
||||
OnCommand=function(self)
|
||||
self:decelerate(0.5);
|
||||
self:diffusealpha(0);
|
||||
end;
|
||||
InitCommand=cmd(FullScreen;diffuse,color("0,0,0,1"));
|
||||
OnCommand=cmd(decelerate,0.5;diffusealpha,0);
|
||||
};
|
||||
};
|
||||
@@ -1,12 +1,6 @@
|
||||
return Def.ActorFrame{
|
||||
Def.Quad{
|
||||
InitCommand=function(self)
|
||||
self:FullScreen();
|
||||
self:diffuse(color("0,0,0,0"));
|
||||
end;
|
||||
OnCommand=function(self)
|
||||
self:accelerate(0.5);
|
||||
self:diffusealpha(1);
|
||||
end;
|
||||
InitCommand=cmd(FullScreen;diffuse,color("0,0,0,0"));
|
||||
OnCommand=cmd(accelerate,0.5;diffusealpha,1);
|
||||
};
|
||||
};
|
||||
@@ -1,8 +1,5 @@
|
||||
return Def.ActorFrame {
|
||||
Def.Quad{
|
||||
InitCommand=function(self)
|
||||
self:scaletocover(-SCREEN_WIDTH * 2, SCREEN_TOP, SCREEN_WIDTH * 2, SCREEN_BOTTOM);
|
||||
self:diffuse(color("0,0,0,0.5"));
|
||||
end;
|
||||
InitCommand=cmd(scaletocover,-SCREEN_WIDTH*2,SCREEN_TOP,SCREEN_WIDTH*2,SCREEN_BOTTOM;diffuse,color("0,0,0,0.5"));
|
||||
};
|
||||
};
|
||||
@@ -4,13 +4,7 @@ local t = Def.ActorFrame{};
|
||||
if GAMESTATE:IsEventMode() then
|
||||
t[#t+1] = LoadFont("Common normal")..{
|
||||
Text=Screen.String("EventMode");
|
||||
InitCommand=function(self)
|
||||
self:CenterX();
|
||||
self:y(SCREEN_BOTTOM - 72);
|
||||
self:zoom(0.75);
|
||||
self:diffuse(HSV(56,0.8,1));
|
||||
self:shadowlength(1);
|
||||
end;
|
||||
InitCommand=cmd(CenterX;y,SCREEN_BOTTOM-72;zoom,0.75;diffuse,HSV(56,0.8,1);shadowlength,1);
|
||||
};
|
||||
end;
|
||||
|
||||
|
||||
@@ -1,29 +1,10 @@
|
||||
return Def.ActorFrame {
|
||||
Def.Quad {
|
||||
InitCommand=function(self)
|
||||
self:horizalign(left);
|
||||
self:vertalign(top);
|
||||
self:y(SCREEN_TOP + 8);
|
||||
end;
|
||||
OnCommand=function(self)
|
||||
self:diffuse(Color.Black);
|
||||
self:diffusealpha(0.5);
|
||||
self:zoomto(256, 84);
|
||||
self:faderight(1);
|
||||
end;
|
||||
InitCommand=cmd(horizalign,left;vertalign,top;y,SCREEN_TOP+8);
|
||||
OnCommand=cmd(diffuse,Color.Black;diffusealpha,0.5;zoomto,256,84;faderight,1);
|
||||
};
|
||||
Def.Quad {
|
||||
InitCommand=function(self)
|
||||
self:horizalign(right);
|
||||
self:vertalign(top);
|
||||
self:x(SCREEN_RIGHT);
|
||||
self:y(SCREEN_TOP+8);
|
||||
end;
|
||||
OnCommand=function(self)
|
||||
self:diffuse(Color.Black);
|
||||
self:diffusealpha(0.5);
|
||||
self:zoomto(256, 46);
|
||||
self:fadeleft(1);
|
||||
end;
|
||||
InitCommand=cmd(horizalign,right;vertalign,top;x,SCREEN_RIGHT;y,SCREEN_TOP+8);
|
||||
OnCommand=cmd(diffuse,Color.Black;diffusealpha,0.5;zoomto,256,46;fadeleft,1);
|
||||
};
|
||||
};
|
||||
@@ -6,27 +6,7 @@ local FullFile = THEME:GetPathB('','_frame files 3x1/'..File )
|
||||
local Frame = LoadActor( FullFile )
|
||||
|
||||
return Def.ActorFrame {
|
||||
Frame .. {
|
||||
InitCommand=function(self)
|
||||
self:setstate(0);
|
||||
self:pause();
|
||||
self:horizalign(right);
|
||||
self:x(-Width / 2);
|
||||
end;
|
||||
};
|
||||
Frame .. {
|
||||
InitCommand=function(self)
|
||||
self:setstate(1);
|
||||
self:pause();
|
||||
self:zoomtowidth(Width);
|
||||
end;
|
||||
};
|
||||
Frame .. {
|
||||
InitCommand=function(self)
|
||||
self:setstate(2);
|
||||
self:pause();
|
||||
self:horizalign(left);
|
||||
self:x(Width / 2);
|
||||
end;
|
||||
};
|
||||
Frame .. { InitCommand=cmd(setstate,0;pause;horizalign,right;x,-Width/2) };
|
||||
Frame .. { InitCommand=cmd(setstate,1;pause;zoomtowidth,Width) };
|
||||
Frame .. { InitCommand=cmd(setstate,2;pause;horizalign,left;x,Width/2) };
|
||||
};
|
||||
|
||||
@@ -1,17 +1,10 @@
|
||||
local t = Def.ActorFrame {};
|
||||
|
||||
t[#t+1] = Def.ActorFrame {
|
||||
InitCommand=function(self)
|
||||
self:Center();
|
||||
end;
|
||||
InitCommand=cmd(Center);
|
||||
Def.Quad {
|
||||
InitCommand=function(self)
|
||||
self:scaletoclipped(SCREEN_WIDTH, SCREEN_HEIGHT);
|
||||
end;
|
||||
OnCommand=function(self)
|
||||
self:diffuse(color("#00bfe8"));
|
||||
self:diffusetopedge(color("#009ad5"));
|
||||
end;
|
||||
InitCommand=cmd(scaletoclipped,SCREEN_WIDTH,SCREEN_HEIGHT);
|
||||
OnCommand=cmd(diffuse,color("#00bfe8");diffusetopedge,color("#009ad5"));
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
return LoadActor(THEME:GetPathG("_combined","life frame"))..{
|
||||
InitCommand=function(self)
|
||||
self:diffuse(PlayerColor(PLAYER_1));
|
||||
self:diffuserightedge(PlayerColor(PLAYER_2));
|
||||
end;
|
||||
InitCommand=cmd(diffuse,PlayerColor(PLAYER_1);diffuserightedge,PlayerColor(PLAYER_2));
|
||||
};
|
||||
@@ -1,9 +1,3 @@
|
||||
return LoadFont("Combo Numbers") .. {
|
||||
InitCommand=function(self)
|
||||
self:zoom(12/54);
|
||||
self:y(-1);
|
||||
self:shadowlengthx(0);
|
||||
self:shadowlengthy(1);
|
||||
self:strokecolor(color("#00000077"));
|
||||
end;
|
||||
InitCommand=cmd(zoom,12/54;y,-1;shadowlengthx,0;shadowlengthy,1;strokecolor,color("#00000077"););
|
||||
};
|
||||
@@ -1,8 +1,6 @@
|
||||
local t = Def.ActorFrame{
|
||||
LoadActor("EditMenu Left")..{
|
||||
BeginCommand=function(self)
|
||||
self:zoomx(-1);
|
||||
end;
|
||||
BeginCommand=cmd(zoomx,-1);
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
@@ -1,14 +1,8 @@
|
||||
return Def.ActorFrame {
|
||||
LoadActor(THEME:GetPathG("MusicWheelItem","Course NormalPart")) .. {
|
||||
InitCommand=function(self)
|
||||
self:glow(color('1,1,1,0.25'));
|
||||
end;
|
||||
InitCommand=cmd(glow,color('1,1,1,0.25'));
|
||||
};
|
||||
LoadActor(THEME:GetPathG("MusicWheelItem","Course NormalPart")) .. {
|
||||
InitCommand=function(self)
|
||||
self:blend(Blend.Add);
|
||||
self:rainbow();
|
||||
self:diffusealpha(0.325);
|
||||
end;
|
||||
InitCommand=cmd(blend,Blend.Add;rainbow;diffusealpha,0.325);
|
||||
};
|
||||
};
|
||||
@@ -5,14 +5,7 @@ local record = stats:GetMachineHighScoreIndex()
|
||||
local hasMachineRecord = record ~= -1
|
||||
|
||||
return LoadFont("Common normal")..{
|
||||
InitCommand=function(self)
|
||||
self:zoom(0.55);
|
||||
self:shadowlength(1);
|
||||
self:NoStroke();
|
||||
self:glowshift();
|
||||
self:effectcolor1(color("1,1,1,0"));
|
||||
self:effectcolor2(color("1,1,1,0.25"));
|
||||
end;
|
||||
InitCommand=cmd(zoom,0.55;shadowlength,1;NoStroke;glowshift;effectcolor1,color("1,1,1,0");effectcolor2,color("1,1,1,0.25"));
|
||||
BeginCommand=function(self)
|
||||
self:visible(hasMachineRecord);
|
||||
local text = string.format(THEME:GetString("ScreenEvaluation", "MachineRecord"), record+1)
|
||||
|
||||
@@ -5,14 +5,7 @@ local record = stats:GetPersonalHighScoreIndex()
|
||||
local hasPersonalRecord = record ~= -1
|
||||
|
||||
return LoadFont("Common normal")..{
|
||||
InitCommand=function(self)
|
||||
self:zoom(0.55);
|
||||
self:shadowlength(1);
|
||||
self:NoStroke();
|
||||
self:glowshift();
|
||||
self:effectcolor1(color("1,1,1,0"));
|
||||
self:effectcolor2(color("1,1,1,0.25"));
|
||||
end;
|
||||
InitCommand=cmd(zoom,0.55;shadowlength,1;NoStroke;glowshift;effectcolor1,color("1,1,1,0");effectcolor2,color("1,1,1,0.25"));
|
||||
BeginCommand=function(self)
|
||||
self:visible(hasPersonalRecord);
|
||||
local text = string.format(THEME:GetString("ScreenEvaluation", "PersonalRecord"), record+1)
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
return LoadFont("ScreenGameplay","SongTitle") .. {
|
||||
CurrentSongChangedMessageCommand=function(self)
|
||||
self:playcommand("Refresh");
|
||||
end;
|
||||
CurrentSongChangedMessageCommand=cmd(playcommand,"Refresh");
|
||||
RefreshCommand=function(self)
|
||||
local vSong = GAMESTATE:GetCurrentSong();
|
||||
local vCourse = GAMESTATE:GetCurrentCourse();
|
||||
|
||||
@@ -18,11 +18,7 @@ local t = Def.ActorFrame {};
|
||||
t[#t+1] = Def.ActorFrame {
|
||||
LoadActor(THEME:GetPathB("_frame","3x3"),"rounded black",64,16);
|
||||
LoadFont("Common Normal") .. {
|
||||
InitCommand=function(self)
|
||||
self:y(-1);
|
||||
self:shadowlength(1);
|
||||
self:playcommand("Set");
|
||||
end;
|
||||
InitCommand=cmd(y,-1;shadowlength,1;playcommand,"Set");
|
||||
SetCommand=function(self)
|
||||
if GAMESTATE:GetCurrentCourse() then
|
||||
self:settext( GAMESTATE:GetCurrentStageIndex()+1 .. " / " .. GAMESTATE:GetCurrentCourse():GetEstimatedNumStages() );
|
||||
|
||||
@@ -1,8 +1,5 @@
|
||||
return Def.ActorFrame{
|
||||
Def.Quad{
|
||||
InitCommand=function(self)
|
||||
self:zoomto(THEME:GetMetric(Var "LoadingScreen","ChatInputBoxWidth"), THEME:GetMetric(Var "LoadingScreen","ChatInputBoxHeight"));
|
||||
self:diffuse(color("0,0,0,0.25"));
|
||||
end;
|
||||
InitCommand=cmd(zoomto,THEME:GetMetric(Var "LoadingScreen","ChatInputBoxWidth"),THEME:GetMetric(Var "LoadingScreen","ChatInputBoxHeight");diffuse,color("0,0,0,0.25"));
|
||||
};
|
||||
};
|
||||
@@ -1,8 +1,5 @@
|
||||
return Def.ActorFrame{
|
||||
Def.Quad{
|
||||
InitCommand=function(self)
|
||||
self:zoomto(THEME:GetMetric(Var "LoadingScreen","ChatOutputBoxWidth"), THEME:GetMetric(Var "LoadingScreen","ChatOutputBoxHeight"));
|
||||
self:diffuse(color("0,0,0,0.25"));
|
||||
end;
|
||||
InitCommand=cmd(zoomto,THEME:GetMetric(Var "LoadingScreen","ChatOutputBoxWidth"),THEME:GetMetric(Var "LoadingScreen","ChatOutputBoxHeight");diffuse,color("0,0,0,0.25"));
|
||||
};
|
||||
};
|
||||
@@ -2,10 +2,6 @@ return Def.BPMDisplay {
|
||||
File=THEME:GetPathF("BPMDisplay", "bpm");
|
||||
Name="BPMDisplay";
|
||||
SetCommand=function(self) self:SetFromGameState() end;
|
||||
CurrentSongChangedMessageCommand=function(self)
|
||||
self:playcommand("Set");
|
||||
end;
|
||||
CurrentCourseChangedMessageCommand=function(self)
|
||||
self:playcommand("Set");
|
||||
end;
|
||||
CurrentSongChangedMessageCommand=cmd(playcommand,"Set");
|
||||
CurrentCourseChangedMessageCommand=cmd(playcommand,"Set");
|
||||
};
|
||||
@@ -1,10 +1,6 @@
|
||||
return Def.ActorFrame {
|
||||
LoadFont("Common Normal") .. {
|
||||
Text="BPM";
|
||||
InitCommand=function(self)
|
||||
self:horizalign(right);
|
||||
self:zoom(0.75);
|
||||
self:strokecolor(Color("Outline"));
|
||||
end;
|
||||
InitCommand=cmd(horizalign,right;zoom,0.75;strokecolor,Color("Outline"));
|
||||
};
|
||||
};
|
||||
@@ -1,5 +1,3 @@
|
||||
return Def.Quad {
|
||||
InitCommand=function(self)
|
||||
self:zoomto(SCREEN_WIDTH,64);
|
||||
end;
|
||||
InitCommand=cmd(zoomto,SCREEN_WIDTH,64);
|
||||
};
|
||||
@@ -1,15 +1,8 @@
|
||||
return Def.ActorFrame {
|
||||
LoadActor(THEME:GetPathG("OptionRowExit","frame")) .. {
|
||||
InitCommand=function(self)
|
||||
self:diffusebottomedge(Color("Orange"));
|
||||
end;
|
||||
InitCommand=cmd(diffusebottomedge,Color("Orange"));
|
||||
};
|
||||
LoadActor(THEME:GetPathG("_icon","Sort")) .. {
|
||||
InitCommand=function(self)
|
||||
self:x(-60);
|
||||
self:shadowlength(1);
|
||||
self:diffuse(Color("Orange"));
|
||||
self:diffusetopedge(Color("Yellow"));
|
||||
end;
|
||||
InitCommand=cmd(x,-60;shadowlength,1;diffuse,Color("Orange");diffusetopedge,Color("Yellow"));
|
||||
};
|
||||
};
|
||||
@@ -4,12 +4,8 @@ t[#t+1] = Def.ActorFrame {
|
||||
GainFocusCommand=THEME:GetMetric(Var "LoadingScreen","IconGainFocusCommand");
|
||||
LoseFocusCommand=THEME:GetMetric(Var "LoadingScreen","IconLoseFocusCommand");
|
||||
LoadActor(THEME:GetPathG("_SelectIcon",gc:GetName() )) .. {
|
||||
DisabledCommand=function(self)
|
||||
self:diffuse(color("0.5,0.5,0.5,1"));
|
||||
end;
|
||||
EnabledCommand=function(self)
|
||||
self:diffuse(color("1,1,1,1"));
|
||||
end;
|
||||
DisabledCommand=cmd(diffuse,color("0.5,0.5,0.5,1"));
|
||||
EnabledCommand=cmd(diffuse,color("1,1,1,1"));
|
||||
};
|
||||
};
|
||||
return t
|
||||
@@ -2,13 +2,8 @@ return Def.ActorFrame {
|
||||
LoadFont("Common Normal") .. {
|
||||
Text=GetLifeDifficulty();
|
||||
AltText="";
|
||||
InitCommand=function(self)
|
||||
self:horizalign(left);
|
||||
self:zoom(0.675);
|
||||
end;
|
||||
OnCommand=function(self)
|
||||
self:shadowlength(1);
|
||||
end;
|
||||
InitCommand=cmd(horizalign,left;zoom,0.675);
|
||||
OnCommand=cmd(shadowlength,1);
|
||||
BeginCommand=function(self)
|
||||
self:settextf( Screen.String("LifeDifficulty"), "" );
|
||||
end
|
||||
@@ -16,14 +11,7 @@ return Def.ActorFrame {
|
||||
LoadFont("Common Normal") .. {
|
||||
Text=GetLifeDifficulty();
|
||||
AltText="";
|
||||
InitCommand=function(self)
|
||||
self:x(136);
|
||||
self:zoom(0.675);
|
||||
self:halign(0);
|
||||
end;
|
||||
OnCommand=function(self)
|
||||
self:shadowlength(1);
|
||||
self:skewx(-0.125);
|
||||
end;
|
||||
InitCommand=cmd(x,136;zoom,0.675;halign,0);
|
||||
OnCommand=cmd(shadowlength,1;skewx,-0.125);
|
||||
};
|
||||
};
|
||||
@@ -2,24 +2,13 @@ return Def.ActorFrame {
|
||||
LoadFont("Common Normal") .. {
|
||||
Text=string.format("%s %s", ProductFamily(), ProductVersion());
|
||||
AltText="StepMania";
|
||||
InitCommand=function(self)
|
||||
self:zoom(0.675);
|
||||
end;
|
||||
OnCommand=function(self)
|
||||
self:horizalign(right);
|
||||
self:shadowlength(1);
|
||||
end;
|
||||
InitCommand=cmd(zoom,0.675);
|
||||
OnCommand=cmd(horizalign,right;shadowlength,1);
|
||||
};
|
||||
LoadFont("Common Normal") .. {
|
||||
Text=string.format("%s", VersionDate());
|
||||
AltText="Unknown Version";
|
||||
InitCommand=function(self)
|
||||
self:y(16);
|
||||
self:zoom(0.5);
|
||||
end;
|
||||
OnCommand=function(self)
|
||||
self:horizalign(right);
|
||||
self:shadowlength(1);
|
||||
end;
|
||||
InitCommand=cmd(y,16;zoom,0.5);
|
||||
OnCommand=cmd(horizalign,right;shadowlength,1);
|
||||
};
|
||||
};
|
||||
@@ -1,11 +1,7 @@
|
||||
local t = Def.ActorFrame {
|
||||
Def.Quad {
|
||||
InitCommand=function(self)
|
||||
self:zoomto(32, 32);
|
||||
end;
|
||||
OnCommand=function(self)
|
||||
self:spin();
|
||||
end;
|
||||
InitCommand=cmd(zoomto,32,32);
|
||||
OnCommand=cmd(spin);
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
@@ -1,30 +1,14 @@
|
||||
local t = Def.ActorFrame{
|
||||
InitCommand=function(self)
|
||||
self:fov(70);
|
||||
end;
|
||||
InitCommand=cmd(fov,70);
|
||||
LoadActor("_arrow")..{
|
||||
InitCommand=function(self)
|
||||
self:x(225);
|
||||
end;
|
||||
OnCommand=function(self)
|
||||
self:wag();
|
||||
self:effectmagnitude(0, 0, 16);
|
||||
self:effectperiod(2.5);
|
||||
end;
|
||||
InitCommand=cmd(x,225;);
|
||||
OnCommand=cmd(wag;effectmagnitude,0,0,16;effectperiod,2.5;);
|
||||
};
|
||||
LoadActor("_text");
|
||||
LoadActor("_text")..{
|
||||
Name="TextGlow";
|
||||
InitCommand=function(self)
|
||||
self:blend(Blend.Add);
|
||||
self:diffusealpha(0.05);
|
||||
end;
|
||||
OnCommand=function(self)
|
||||
self:glowshift();
|
||||
self:effectperiod(2.5);
|
||||
self:effectcolor1(color("1,1,1,0.25"));
|
||||
self:effectcolor2(color("1,1,1,1"));
|
||||
end;
|
||||
InitCommand=cmd(blend,Blend.Add;diffusealpha,0.05;);
|
||||
OnCommand=cmd(glowshift;effectperiod,2.5;effectcolor1,color("1,1,1,0.25");effectcolor2,color("1,1,1,1"););
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
@@ -1,11 +1,7 @@
|
||||
local t = Def.ActorFrame {};
|
||||
|
||||
t[#t+1] = Def.Quad {
|
||||
InitCommand=function(self)
|
||||
self:vertalign(bottom);
|
||||
self:zoomto(SCREEN_WIDTH + 1, 34);
|
||||
self:diffuse(Color.Black);
|
||||
end;
|
||||
InitCommand=cmd(vertalign,bottom;zoomto,SCREEN_WIDTH+1,34;diffuse,Color.Black);
|
||||
};
|
||||
|
||||
return t;
|
||||
@@ -6,10 +6,7 @@ local t = Def.ActorFrame {};
|
||||
t[#t+1] = Def.ActorFrame {
|
||||
LoadActor(THEME:GetPathB("_frame","3x3"),"rounded black",64,12);
|
||||
LoadFont("Common Normal") .. {
|
||||
InitCommand=function(self)
|
||||
self:y(-1);
|
||||
self:shadowlength(1);
|
||||
end;
|
||||
InitCommand=cmd(y,-1;shadowlength,1;);
|
||||
BeginCommand=function(self)
|
||||
local top = SCREENMAN:GetTopScreen()
|
||||
if top then
|
||||
|
||||
@@ -2,9 +2,7 @@ local t = Def.ActorFrame {};
|
||||
|
||||
t[#t+1] = Def.ActorFrame {
|
||||
Def.Quad {
|
||||
InitCommand=function(self)
|
||||
self:zoomto(32,32);
|
||||
end;
|
||||
InitCommand=cmd(zoomto,32,32);
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
@@ -2,9 +2,7 @@ local sString;
|
||||
local t = Def.ActorFrame{
|
||||
|
||||
LoadFont("Common normal")..{
|
||||
InitCommand=function(self)
|
||||
self:shadowlength(1);
|
||||
end;
|
||||
InitCommand=cmd(shadowlength,1);
|
||||
SetMessageCommand=function(self,param)
|
||||
if param.StepsType then
|
||||
sString = THEME:GetString("StepsDisplay StepsType",ToEnumShortString(param.StepsType));
|
||||
@@ -17,6 +15,15 @@ local t = Def.ActorFrame{
|
||||
end;
|
||||
end;
|
||||
};
|
||||
-- argh this isn't working as nicely as I would've hoped...
|
||||
--[[
|
||||
Def.Sprite{
|
||||
SetMessageCommand=function(self,param)
|
||||
self:Load( THEME:GetPathG("","_StepsType/"..ToEnumShortString(param.StepsType)) );
|
||||
self:diffusealpha(0.5);
|
||||
end;
|
||||
};
|
||||
--]]
|
||||
};
|
||||
|
||||
return t;
|
||||
@@ -1,31 +1,16 @@
|
||||
local t = Def.ActorFrame{};
|
||||
|
||||
t[#t+1] = LoadActor("_badge") .. {
|
||||
InitCommand=function(self)
|
||||
self:shadowlength(1);
|
||||
self:diffuse(Color.Green);
|
||||
self:pulse();
|
||||
self:effectmagnitude(0.875, 1, 1);
|
||||
self:effecttiming(0, 0, 1, 0);
|
||||
self:effectclock('beatnooffset');
|
||||
self:effectperiod(2);
|
||||
end;
|
||||
InitCommand=cmd(shadowlength,1;diffuse,Color.Green;pulse;effectmagnitude,0.875,1,1;effecttiming,0,0,1,0
|
||||
effectclock,'beatnooffset';effectperiod,2);
|
||||
};
|
||||
t[#t+1] = Def.Quad {
|
||||
InitCommand=function(self)
|
||||
self:zoomto(40, 20);
|
||||
self:diffuse(Color.Black);
|
||||
self:diffusealpha(0.5);
|
||||
self:fadeleft(0.25);
|
||||
self:faderight(0.25);
|
||||
end;
|
||||
InitCommand=cmd(zoomto,40,20;diffuse,Color.Black;
|
||||
diffusealpha,0.5;fadeleft,0.25;faderight,0.25);
|
||||
};
|
||||
t[#t+1] = LoadFont("Common","Normal") .. {
|
||||
Text="AG";
|
||||
InitCommand=function(self)
|
||||
self:shadowlength(1);
|
||||
self:zoom(0.875);
|
||||
end;
|
||||
InitCommand=cmd(shadowlength,1;zoom,0.875);
|
||||
};
|
||||
|
||||
return t;
|
||||
@@ -1,12 +1,10 @@
|
||||
local sString;
|
||||
local t = Def.ActorFrame{
|
||||
--[[ LoadActor("TestStep") .. {
|
||||
InitCommand=cmd(zoomto,20,20);
|
||||
}; --]]
|
||||
LoadFont("Common normal")..{
|
||||
InitCommand=function(self)
|
||||
self:shadowlength(1);
|
||||
self:horizalign(left);
|
||||
self:zoom(0.45);
|
||||
self:skewx(-0.125);
|
||||
end;
|
||||
InitCommand=cmd(shadowlength,1;horizalign,left;zoom,0.45;skewx,-0.125);
|
||||
SetMessageCommand=function(self,param)
|
||||
sString = THEME:GetString("StepsListDisplayRow StepsType",ToEnumShortString(param.StepsType));
|
||||
if param.Steps and param.Steps:IsAutogen() then
|
||||
@@ -17,6 +15,15 @@ local t = Def.ActorFrame{
|
||||
self:settext( sString );
|
||||
end;
|
||||
};
|
||||
-- argh this isn't working as nicely as I would've hoped...
|
||||
--[[
|
||||
Def.Sprite{
|
||||
SetMessageCommand=function(self,param)
|
||||
self:Load( THEME:GetPathG("","_StepsType/"..ToEnumShortString(param.StepsType)) );
|
||||
self:diffusealpha(0.5);
|
||||
end;
|
||||
};
|
||||
--]]
|
||||
};
|
||||
|
||||
return t;
|
||||
@@ -2,6 +2,10 @@ local mainMaxWidth = 228; -- zoom w/subtitle is 0.75 (multiply by 1.25)
|
||||
local subMaxWidth = 420; -- zoom is 0.6 (multiply zoom,1 value by 1.4)
|
||||
local artistMaxWidth = 300/0.8;
|
||||
|
||||
--[[
|
||||
-- The old (cmd(blah))(Actor) syntax is hard to read.
|
||||
-- This is longer, but much easier to read. - Colby
|
||||
--]]
|
||||
function TextBannerAfterSet(self,param)
|
||||
local Title = self:GetChild("Title")
|
||||
local Subtitle = self:GetChild("Subtitle")
|
||||
|
||||
@@ -1197,12 +1197,7 @@ DescriptionSetCommand=%function(self,param) \
|
||||
self:diffuse(CustomDifficultyToColor(param.CustomDifficulty)); \
|
||||
self:shadowcolor(CustomDifficultyToDarkColor(param.CustomDifficulty)); \
|
||||
end; \
|
||||
self:finishtweening(); \
|
||||
self:diffusealpha(0); \
|
||||
self:addx(-4); \
|
||||
self:smooth(0.125); \
|
||||
self:addx(4); \
|
||||
self:diffusealpha(1); \
|
||||
(cmd(finishtweening;diffusealpha,0;addx,-4;smooth,0.125;addx,4;diffusealpha,1))(self); \
|
||||
end;
|
||||
#
|
||||
ShowAutogen=false
|
||||
|
||||
Reference in New Issue
Block a user