Script cleanup, add aliases for SCREEN_* (_screen.w, etc, check alias.lua). [shakesoda]
This commit is contained in:
@@ -1,16 +1,18 @@
|
||||
function Actor:LyricCommand(side)
|
||||
self:settext( Var "LyricText" );
|
||||
self:settext( Var "LyricText" )
|
||||
|
||||
self:stoptweening();
|
||||
self:shadowlengthx(0);
|
||||
self:shadowlengthy(5);
|
||||
self:strokecolor(color("#000000"));
|
||||
self:stoptweening()
|
||||
self:shadowlengthx(0)
|
||||
self:shadowlengthy(5)
|
||||
self:strokecolor(color("#000000"))
|
||||
|
||||
local Zoom = SCREEN_WIDTH/(self:GetZoomedWidth()+1);
|
||||
if( Zoom > 1 ) then Zoom = 1 end
|
||||
self:zoomx( Zoom );
|
||||
local Zoom = SCREEN_WIDTH / (self:GetZoomedWidth()+1)
|
||||
if( Zoom > 1 ) then
|
||||
Zoom = 1
|
||||
end
|
||||
self:zoomx( Zoom )
|
||||
|
||||
local lyricColor = Var "LyricColor";
|
||||
local lyricColor = Var "LyricColor"
|
||||
local Factor = 1
|
||||
if side == "Back" then
|
||||
Factor = 0.5
|
||||
@@ -24,23 +26,23 @@ function Actor:LyricCommand(side)
|
||||
lyricColor[4] * Factor } )
|
||||
|
||||
if side == "Front" then
|
||||
self:cropright(1);
|
||||
self:cropright(1)
|
||||
else
|
||||
self:cropleft(0);
|
||||
self:cropleft(0)
|
||||
end
|
||||
|
||||
self:diffusealpha(0);
|
||||
self:linear(0.2);
|
||||
self:diffusealpha(0.75);
|
||||
self:linear( Var "LyricDuration" * 0.75);
|
||||
self:diffusealpha(0)
|
||||
self:linear(0.2)
|
||||
self:diffusealpha(0.75)
|
||||
self:linear( Var "LyricDuration" * 0.75)
|
||||
if side == "Front" then
|
||||
self:cropright(0);
|
||||
self:cropright(0)
|
||||
else
|
||||
self:cropleft(1);
|
||||
self:cropleft(1)
|
||||
end
|
||||
self:sleep( Var "LyricDuration" * 0.25 );
|
||||
self:linear(0.2);
|
||||
self:diffusealpha(0);
|
||||
self:sleep( Var "LyricDuration" * 0.25 )
|
||||
self:linear(0.2)
|
||||
self:diffusealpha(0)
|
||||
end
|
||||
|
||||
-- (c) 2006 Glenn Maynard
|
||||
|
||||
Reference in New Issue
Block a user