Files
itgmania212121/Themes/default/Graphics/ScreenQuickSetupOverview icon/default.lua
T

85 lines
1.9 KiB
Lua
Raw Normal View History

2011-03-17 01:47:30 -04:00
local gc = Var "GameCommand";
local c = {};
c.X = THEME:GetMetric( Var "LoadingScreen", "Icon" .. gc:GetName() .. "X");
c.Y = THEME:GetMetric( Var "LoadingScreen", "Icon" .. gc:GetName() .. "Y");
local t = Def.ActorFrame {};
t[#t+1] = Def.ActorFrame {
Condition=( gc:GetName() ~= "Back" );
2013-07-05 22:17:42 -04:00
InitCommand=function(self)
self:x(c.X);
self:y(c.Y);
end;
GainFocusCommand=function(self)
self:finishtweening();
self:zoom(1.125);
self:bounceend(0.125);
self:zoom(1);
end;
LoseFocusCommand=function(self)
self:stoptweening();
self:linear(0.125);
self:zoom(0.875);
2011-03-17 01:47:30 -04:00
LoadActor("_base") .. {
2013-07-05 22:17:42 -04:00
GainFocusCommand=function(self)
self:stoptweening();
self:linear(0.125);
self:diffuse(Color("Orange"));
self:diffusetopedge(Color("Yellow"));
end;
LoseFocusCommand=function(self)
self:stoptweening();
self:linear(0.125);
self:diffuse(Color("White"));
end;
2011-03-17 01:47:30 -04:00
};
LoadFont("Common Normal") .. {
Text=gc:GetName();
2013-07-05 22:17:42 -04:00
InitCommand=function(self)
self:strokecolor(Color("White"));
end;
OnCommand=function(self)
self:diffuse(Color("Black"));
end;
2011-03-17 01:47:30 -04:00
};
};
t[#t+1] = Def.ActorFrame {
Condition=( gc:GetName() == "Back" );
2013-07-05 22:17:42 -04:00
InitCommand=function(self)
self:x(c.X);
self:y(c.Y);
end;
GainFocusCommand=function(self)
self:finishtweening();
self:zoom(1.125);
self:bounceend(0.125);
self:zoom(1);
end;
LoseFocusCommand=function(self)
self:stoptweening();
self:linear(0.125);
self:zoom(0.875);
end;
2011-03-17 01:47:30 -04:00
LoadActor("_base") .. {
2013-07-05 22:17:42 -04:00
GainFocusCommand=function(self)
self:stoptweening();
self:linear(0.125);
self:diffuse(Color("Red"));
end;
LoseFocusCommand=function(self)
self:stoptweening();
self:linear(0.125);
self:diffuse(Color("White"));
end;
2011-03-17 01:47:30 -04:00
};
LoadFont("Common Normal") .. {
Text=gc:GetName();
2013-07-05 22:17:42 -04:00
InitCommand=function(self)
self:strokecolor(Color("White"));
end;
OnCommand=function(self)
self:diffuse(Color("Black"));
end;
2011-03-17 01:47:30 -04:00
};
};
2010-01-26 21:00:30 -06:00
return t;