@@ -1,11 +1,4 @@
|
|||||||
return Def.Quad {
|
return Def.Quad {
|
||||||
InitCommand=function(self)
|
InitCommand=cmd(diffuse,color("#000000");stretchto,SCREEN_LEFT,SCREEN_TOP,SCREEN_RIGHT,SCREEN_BOTTOM);
|
||||||
self:diffuse(color("#000000"));
|
StartTransitioningCommand=cmd(diffusealpha,1;linear,0.3;diffusealpha,0);
|
||||||
self:stretchto(SCREEN_LEFT, SCREEN_TOP, SCREEN_RIGHT, SCREEN_BOTTOM);
|
|
||||||
end;
|
|
||||||
StartTransitioningCommand=function(self)
|
|
||||||
self:diffusealpha(1);
|
|
||||||
self:linear(0.3);
|
|
||||||
self:diffusealpha(0);
|
|
||||||
end;
|
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,12 +1,5 @@
|
|||||||
local t = Def.Quad {
|
local t = Def.Quad {
|
||||||
InitCommand=function(self)
|
InitCommand=cmd(diffuse,color("#000000");stretchto,SCREEN_LEFT,SCREEN_TOP,SCREEN_RIGHT,SCREEN_BOTTOM);
|
||||||
self:diffuse(color("#000000"));
|
StartTransitioningCommand=cmd(diffusealpha,0;linear,0.3;diffusealpha,1);
|
||||||
self:stretchto(SCREEN_LEFT, SCREEN_TOP, SCREEN_RIGHT, SCREEN_BOTTOM);
|
|
||||||
end;
|
|
||||||
StartTransitioningCommand=function(self)
|
|
||||||
self:diffusealpha(0);
|
|
||||||
self:linear(0.3);
|
|
||||||
self:diffusealpha(1);
|
|
||||||
end;
|
|
||||||
};
|
};
|
||||||
return t;
|
return t;
|
||||||
|
|||||||
@@ -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;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -6,90 +6,13 @@ assert( Height );
|
|||||||
local FullFile = THEME:GetPathB('','_frame files 3x3/'..File )
|
local FullFile = THEME:GetPathB('','_frame files 3x3/'..File )
|
||||||
local Frame = LoadActor( FullFile )
|
local Frame = LoadActor( FullFile )
|
||||||
return Def.ActorFrame {
|
return Def.ActorFrame {
|
||||||
Frame .. {
|
Frame .. { InitCommand=cmd(setstate,0;pause;horizalign,right;vertalign,bottom;x,-Width/2;y,-Height/2) };
|
||||||
InitCommand=function(self)
|
Frame .. { InitCommand=cmd(setstate,1;pause;zoomtowidth,Width;vertalign,bottom;zoomtowidth,Width;y,-Height/2) };
|
||||||
self:setstate(0);
|
Frame .. { InitCommand=cmd(setstate,2;pause;horizalign,left;vertalign,bottom;x,Width/2;y,-Height/2) };
|
||||||
self:pause();
|
Frame .. { InitCommand=cmd(setstate,3;pause;horizalign,right;x,-Width/2;zoomtoheight,Height) };
|
||||||
self:horizalign(right);
|
Frame .. { InitCommand=cmd(setstate,4;pause;zoomtowidth,Width;zoomtoheight,Height) };
|
||||||
self:vertalign(bottom);
|
Frame .. { InitCommand=cmd(setstate,5;pause;horizalign,left;x,Width/2;zoomtoheight,Height) };
|
||||||
self:x(-Width / 2);
|
Frame .. { InitCommand=cmd(setstate,6;pause;horizalign,right;vertalign,top;x,-Width/2;y,Height/2) };
|
||||||
self:y(-Height / 2);
|
Frame .. { InitCommand=cmd(setstate,7;pause;zoomtowidth,Width;vertalign,top;zoomtowidth,Width;y,Height/2) };
|
||||||
end;
|
Frame .. { InitCommand=cmd(setstate,8;pause;horizalign,left;vertalign,top;x,Width/2;y,Height/2) };
|
||||||
};
|
|
||||||
Frame .. {
|
|
||||||
InitCommand=function(self)
|
|
||||||
self:setstate(1);
|
|
||||||
self:pause();
|
|
||||||
self:zoomtowidth(Width);
|
|
||||||
self:vertalign(bottom);
|
|
||||||
self:zoomtowidth(Width);
|
|
||||||
self:y(-Height / 2);
|
|
||||||
end;
|
|
||||||
};
|
|
||||||
Frame .. {
|
|
||||||
InitCommand=function(self)
|
|
||||||
self:setstate(2);
|
|
||||||
self:pause();
|
|
||||||
self:horizalign(left);
|
|
||||||
self:vertalign(bottom);
|
|
||||||
self:x(Width / 2);
|
|
||||||
self:y(-Height / 2);
|
|
||||||
end;
|
|
||||||
};
|
|
||||||
Frame .. {
|
|
||||||
InitCommand=function(self)
|
|
||||||
self:setstate(3);
|
|
||||||
self:pause();
|
|
||||||
self:horizalign(right);
|
|
||||||
self:x(-Width / 2);
|
|
||||||
self:zoomtoheight(Height);
|
|
||||||
end;
|
|
||||||
};
|
|
||||||
Frame .. {
|
|
||||||
InitCommand=function(self)
|
|
||||||
self:setstate(4);
|
|
||||||
self:pause();
|
|
||||||
self:zoomtowidth(Width);
|
|
||||||
self:zoomtoheight(Height);
|
|
||||||
end;
|
|
||||||
};
|
|
||||||
Frame .. {
|
|
||||||
InitCommand=function(self)
|
|
||||||
self:setstate(5);
|
|
||||||
self:pause();
|
|
||||||
self:horizalign(left);
|
|
||||||
self:x(Width / 2);
|
|
||||||
self:(zoomtoheight(Height);
|
|
||||||
end;
|
|
||||||
};
|
|
||||||
Frame .. {
|
|
||||||
InitCommand=function(self)
|
|
||||||
self:setstate(6);
|
|
||||||
self:pause();
|
|
||||||
self:horizalign(right);
|
|
||||||
self:vertalign(top);
|
|
||||||
self:x(-Width / 2);
|
|
||||||
self:y(Height / 2);
|
|
||||||
end;
|
|
||||||
};
|
|
||||||
Frame .. {
|
|
||||||
InitCommand=function(self)
|
|
||||||
self:setstate(7);
|
|
||||||
self:pause();
|
|
||||||
self:zoomtowidth(Width);
|
|
||||||
self:vertalign(top);
|
|
||||||
self:zoomtowidth(Width);
|
|
||||||
self:y(Height / 2);
|
|
||||||
end;
|
|
||||||
};
|
|
||||||
Frame .. {
|
|
||||||
InitCommand=function(self)
|
|
||||||
self:setstate(8);
|
|
||||||
self:pause();
|
|
||||||
self:horizalign(left);
|
|
||||||
self:vertalign(top);
|
|
||||||
self:x(Width / 2);
|
|
||||||
self:y(Height / 2);
|
|
||||||
end;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,16 +1,8 @@
|
|||||||
return Def.ActorFrame {
|
return Def.ActorFrame {
|
||||||
LoadActor( THEME:GetPathS("", "_swoosh normal") ) .. {
|
LoadActor( THEME:GetPathS("", "_swoosh normal") ) .. {
|
||||||
|
--StartTransitioningCommand=cmd(play);
|
||||||
};
|
};
|
||||||
LoadActor("_moveon") .. {
|
LoadActor("_moveon") .. {
|
||||||
OnCommand=function(self)
|
OnCommand=cmd(x,SCREEN_CENTER_X;y,SCREEN_CENTER_Y;diffusealpha,1;linear,0.2;diffusealpha,0;zoomx,1;zoomy,0;);
|
||||||
self:x(SCREEN_CENTER_X);
|
|
||||||
self:y(SCREEN_CENTER_Y);
|
|
||||||
self:diffusealpha(1);
|
|
||||||
self:linear(0.2);
|
|
||||||
self:diffusealpha(0);
|
|
||||||
self:zoomx(1);
|
|
||||||
self:zoomy(0);
|
|
||||||
end;
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,18 +1,8 @@
|
|||||||
return Def.ActorFrame {
|
return Def.ActorFrame {
|
||||||
LoadActor( THEME:GetPathS("", "_swoosh normal") ) .. {
|
LoadActor( THEME:GetPathS("", "_swoosh normal") ) .. {
|
||||||
|
--StartTransitioningCommand=cmd(play);
|
||||||
};
|
};
|
||||||
LoadActor("_moveon") .. {
|
LoadActor("_moveon") .. {
|
||||||
OnCommand=function(self)
|
OnCommand=cmd(hibernate,0.1;x,SCREEN_CENTER_X;y,SCREEN_CENTER_Y;zoomx,1;zoomy,0;diffusealpha,0;linear,0.35;diffusealpha,1;zoom,1);
|
||||||
self:hibernate(0.1);
|
|
||||||
self:x(SCREEN_CENTER_X);
|
|
||||||
self:y(SCREEN_CENTER_Y);
|
|
||||||
self:zoomx(1);
|
|
||||||
self:zoomy(0);
|
|
||||||
self:diffusealpha(0);
|
|
||||||
self:linear(0.35);
|
|
||||||
self:diffusealpha(1);
|
|
||||||
self:zoom(1);
|
|
||||||
end;
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -2,9 +2,7 @@ local t = Def.ActorFrame { };
|
|||||||
|
|
||||||
t[#t+1] = LoadActor( THEME:GetPathB("","_shared background normal") );
|
t[#t+1] = LoadActor( THEME:GetPathB("","_shared background normal") );
|
||||||
t[#t+1] = LoadActor( THEME:GetPathB("","_fade in normal") ) .. {
|
t[#t+1] = LoadActor( THEME:GetPathB("","_fade in normal") ) .. {
|
||||||
OnCommand=function(self)
|
OnCommand=cmd(playcommand,"StartTransitioning");
|
||||||
self:playcommand("StartTransitioning");
|
|
||||||
end;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
return t;
|
return t;
|
||||||
|
|||||||
@@ -1,32 +1,10 @@
|
|||||||
return LoadFont("Common Normal") .. {
|
return LoadFont("Common Normal") .. {
|
||||||
Text="Exit";
|
Text="Exit";
|
||||||
InitCommand=function(self)
|
InitCommand=cmd(x,SCREEN_CENTER_X;zoom,0.75;shadowlength,0;diffuse,color("#808080"));
|
||||||
self:x(SCREEN_CENTER_X);
|
OnCommand=cmd(diffusealpha,0;decelerate,0.5;diffusealpha,1);
|
||||||
self:zoom(0.75);
|
OffCommand=cmd(stoptweening;accelerate,0.3;diffusealpha,0;queuecommand,"Hide");
|
||||||
self:shadowlength(0);
|
HideCommand=cmd(visible,false);
|
||||||
self:diffuse(color("#808080"));
|
|
||||||
end;
|
|
||||||
OnCommand=function(self)
|
|
||||||
self:diffusealpha(0);
|
|
||||||
self:decelerate(0.5);
|
|
||||||
self:diffusealpha(1);
|
|
||||||
end;
|
|
||||||
OffCommand=function(self)
|
|
||||||
self:stoptweening();
|
|
||||||
self:accelerate(0.3);
|
|
||||||
self:diffusealpha(0);
|
|
||||||
self:queuecommand("Hide");
|
|
||||||
end;
|
|
||||||
HideCommand=function(self)
|
|
||||||
self:visible(false);
|
|
||||||
end;
|
|
||||||
|
|
||||||
GainFocusCommand=function(self)
|
GainFocusCommand=cmd(diffuseshift;effectcolor2,color("#808080");effectcolor1,color("#FFFFFF"));
|
||||||
self:diffuseshift();
|
LoseFocusCommand=cmd(stopeffect);
|
||||||
self:effectcolor2(color("#808080"));
|
|
||||||
self:effectcolor1(color("#FFFFFF"));
|
|
||||||
end;
|
|
||||||
LoseFocusCommand=function(self)
|
|
||||||
self:stopeffect();
|
|
||||||
end;
|
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user