fbf979e93b
This reverts commit d20290ad2f.
21 lines
648 B
Lua
21 lines
648 B
Lua
local Color1 = color(Var "Color1");
|
|
local Color2 = color(Var "Color2");
|
|
|
|
local t = Def.ActorFrame {};
|
|
|
|
t[#t+1] = LoadActor(Var "File1") .. {
|
|
OnCommand=cmd(x,SCREEN_CENTER_X;y,SCREEN_CENTER_Y;scale_or_crop_background;diffuse,Color1;effectclock,"music");
|
|
GainFocusCommand=cmd(play);
|
|
LoseFocusCommand=cmd(pause);
|
|
};
|
|
|
|
if Var("File2") ~= nil then
|
|
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);
|
|
GainFocusCommand=cmd(play);
|
|
LoseFocusCommand=cmd(pause);
|
|
};
|
|
end;
|
|
|
|
return t;
|