More lua to fix.
This commit is contained in:
@@ -2,9 +2,18 @@ local Color1 = color(Var "Color1");
|
|||||||
|
|
||||||
local t = Def.ActorFrame {
|
local t = Def.ActorFrame {
|
||||||
LoadActor(Var "File1") .. {
|
LoadActor(Var "File1") .. {
|
||||||
OnCommand=cmd(x,SCREEN_CENTER_X;y,SCREEN_CENTER_Y;diffuse,Color1;effectclock,"music");
|
OnCommand=function(self)
|
||||||
GainFocusCommand=cmd(play);
|
self:x(SCREEN_CENTER_X);
|
||||||
LoseFocusCommand=cmd(pause);
|
self:y(SCREEN_CENTER_Y);
|
||||||
|
self:diffuse(Color1);
|
||||||
|
self:effectclock("music");
|
||||||
|
end;
|
||||||
|
GainFocusCommand=function(self)
|
||||||
|
self:play();
|
||||||
|
end;
|
||||||
|
LoseFocusCommand=function(self)
|
||||||
|
self:pause();
|
||||||
|
end;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -1,16 +1,45 @@
|
|||||||
local Color1 = color(Var "Color1");
|
local Color1 = color(Var "Color1");
|
||||||
|
|
||||||
local a = LoadActor(Var "File1") .. {
|
local a = LoadActor(Var "File1") .. {
|
||||||
OnCommand=cmd(cropto,SCREEN_WIDTH/2;zoomtoheight,SCREEN_HEIGHT/2;diffuse,Color1;effectclock,"music");
|
OnCommand=function(self)
|
||||||
GainFocusCommand=cmd(play);
|
self:cropto(SCREEN_WIDTH / 2);
|
||||||
LoseFocusCommand=cmd(pause);
|
self:zoomtoheight(SCREEN_HEIGHT / 2);
|
||||||
|
self:diffuse(Color1);
|
||||||
|
self:effectclock("music");
|
||||||
|
end;
|
||||||
|
GainFocusCommand=function(self)
|
||||||
|
self:play();
|
||||||
|
end;
|
||||||
|
LoseFocusCommand=function(self)
|
||||||
|
self:pause();
|
||||||
|
end;
|
||||||
};
|
};
|
||||||
|
|
||||||
local t = Def.ActorFrame {
|
local t = Def.ActorFrame {
|
||||||
a .. { OnCommand=cmd(x,scale(1,0,4,SCREEN_LEFT,SCREEN_RIGHT);y,scale(1,0,4,SCREEN_TOP,SCREEN_BOTTOM)); };
|
a .. {
|
||||||
a .. { OnCommand=cmd(x,scale(3,0,4,SCREEN_LEFT,SCREEN_RIGHT);y,scale(1,0,4,SCREEN_TOP,SCREEN_BOTTOM)); };
|
OnCommand = function(self)
|
||||||
a .. { OnCommand=cmd(x,scale(1,0,4,SCREEN_LEFT,SCREEN_RIGHT);y,scale(3,0,4,SCREEN_TOP,SCREEN_BOTTOM)); };
|
self:x(scale(1, 0, 4, SCREEN_LEFT, SCREEN_RIGHT));
|
||||||
a .. { OnCommand=cmd(x,scale(3,0,4,SCREEN_LEFT,SCREEN_RIGHT);y,scale(3,0,4,SCREEN_TOP,SCREEN_BOTTOM)); };
|
self:y(scale(1, 0, 4, SCREEN_TOP, SCREEN_BOTTOM));
|
||||||
|
end;
|
||||||
|
};
|
||||||
|
a .. {
|
||||||
|
OnCommand = function(self)
|
||||||
|
self:x(scale(3, 0, 4, SCREEN_LEFT, SCREEN_RIGHT));
|
||||||
|
self:y(scale(1, 0, 4, SCREEN_TOP, SCREEN_BOTTOM));
|
||||||
|
end;
|
||||||
|
};
|
||||||
|
a .. {
|
||||||
|
OnCommand = function(self)
|
||||||
|
self:x(scale(1, 0, 4, SCREEN_LEFT, SCREEN_RIGHT));
|
||||||
|
self:y(scale(3, 0, 4, SCREEN_TOP, SCREEN_BOTTOM));
|
||||||
|
end;
|
||||||
|
};
|
||||||
|
a .. {
|
||||||
|
OnCommand = function(self)
|
||||||
|
self:x(scale(3, 0, 4, SCREEN_LEFT, SCREEN_RIGHT));
|
||||||
|
self:y(scale(3, 0, 4, SCREEN_TOP, SCREEN_BOTTOM));
|
||||||
|
end;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
return t;
|
return t;
|
||||||
|
|||||||
@@ -2,21 +2,59 @@ local Color1 = color(Var "Color1");
|
|||||||
local Color2 = color(Var "Color2");
|
local Color2 = color(Var "Color2");
|
||||||
|
|
||||||
local a1 = LoadActor(Var "File1") .. {
|
local a1 = LoadActor(Var "File1") .. {
|
||||||
OnCommand=cmd(cropto,SCREEN_WIDTH/2;zoomtoheight,SCREEN_HEIGHT/2;diffuse,Color1;effectclock,"music");
|
OnCommand=function(self)
|
||||||
GainFocusCommand=cmd(play);
|
self:cropto(SCREEN_WIDTH / 2);
|
||||||
LoseFocusCommand=cmd(pause);
|
self:zoomtoheight(SCREEN_HEIGHT / 2);
|
||||||
|
self:diffuse(Color1);
|
||||||
|
self:effectclock("music");
|
||||||
|
end;
|
||||||
|
GainFocusCommand=function(self)
|
||||||
|
self:play();
|
||||||
|
end;
|
||||||
|
LoseFocusCommand=function(self)
|
||||||
|
self:pause();
|
||||||
|
end;
|
||||||
};
|
};
|
||||||
local a2 = LoadActor(Var "File2") .. {
|
local a2 = LoadActor(Var "File2") .. {
|
||||||
OnCommand=cmd(cropto,SCREEN_WIDTH/2;zoomtoheight,SCREEN_HEIGHT/2;diffuse,Color2;effectclock,"music");
|
OnCommand=function(self)
|
||||||
GainFocusCommand=cmd(play);
|
self:cropto(SCREEN_WIDTH / 2);
|
||||||
LoseFocusCommand=cmd(pause);
|
self:zoomtoheight(SCREEN_HEIGHT / 2);
|
||||||
|
self:diffuse(Color2);
|
||||||
|
self:effectclock("music");
|
||||||
|
end;
|
||||||
|
GainFocusCommand=function(self)
|
||||||
|
self:play();
|
||||||
|
end;
|
||||||
|
LoseFocusCommand=function(self)
|
||||||
|
self:pause();
|
||||||
|
end;
|
||||||
};
|
};
|
||||||
|
|
||||||
local t = Def.ActorFrame {
|
local t = Def.ActorFrame {
|
||||||
a1 .. { OnCommand=cmd(x,scale(1,0,4,SCREEN_LEFT,SCREEN_RIGHT);y,scale(1,0,4,SCREEN_TOP,SCREEN_BOTTOM)); };
|
a1 .. {
|
||||||
a2 .. { OnCommand=cmd(x,scale(3,0,4,SCREEN_LEFT,SCREEN_RIGHT);y,scale(1,0,4,SCREEN_TOP,SCREEN_BOTTOM)); };
|
OnCommand = function(self)
|
||||||
a2 .. { OnCommand=cmd(x,scale(1,0,4,SCREEN_LEFT,SCREEN_RIGHT);y,scale(3,0,4,SCREEN_TOP,SCREEN_BOTTOM)); };
|
self:x(scale(1, 0, 4, SCREEN_LEFT, SCREEN_RIGHT));
|
||||||
a1 .. { OnCommand=cmd(x,scale(3,0,4,SCREEN_LEFT,SCREEN_RIGHT);y,scale(3,0,4,SCREEN_TOP,SCREEN_BOTTOM)); };
|
self:y(scale(1, 0, 4, SCREEN_TOP, SCREEN_BOTTOM));
|
||||||
|
end;
|
||||||
|
};
|
||||||
|
a2 .. {
|
||||||
|
OnCommand = function(self)
|
||||||
|
self:x(scale(3, 0, 4, SCREEN_LEFT, SCREEN_RIGHT));
|
||||||
|
self:y(scale(1, 0, 4, SCREEN_TOP, SCREEN_BOTTOM));
|
||||||
|
end;
|
||||||
|
};
|
||||||
|
a2 .. {
|
||||||
|
OnCommand = function(self)
|
||||||
|
self:x(scale(1, 0, 4, SCREEN_LEFT, SCREEN_RIGHT));
|
||||||
|
self:y(scale(3, 0, 4, SCREEN_TOP, SCREEN_BOTTOM));
|
||||||
|
end;
|
||||||
|
};
|
||||||
|
a1 .. {
|
||||||
|
OnCommand = function(self)
|
||||||
|
self:x(scale(3, 0, 4, SCREEN_LEFT, SCREEN_RIGHT));
|
||||||
|
self:y(scale(3, 0, 4, SCREEN_TOP, SCREEN_BOTTOM));
|
||||||
|
end;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
return t;
|
return t;
|
||||||
|
|||||||
@@ -1,9 +1,36 @@
|
|||||||
-- Alternating files being played back at once
|
-- Alternating files being played back at once
|
||||||
local t = Def.ActorFrame {
|
local t = Def.ActorFrame {
|
||||||
LoadActor(Var "File1") .. { OnCommand=cmd(x,scale(1,0,4,SCREEN_LEFT,SCREEN_RIGHT);y,scale(1,0,4,SCREEN_TOP,SCREEN_BOTTOM);cropto,SCREEN_WIDTH/2,SCREEN_HEIGHT/2;rate,0.25) };
|
LoadActor(Var "File1") .. {
|
||||||
LoadActor(Var "File2") .. { OnCommand=cmd(x,scale(3,0,4,SCREEN_LEFT,SCREEN_RIGHT);y,scale(1,0,4,SCREEN_TOP,SCREEN_BOTTOM);cropto,SCREEN_WIDTH/2,SCREEN_HEIGHT/2;rate,0.25) };
|
OnCommand = function(self)
|
||||||
LoadActor(Var "File2") .. { OnCommand=cmd(x,scale(1,0,4,SCREEN_LEFT,SCREEN_RIGHT);y,scale(3,0,4,SCREEN_TOP,SCREEN_BOTTOM);cropto,SCREEN_WIDTH/2,SCREEN_HEIGHT/2;rate,0.25) };
|
self:x(scale(1, 0, 4, SCREEN_LEFT, SCREEN_RIGHT));
|
||||||
LoadActor(Var "File1") .. { OnCommand=cmd(x,scale(3,0,4,SCREEN_LEFT,SCREEN_RIGHT);y,scale(3,0,4,SCREEN_TOP,SCREEN_BOTTOM);cropto,SCREEN_WIDTH/2,SCREEN_HEIGHT/2;rate,0.25) };
|
self:y(scale(1, 0, 4, SCREEN_TOP, SCREEN_BOTTOM));
|
||||||
|
self:cropto(SCREEN_WIDTH / 2, SCREEN_HEIGHT / 2);
|
||||||
|
self:rate(0.25);
|
||||||
|
end;
|
||||||
|
LoadActor(Var "File2") .. {
|
||||||
|
OnCommand = function(self)
|
||||||
|
self:x(scale(3, 0, 4, SCREEN_LEFT, SCREEN_RIGHT));
|
||||||
|
self:y(scale(1, 0, 4, SCREEN_TOP, SCREEN_BOTTOM));
|
||||||
|
self:cropto(SCREEN_WIDTH / 2, SCREEN_HEIGHT / 2);
|
||||||
|
self:rate(0.25);
|
||||||
|
end;
|
||||||
|
};
|
||||||
|
LoadActor(Var "File2") .. {
|
||||||
|
OnCommand = function(self)
|
||||||
|
self:x(scale(1, 0, 4, SCREEN_LEFT, SCREEN_RIGHT));
|
||||||
|
self:y(scale(3, 0, 4, SCREEN_TOP, SCREEN_BOTTOM));
|
||||||
|
self:cropto(SCREEN_WIDTH / 2, SCREEN_HEIGHT / 2);
|
||||||
|
self:rate(0.25);
|
||||||
|
end;
|
||||||
|
};
|
||||||
|
LoadActor(Var "File1") .. {
|
||||||
|
OnCommand = function(self)
|
||||||
|
self:x(scale(3, 0, 4, SCREEN_LEFT, SCREEN_RIGHT));
|
||||||
|
self:y(scale(3, 0, 4, SCREEN_TOP, SCREEN_BOTTOM));
|
||||||
|
self:cropto(SCREEN_WIDTH / 2, SCREEN_HEIGHT / 2);
|
||||||
|
self:rate(0.25);
|
||||||
|
end;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
return t
|
return t
|
||||||
@@ -4,9 +4,21 @@ local Color2 = color(Var "Color2");
|
|||||||
local t = Def.ActorFrame {};
|
local t = Def.ActorFrame {};
|
||||||
|
|
||||||
t[#t+1] = LoadActor(Var "File1") .. {
|
t[#t+1] = LoadActor(Var "File1") .. {
|
||||||
OnCommand=cmd(diffuse,Color1;blend,"BlendMode_Add";x,SCREEN_CENTER_X;y,SCREEN_CENTER_Y;scale_or_crop_background;linear,1;diffusealpha,0);
|
OnCommand=function(self)
|
||||||
GainFocusCommand=cmd(play);
|
self:diffuse(Color1);
|
||||||
LoseFocusCommand=cmd(pause);
|
self:blend("BlendMode_Add");
|
||||||
|
self:x(SCREEN_CENTER_X);
|
||||||
|
self:y(SCREEN_CENTER_Y);
|
||||||
|
self:scale_or_crop_background();
|
||||||
|
self:linear(1);
|
||||||
|
self:diffusealpha(0);
|
||||||
|
end;
|
||||||
|
GainFocusCommand=function(self)
|
||||||
|
self:play();
|
||||||
|
end;
|
||||||
|
LoseFocusCommand=function(self)
|
||||||
|
self:pause();
|
||||||
|
end;
|
||||||
};
|
};
|
||||||
|
|
||||||
return t;
|
return t;
|
||||||
|
|||||||
@@ -4,16 +4,38 @@ local Color2 = color(Var "Color2");
|
|||||||
local t = Def.ActorFrame {};
|
local t = Def.ActorFrame {};
|
||||||
|
|
||||||
t[#t+1] = LoadActor(Var "File1") .. {
|
t[#t+1] = LoadActor(Var "File1") .. {
|
||||||
OnCommand=cmd(x,SCREEN_CENTER_X;y,SCREEN_CENTER_Y;scale_or_crop_background;diffuse,Color1;effectclock,"music");
|
OnCommand=function(self)
|
||||||
GainFocusCommand=cmd(play);
|
self:x(SCREEN_CENTER_X);
|
||||||
LoseFocusCommand=cmd(pause);
|
self:y(SCREEN_CENTER_Y);
|
||||||
|
self:scale_or_crop_background();
|
||||||
|
self:diffuse(Color1);
|
||||||
|
self:effectclock("music");
|
||||||
|
end;
|
||||||
|
GainFocusCommand=function(self)
|
||||||
|
self:play();
|
||||||
|
end;
|
||||||
|
LoseFocusCommand=function(self)
|
||||||
|
self:pause();
|
||||||
|
end;
|
||||||
};
|
};
|
||||||
|
|
||||||
if Var("File2") ~= nil then
|
if Var("File2") ~= nil then
|
||||||
t[#t+1] = LoadActor(Var("File2")) .. {
|
t[#t+1] = LoadActor(Var("File2")) .. {
|
||||||
OnCommand=cmd(x,SCREEN_CENTER_X;y,SCREEN_CENTER_Y;scale_or_crop_background;diffuse,Color2;effectclock,"music";linear,1;diffusealpha,0);
|
OnCommand=function(self)
|
||||||
GainFocusCommand=cmd(play);
|
self:x(SCREEN_CENTER_X);
|
||||||
LoseFocusCommand=cmd(pause);
|
self:y(SCREEN_CENTER_Y);
|
||||||
|
self:scale_or_crop_background();
|
||||||
|
self:diffuse(Color2);
|
||||||
|
self:effectclock("music");
|
||||||
|
self:linear(1);
|
||||||
|
self:diffusealpha(0);
|
||||||
|
end;
|
||||||
|
GainFocusCommand=function(self)
|
||||||
|
self:play();
|
||||||
|
end;
|
||||||
|
LoseFocusCommand=function(self)
|
||||||
|
self:pause();
|
||||||
|
end;
|
||||||
};
|
};
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|||||||
@@ -5,16 +5,36 @@ local stretchBG = PREFSMAN:GetPreference("StretchBackgrounds")
|
|||||||
local t = Def.ActorFrame {};
|
local t = Def.ActorFrame {};
|
||||||
|
|
||||||
t[#t+1] = LoadActor(Var "File1") .. {
|
t[#t+1] = LoadActor(Var "File1") .. {
|
||||||
OnCommand=cmd(x,SCREEN_CENTER_X;y,SCREEN_CENTER_Y;scale_or_crop_background;diffuse,Color1;effectclock,"music");
|
OnCommand=function(self)
|
||||||
GainFocusCommand=cmd(play);
|
self:x(SCREEN_CENTER_X);
|
||||||
LoseFocusCommand=cmd(pause);
|
self:y(SCREEN_CENTER_Y);
|
||||||
|
self:scale_or_crop_background();
|
||||||
|
self:diffuse(Color1);
|
||||||
|
self:effectclock("music");
|
||||||
|
end;
|
||||||
|
GainFocusCommand=function(self)
|
||||||
|
self:play();
|
||||||
|
end;
|
||||||
|
LoseFocusCommand=function(self)
|
||||||
|
self:pause();
|
||||||
|
end;
|
||||||
};
|
};
|
||||||
|
|
||||||
if Var("File2") ~= nil then
|
if Var("File2") ~= nil then
|
||||||
t[#t+1] = LoadActor(Var("File2")) .. {
|
t[#t+1] = LoadActor(Var("File2")) .. {
|
||||||
OnCommand=cmd(x,SCREEN_CENTER_X;y,SCREEN_CENTER_Y;scale_or_crop_background;diffuse,Color1;effectclock,"music");
|
OnCommand=function(self)
|
||||||
GainFocusCommand=cmd(play);
|
self:x(SCREEN_CENTER_X);
|
||||||
LoseFocusCommand=cmd(pause);
|
self:y(SCREEN_CENTER_Y);
|
||||||
|
self:scale_or_crop_background();
|
||||||
|
self:diffuse(Color2); -- originally Color1: assuming mistake.
|
||||||
|
self:effectclock("music");
|
||||||
|
end;
|
||||||
|
GainFocusCommand=function(self)
|
||||||
|
self:play();
|
||||||
|
end;
|
||||||
|
LoseFocusCommand=function(self)
|
||||||
|
self:pause();
|
||||||
|
end;
|
||||||
};
|
};
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|||||||
@@ -1,16 +1,46 @@
|
|||||||
local Color1 = color(Var "Color1");
|
local Color1 = color(Var "Color1");
|
||||||
|
|
||||||
local a = LoadActor(Var "File1") .. {
|
local a = LoadActor(Var "File1") .. {
|
||||||
OnCommand=cmd(cropto,SCREEN_WIDTH/2,SCREEN_HEIGHT/2;diffuse,Color1;zoomx,self:GetZoomX()*-1;zoomy,self:GetZoomY()*-1;effectclock,"music");
|
OnCommand=function(self)
|
||||||
GainFocusCommand=cmd(play);
|
self:cropto(SCREEN_WIDTH / 2, SCREEN_HEIGHT / 2);
|
||||||
LoseFocusCommand=cmd(pause);
|
self:diffuse(Color1);
|
||||||
|
self:zoomx(self:GetZoomX() * -1);
|
||||||
|
self:zoomy(self:GetZoomY() * -1);
|
||||||
|
self:effectclock("music");
|
||||||
|
end;
|
||||||
|
GainFocusCommand=function(self)
|
||||||
|
self:play();
|
||||||
|
end;
|
||||||
|
LoseFocusCommand=function(self)
|
||||||
|
self:pause();
|
||||||
|
end;
|
||||||
};
|
};
|
||||||
|
|
||||||
local t = Def.ActorFrame {
|
local t = Def.ActorFrame {
|
||||||
a .. { OnCommand=cmd(x,scale(1,0,4,SCREEN_LEFT,SCREEN_RIGHT);y,scale(1,0,4,SCREEN_TOP,SCREEN_BOTTOM)); };
|
a .. {
|
||||||
a .. { OnCommand=cmd(x,scale(3,0,4,SCREEN_LEFT,SCREEN_RIGHT);y,scale(1,0,4,SCREEN_TOP,SCREEN_BOTTOM)); };
|
OnCommand = function(self)
|
||||||
a .. { OnCommand=cmd(x,scale(1,0,4,SCREEN_LEFT,SCREEN_RIGHT);y,scale(3,0,4,SCREEN_TOP,SCREEN_BOTTOM)); };
|
self:x(scale(1, 0, 4, SCREEN_LEFT, SCREEN_RIGHT));
|
||||||
a .. { OnCommand=cmd(x,scale(3,0,4,SCREEN_LEFT,SCREEN_RIGHT);y,scale(3,0,4,SCREEN_TOP,SCREEN_BOTTOM)); };
|
self:y(scale(1, 0, 4, SCREEN_TOP, SCREEN_BOTTOM));
|
||||||
|
end;
|
||||||
|
};
|
||||||
|
a .. {
|
||||||
|
OnCommand = function(self)
|
||||||
|
self:x(scale(3, 0, 4, SCREEN_LEFT, SCREEN_RIGHT));
|
||||||
|
self:y(scale(1, 0, 4, SCREEN_TOP, SCREEN_BOTTOM));
|
||||||
|
end;
|
||||||
|
};
|
||||||
|
a .. {
|
||||||
|
OnCommand = function(self)
|
||||||
|
self:x(scale(1, 0, 4, SCREEN_LEFT, SCREEN_RIGHT));
|
||||||
|
self:y(scale(3, 0, 4, SCREEN_TOP, SCREEN_BOTTOM));
|
||||||
|
end;
|
||||||
|
};
|
||||||
|
a .. {
|
||||||
|
OnCommand = function(self)
|
||||||
|
self:x(scale(3, 0, 4, SCREEN_LEFT, SCREEN_RIGHT));
|
||||||
|
self:y(scale(3, 0, 4, SCREEN_TOP, SCREEN_BOTTOM));
|
||||||
|
end;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
return t;
|
return t;
|
||||||
|
|||||||
@@ -3,9 +3,19 @@ local Color1 = color(Var "Color1");
|
|||||||
local t = Def.ActorFrame {};
|
local t = Def.ActorFrame {};
|
||||||
|
|
||||||
t[#t+1] = LoadActor(Var "File1") .. {
|
t[#t+1] = LoadActor(Var "File1") .. {
|
||||||
OnCommand=cmd(diffuse,Color1;blend,"BlendMode_Add";x,SCREEN_CENTER_X;y,SCREEN_CENTER_Y;scale_or_crop_background;);
|
OnCommand=function(self)
|
||||||
GainFocusCommand=cmd(play);
|
self:diffuse(Color1);
|
||||||
LoseFocusCommand=cmd(pause);
|
self:blend("BlendMode_Add");
|
||||||
|
self:x(SCREEN_CENTER_X);
|
||||||
|
self:y(SCREEN_CENTER_Y);
|
||||||
|
self:scale_or_crop_background();
|
||||||
|
end;
|
||||||
|
GainFocusCommand=function(self)
|
||||||
|
self:play();
|
||||||
|
end;
|
||||||
|
LoseFocusCommand=function(self)
|
||||||
|
self:pause();
|
||||||
|
end;
|
||||||
};
|
};
|
||||||
|
|
||||||
return t;
|
return t;
|
||||||
|
|||||||
@@ -7,8 +7,10 @@ local t = Def.ActorFrame {
|
|||||||
OnCommand=function(self)
|
OnCommand=function(self)
|
||||||
self:LoadFromCurrentSongBackground()
|
self:LoadFromCurrentSongBackground()
|
||||||
self:xy(SCREEN_CENTER_X,SCREEN_CENTER_Y)
|
self:xy(SCREEN_CENTER_X,SCREEN_CENTER_Y)
|
||||||
if stretchBG then self:SetSize(SCREEN_WIDTH,SCREEN_HEIGHT)
|
if stretchBG then
|
||||||
else self:scale_or_crop_background();
|
self:SetSize(SCREEN_WIDTH,SCREEN_HEIGHT)
|
||||||
|
else
|
||||||
|
self:scale_or_crop_background();
|
||||||
end
|
end
|
||||||
self:diffuse(Color1)
|
self:diffuse(Color1)
|
||||||
self:effectclock("music")
|
self:effectclock("music")
|
||||||
@@ -16,9 +18,20 @@ local t = Def.ActorFrame {
|
|||||||
};
|
};
|
||||||
|
|
||||||
LoadActor(Var "File1") .. {
|
LoadActor(Var "File1") .. {
|
||||||
OnCommand=cmd(blend,"BlendMode_Add";x,SCREEN_CENTER_X;y,SCREEN_CENTER_Y;scale_or_crop_background;diffuse,Color2;effectclock,"music");
|
OnCommand=function(self)
|
||||||
GainFocusCommand=cmd(play);
|
self:blend("BlendMode_Add");
|
||||||
LoseFocusCommand=cmd(pause);
|
self:x(SCREEN_CENTER_X);
|
||||||
|
self:y(SCREEN_CENTER_Y);
|
||||||
|
self:scale_or_crop_background();
|
||||||
|
self:diffuse(Color2);
|
||||||
|
self:effectclock("music");
|
||||||
|
end;
|
||||||
|
GainFocusCommand=function(self)
|
||||||
|
self:play();
|
||||||
|
end;
|
||||||
|
LoseFocusCommand=function(self)
|
||||||
|
self:pause();
|
||||||
|
end;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -2,9 +2,20 @@ local Color1 = color(Var "Color1");
|
|||||||
|
|
||||||
local t = Def.ActorFrame {
|
local t = Def.ActorFrame {
|
||||||
LoadActor(Var "File1") .. {
|
LoadActor(Var "File1") .. {
|
||||||
OnCommand=cmd(x,SCREEN_CENTER_X;y,SCREEN_CENTER_Y;scale_or_crop_background;diffuse,Color1;loop,false;effectclock,"music");
|
OnCommand=function(self)
|
||||||
GainFocusCommand=cmd(play);
|
self:x(SCREEN_CENTER_X);
|
||||||
LoseFocusCommand=cmd(pause);
|
self:y(SCREEN_CENTER_Y);
|
||||||
|
self:scale_or_crop_background();
|
||||||
|
self:diffuse(Color1);
|
||||||
|
self:loop(false);
|
||||||
|
self:effectclock("music");
|
||||||
|
end;
|
||||||
|
GainFocusCommand=function(self)
|
||||||
|
self:play();
|
||||||
|
end;
|
||||||
|
LoseFocusCommand=function(self)
|
||||||
|
self:pause();
|
||||||
|
end;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -11,8 +11,12 @@ local t = Def.ActorFrame {
|
|||||||
self:diffuse(Color1)
|
self:diffuse(Color1)
|
||||||
self:effectclock("music")
|
self:effectclock("music")
|
||||||
end;
|
end;
|
||||||
GainFocusCommand=cmd(play);
|
GainFocusCommand=function(self)
|
||||||
LoseFocusCommand=cmd(pause);
|
self:play();
|
||||||
|
end;
|
||||||
|
LoseFocusCommand=function(self)
|
||||||
|
self:pause();
|
||||||
|
end;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -3,9 +3,19 @@ local Color1 = color(Var "Color1");
|
|||||||
|
|
||||||
local t = Def.ActorFrame {
|
local t = Def.ActorFrame {
|
||||||
LoadActor(Var "File1") .. {
|
LoadActor(Var "File1") .. {
|
||||||
OnCommand=cmd(x,SCREEN_CENTER_X;y,SCREEN_CENTER_Y;scale_or_crop_background;diffuse,Color1;effectclock,"music");
|
OnCommand=function(self)
|
||||||
GainFocusCommand=cmd(play);
|
self:x(SCREEN_CENTER_X);
|
||||||
LoseFocusCommand=cmd(pause);
|
self:y(SCREEN_CENTER_Y);
|
||||||
|
self:scale_or_crop_background();
|
||||||
|
self:diffuse(Color1);
|
||||||
|
self:effectclock("music");
|
||||||
|
end;
|
||||||
|
GainFocusCommand=function(self)
|
||||||
|
self:play();
|
||||||
|
end;
|
||||||
|
LoseFocusCommand=function(self)
|
||||||
|
self:pause();
|
||||||
|
end;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -3,9 +3,19 @@ local Color1 = color("0,0,1,1");
|
|||||||
|
|
||||||
local t = Def.ActorFrame {
|
local t = Def.ActorFrame {
|
||||||
LoadActor(Var "File1") .. {
|
LoadActor(Var "File1") .. {
|
||||||
OnCommand=cmd(x,SCREEN_CENTER_X;y,SCREEN_CENTER_Y;scale_or_crop_background;diffuse,Color1;effectclock,"music");
|
OnCommand=function(self)
|
||||||
GainFocusCommand=cmd(play);
|
self:x(SCREEN_CENTER_X);
|
||||||
LoseFocusCommand=cmd(pause);
|
self:y(SCREEN_CENTER_Y);
|
||||||
|
self:scale_or_crop_background();
|
||||||
|
self:diffuse(Color1);
|
||||||
|
self:effectclock("music");
|
||||||
|
end;
|
||||||
|
GainFocusCommand=function(self)
|
||||||
|
self:play();
|
||||||
|
end;
|
||||||
|
LoseFocusCommand=function(self)
|
||||||
|
self:pause();
|
||||||
|
end;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -3,9 +3,19 @@ local Color1 = color("0,1,0,1");
|
|||||||
|
|
||||||
local t = Def.ActorFrame {
|
local t = Def.ActorFrame {
|
||||||
LoadActor(Var "File1") .. {
|
LoadActor(Var "File1") .. {
|
||||||
OnCommand=cmd(x,SCREEN_CENTER_X;y,SCREEN_CENTER_Y;scale_or_crop_background;diffuse,Color1;effectclock,"music");
|
OnCommand=function(self)
|
||||||
GainFocusCommand=cmd(play);
|
self:x(SCREEN_CENTER_X);
|
||||||
LoseFocusCommand=cmd(pause);
|
self:y(SCREEN_CENTER_Y);
|
||||||
|
self:scale_or_crop_background();
|
||||||
|
self:diffuse(Color1);
|
||||||
|
self:effectclock("music");
|
||||||
|
end;
|
||||||
|
GainFocusCommand=function(self)
|
||||||
|
self:play();
|
||||||
|
end;
|
||||||
|
LoseFocusCommand=function(self)
|
||||||
|
self:pause();
|
||||||
|
end;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -3,9 +3,19 @@ local Color1 = color("1,0,0,1");
|
|||||||
|
|
||||||
local t = Def.ActorFrame {
|
local t = Def.ActorFrame {
|
||||||
LoadActor(Var "File1") .. {
|
LoadActor(Var "File1") .. {
|
||||||
OnCommand=cmd(x,SCREEN_CENTER_X;y,SCREEN_CENTER_Y;scale_or_crop_background;diffuse,Color1;effectclock,"music");
|
OnCommand=function(self)
|
||||||
GainFocusCommand=cmd(play);
|
self:x(SCREEN_CENTER_X);
|
||||||
LoseFocusCommand=cmd(pause);
|
self:y(SCREEN_CENTER_Y);
|
||||||
|
self:scale_or_crop_background();
|
||||||
|
self:diffuse(Color1);
|
||||||
|
self:effectclock("music");
|
||||||
|
end;
|
||||||
|
GainFocusCommand=function(self)
|
||||||
|
self:play();
|
||||||
|
end;
|
||||||
|
LoseFocusCommand=function(self)
|
||||||
|
self:pause();
|
||||||
|
end;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -2,9 +2,20 @@ local Color1 = color(Var "Color1");
|
|||||||
|
|
||||||
local t = Def.ActorFrame {
|
local t = Def.ActorFrame {
|
||||||
LoadActor(Var "File1") .. {
|
LoadActor(Var "File1") .. {
|
||||||
OnCommand=cmd(x,SCREEN_CENTER_X;y,SCREEN_CENTER_Y;scale_or_crop_background;diffuse,Color1;pause;effectclock,"music");
|
OnCommand=function(self)
|
||||||
GainFocusCommand=cmd(play);
|
self:x(SCREEN_CENTER_X);
|
||||||
LoseFocusCommand=cmd(pause);
|
self:y(SCREEN_CENTER_Y);
|
||||||
|
self:scale_or_crop_background();
|
||||||
|
self:diffuse(Color1);
|
||||||
|
self:pause();
|
||||||
|
self:effectclock("music");
|
||||||
|
end;
|
||||||
|
GainFocusCommand=function(self)
|
||||||
|
self:play();
|
||||||
|
end;
|
||||||
|
LoseFocusCommand=function(self)
|
||||||
|
self:pause();
|
||||||
|
end;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -2,9 +2,20 @@ local Color = color(Var "Color1");
|
|||||||
|
|
||||||
local t = Def.ActorFrame {
|
local t = Def.ActorFrame {
|
||||||
LoadActor(Var "File1") .. {
|
LoadActor(Var "File1") .. {
|
||||||
OnCommand=cmd(x,SCREEN_CENTER_X;y,SCREEN_CENTER_Y;scale_or_crop_background;diffuse,Color1;position,0;effectclock,"music");
|
OnCommand=function(self)
|
||||||
GainFocusCommand=cmd(play);
|
self:x(SCREEN_CENTER_X);
|
||||||
LoseFocusCommand=cmd(pause);
|
self:y(SCREEN_CENTER_Y);
|
||||||
|
self:scale_or_crop_background();
|
||||||
|
self:diffuse(Color1);
|
||||||
|
self:position(0);
|
||||||
|
self:effectclock("music");
|
||||||
|
end;
|
||||||
|
GainFocusCommand=function(self)
|
||||||
|
self:play();
|
||||||
|
end;
|
||||||
|
LoseFocusCommand=function(self)
|
||||||
|
self:pause();
|
||||||
|
end;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -3,9 +3,16 @@ local Color1 = color(Var "Color1");
|
|||||||
|
|
||||||
local t = Def.ActorFrame {
|
local t = Def.ActorFrame {
|
||||||
LoadActor(Var "File1") .. {
|
LoadActor(Var "File1") .. {
|
||||||
OnCommand=cmd(diffuse,Color1;effectclock,"music");
|
OnCommand=function(self)
|
||||||
GainFocusCommand=cmd(play);
|
self:diffuse(Color1);
|
||||||
LoseFocusCommand=cmd(pause);
|
self:effectclock("music");
|
||||||
|
end;
|
||||||
|
GainFocusCommand=function(self)
|
||||||
|
self:play();
|
||||||
|
end;
|
||||||
|
LoseFocusCommand=function(self)
|
||||||
|
self:pause();
|
||||||
|
end;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -3,15 +3,36 @@ local Color2 = color(Var "Color2");
|
|||||||
|
|
||||||
local t = Def.ActorFrame {
|
local t = Def.ActorFrame {
|
||||||
LoadActor(Var "File1") .. {
|
LoadActor(Var "File1") .. {
|
||||||
OnCommand=cmd(x,SCREEN_CENTER_X;y,SCREEN_CENTER_Y;scale_or_crop_background;diffuse,Color1;effectclock,"music");
|
OnCommand=function(self)
|
||||||
GainFocusCommand=cmd(play);
|
self:x(SCREEN_CENTER_X);
|
||||||
LoseFocusCommand=cmd(pause);
|
self:y(SCREEN_CENTER_Y);
|
||||||
|
self:scale_or_crop_background();
|
||||||
|
self:diffuse(Color1);
|
||||||
|
self:effectclock("music");
|
||||||
|
end;
|
||||||
|
GainFocusCommand=function(self)
|
||||||
|
self:play();
|
||||||
|
end;
|
||||||
|
LoseFocusCommand=function(self)
|
||||||
|
self:pause();
|
||||||
|
end;
|
||||||
};
|
};
|
||||||
|
|
||||||
LoadActor(Var "File2") .. {
|
LoadActor(Var "File2") .. {
|
||||||
OnCommand=cmd(blend,"BlendMode_Add";x,SCREEN_CENTER_X;y,SCREEN_CENTER_Y;scaletoclipped,SCREEN_WIDTH,SCREEN_HEIGHT;diffuse,Color2;effectclock,"music");
|
OnCommand=function(self)
|
||||||
GainFocusCommand=cmd(play);
|
self:blend("BlendMode_Add");
|
||||||
LoseFocusCommand=cmd(pause);
|
self:x(SCREEN_CENTER_X);
|
||||||
|
self:y(SCREEN_CENTER_Y);
|
||||||
|
self:scaletoclipped(SCREEN_WIDTH, SCREEN_HEIGHT);
|
||||||
|
self:diffuse(Color2);
|
||||||
|
self:effectclock("music");
|
||||||
|
end;
|
||||||
|
GainFocusCommand=function(self)
|
||||||
|
self:play();
|
||||||
|
end;
|
||||||
|
LoseFocusCommand=function(self)
|
||||||
|
self:pause();
|
||||||
|
end;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -4,16 +4,39 @@ local Color2 = color(Var "Color2");
|
|||||||
local t = Def.ActorFrame {};
|
local t = Def.ActorFrame {};
|
||||||
|
|
||||||
t[#t+1] = LoadActor(Var "File1") .. {
|
t[#t+1] = LoadActor(Var "File1") .. {
|
||||||
OnCommand=cmd(x,SCREEN_CENTER_X;y,SCREEN_CENTER_Y;scale_or_crop_background;diffuse,Color1;effectclock,"music");
|
OnCommand=function(self)
|
||||||
GainFocusCommand=cmd(play);
|
self:x(SCREEN_CENTER_X);
|
||||||
LoseFocusCommand=cmd(pause);
|
self:y(SCREEN_CENTER_Y);
|
||||||
|
self:scale_or_crop_background();
|
||||||
|
self:diffuse(Color1);
|
||||||
|
self:effectclock("music");
|
||||||
|
end;
|
||||||
|
GainFocusCommand=function(self)
|
||||||
|
self:play();
|
||||||
|
end;
|
||||||
|
LoseFocusCommand=function(self)
|
||||||
|
self:pause();
|
||||||
|
end;
|
||||||
};
|
};
|
||||||
|
|
||||||
if Var("File2") ~= nil then
|
if Var("File2") ~= nil then
|
||||||
t[#t+1] = LoadActor(Var("File2")) .. {
|
t[#t+1] = LoadActor(Var("File2")) .. {
|
||||||
OnCommand=cmd(blend,"BlendMode_Add";x,SCREEN_CENTER_X;y,SCREEN_CENTER_Y;scale_or_crop_background;diffuse,Color2;effectclock,"music";linear,1;diffusealpha,0);
|
OnCommand=function(self)
|
||||||
GainFocusCommand=cmd(play);
|
self:blend("BlendMode_Add");
|
||||||
LoseFocusCommand=cmd(pause);
|
self:x(SCREEN_CENTER_X);
|
||||||
|
self:y(SCREEN_CENTER_Y);
|
||||||
|
self:scale_or_crop_background();
|
||||||
|
self:diffuse(Color2);
|
||||||
|
self:effectclock("music");
|
||||||
|
self:linear(1);
|
||||||
|
self:diffusealpha(0);
|
||||||
|
end;
|
||||||
|
GainFocusCommand=function(self)
|
||||||
|
self:play();
|
||||||
|
end;
|
||||||
|
LoseFocusCommand=function(self)
|
||||||
|
self:pause();
|
||||||
|
end;
|
||||||
};
|
};
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user