2013-07-18 17:41:00 -04:00
|
|
|
local Color1 = color(Var "Color1");
|
|
|
|
|
|
|
|
|
|
local t = Def.ActorFrame {
|
|
|
|
|
LoadActor(Var "File1") .. {
|
|
|
|
|
OnCommand=function(self)
|
|
|
|
|
self:xy(SCREEN_CENTER_X,SCREEN_CENTER_Y)
|
2014-08-16 03:37:24 -06:00
|
|
|
self:scale_or_crop_background();
|
2013-07-18 17:41:00 -04:00
|
|
|
self:diffuse(Color1)
|
|
|
|
|
self:effectclock("music")
|
2015-02-05 00:37:08 -07:00
|
|
|
-- Explanation in StretchNoLoop.lua.
|
|
|
|
|
if self.GetTexture then
|
|
|
|
|
self:GetTexture():rate(self:GetParent():GetUpdateRate())
|
|
|
|
|
end
|
2013-07-18 17:41:00 -04:00
|
|
|
end;
|
|
|
|
|
GainFocusCommand=cmd(play);
|
|
|
|
|
LoseFocusCommand=cmd(pause);
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
return t;
|