@@ -1,20 +1,13 @@
|
||||
-- upper left corner
|
||||
local Color1 = color(Var "Color1");
|
||||
|
||||
local t = Def.ActorFrame {
|
||||
LoadActor(Var "File1") .. {
|
||||
OnCommand=function(self)
|
||||
self:diffuse(Color1);
|
||||
self:effectclock("music");
|
||||
end;
|
||||
GainFocusCommand=function(self)
|
||||
self:play();
|
||||
end;
|
||||
LoseFocusCommand=function(self)
|
||||
self:pause();
|
||||
end;
|
||||
};
|
||||
};
|
||||
|
||||
return t;
|
||||
|
||||
-- upper left corner
|
||||
local Color1 = color(Var "Color1");
|
||||
|
||||
local t = Def.ActorFrame {
|
||||
LoadActor(Var "File1") .. {
|
||||
OnCommand=cmd(diffuse,Color1;effectclock,"music");
|
||||
GainFocusCommand=cmd(play);
|
||||
LoseFocusCommand=cmd(pause);
|
||||
};
|
||||
};
|
||||
|
||||
return t;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user