Files
itgmania212121/Themes/default/Graphics/ScreenTitleMenu scroll.lua
T

46 lines
1.0 KiB
Lua
Raw Normal View History

2011-03-17 01:47:30 -04:00
local gc = Var("GameCommand");
return Def.ActorFrame {
Def.Quad{
2013-07-05 22:17:42 -04:00
InitCommand=function(self)
self:zoomto(256, 26);
self:fadeleft(0.45);
self:faderight(0.45);
end;
OnCommand=function(self)
self:diffuseshift();
self:effectcolor1(color("0,0,0,0.5"));
self:effectcolor2(color("0,0,0,0.5"));
end;
GainFocusCommand=function(self)
self:stoptweening();
self:decelerate(0.1);
self:zoomto(256,26);
self:diffusealpha(1);
end;
LoseFocusCommand=function(self)
self:stoptweening();
self:accelerate(0.1);
self:zoomto(SCREEN_WIDTH,0);
self:diffusealpha(0);
end;
2011-03-17 01:47:30 -04:00
};
LoadFont("Common Normal") .. {
2011-08-01 17:03:12 -05:00
Text=THEME:GetString("ScreenTitleMenu",gc:GetText());
2013-07-05 22:17:42 -04:00
OnCommand=function(self)
self:shadowlength(1);
end;
GainFocusCommand=function(self)
self:stoptweening();
self:linear(0.1);
self:zoom(1);
self:diffuse(color("1,1,1,1"));
end;
LoseFocusCommand=function(self)
self:stoptweening();
self:linear(0.1);
self:zoom(0.75);
self:diffuse(color("0.5,0.5,0.5,1"));
end;
2011-03-17 01:47:30 -04:00
};
2010-01-26 21:00:30 -06:00
};