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

22 lines
447 B
Lua
Raw Normal View History

2011-03-17 01:47:30 -04:00
local gc = Var("GameCommand");
2013-09-22 01:59:55 -07:00
local colors = {
Exit = Color.Red;
}
2011-03-17 01:47:30 -04:00
local t = Def.ActorFrame {};
t[#t+1] = LoadFont("Common Normal") .. {
2013-09-22 01:59:55 -07:00
Text=gc:GetName();
InitCommand=cmd(horizalign,right;playcommand,"Set");
SetCommand=function(self)
if colors[gc:GetName()] ~= nil then
self:diffuse(colors[gc:GetName()]);
end
end;
GainFocusCommand=cmd(diffusealpha,1);
LoseFocusCommand=cmd(diffusealpha,0.5);
2011-03-17 01:47:30 -04:00
};
2013-09-22 01:59:55 -07:00
return t;