Files
itgmania212121/Themes/_portKit-sm4/BGAnimations/_frame 3x1/default.lua
T

33 lines
583 B
Lua
Raw Normal View History

2011-03-17 01:47:30 -04:00
local File, Width = ...
assert( File );
assert( Width );
local FullFile = THEME:GetPathB('','_frame files 3x1/'..File )
local Frame = LoadActor( FullFile )
return Def.ActorFrame {
2013-07-02 17:48:24 -04:00
Frame .. {
InitCommand=function(self)
self:setstate(0);
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;
};
2011-03-17 01:47:30 -04:00
};