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