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-10-02 06:32:27 -05:00
|
|
|
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
|
2013-09-22 01:59:55 -07:00
|
|
|
end;
|
2013-10-02 06:32:27 -05:00
|
|
|
GainFocusCommand=cmd(diffusealpha,1);
|
2013-09-22 01:59:55 -07:00
|
|
|
LoseFocusCommand=cmd(diffusealpha,0.5);
|
2011-03-17 01:47:30 -04:00
|
|
|
};
|
|
|
|
|
|
2013-09-22 01:59:55 -07:00
|
|
|
|
2011-01-21 14:24:08 -08:00
|
|
|
return t;
|