Files
itgmania212121/Themes/HelloWorld/Graphics/ScreenGuideMain scroll.lua
T

91 lines
2.1 KiB
Lua
Raw Normal View History

2013-07-02 20:28:29 -04:00
local gc = Var("GameCommand")
local itemName = gc:GetName()
local t = Def.ActorFrame{
-- focused frame
LoadActor( THEME:GetPathG("SectionMenu","ItemFocused") )..{
GainFocusCommand=function(self)
self:decelerate(0.25);
self:diffusealpha(1);
end;
LoseFocusCommand=function(self)
self:stoptweening();
self:decelerate(0.25);
self:diffusealpha(0);
end;
};
-- unfocused
LoadActor( THEME:GetPathG("SectionMenu","ItemUnfocused") )..{
GainFocusCommand=function(self)
self:decelerate(0.25);
self:diffusealpha(0);
end;
LoseFocusCommand=function(self)
self:stoptweening();
self:decelerate(0.25);
self:diffusealpha(1);
end;
};
LoadActor( THEME:GetPathG("_section", "Guide") )..{
InitCommand=function(self)
self:x(-240);
self:y(-23);
self:Real();
self:halign,(0);
end;
GainFocusCommand=function(self)
self:decelerate(0.25);
self:diffusealpha(0.9);
end;
LoseFocusCommand=function(self)
self:stoptweening();
self:decelerate(0.25);
self:diffusealpha(0.45);
end;
};
Def.ActorFrame{
LoadFont("_frutiger roman 24px")..{
Name="SectionName";
Text=THEME:GetString("ScreenGuideMain",itemName);
InitCommand=function(self)
self:x(-246);
self:y(-6);
self:halign(0);
self:diffuse(color("#222222FF"));
end;
GainFocusCommand=function(self)
self:decelerate(0.25);
self:diffusealpha(1);
end;
LoseFocusCommand=function(self)
self:stoptweening();
self:decelerate(0.25);
self:diffusealpha(0.5);
end;
};
LoadFont("_frutiger roman 24px")..{
Name="SectionDesc";
Text=THEME:GetString("ScreenGuideMain",itemName.."Desc");
InitCommand=function(self)
self:x(-244);
self:y(10);
self:align(0, 0);
self:diffuse(color("#222222FF"));
self:zoom(0.5);
end;
GainFocusCommand=function(self)
self:decelerate(0.25);
self:diffusealpha(1);
end;
LoseFocusCommand=function(self)
self:stoptweening();
self:decelerate(0.25);
self:diffusealpha(0.5);
end;
};
};
};
2011-02-22 23:09:05 -06:00
return t;