Files
itgmania212121/Themes/rsr/Graphics/ScreenTitleMenu scroll.lua
T
Jonathan Payne e8590451d8 Make rsr a little better again
Here come the huge lazy commits.

(Sourced from shakesoda/stepmania.)
2013-10-05 03:03:19 -07:00

22 lines
443 B
Lua

local gc = Var("GameCommand");
local colors = {
Exit = Color.Red;
}
local t = Def.ActorFrame {};
t[#t+1] = LoadFont("Common Normal") .. {
Text=gc:GetName();
InitCommand=cmd(horizalign,right;shadowlength,1.5;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);
};
return t;