DONE! All lua is future-proofed.
This commit is contained in:
@@ -1,10 +1,33 @@
|
||||
return LoadFont("Common Normal") .. {
|
||||
Text=ScreenString("Exit");
|
||||
InitCommand=cmd(x,SCREEN_CENTER_X;zoom,0.75;shadowlength,0;diffuse,color("#880000");NoStroke);
|
||||
OnCommand=cmd(diffusealpha,0;decelerate,0.5;diffusealpha,1);
|
||||
OffCommand=cmd(stoptweening;accelerate,0.3;diffusealpha,0;queuecommand,"Hide");
|
||||
HideCommand=cmd(visible,false);
|
||||
|
||||
GainFocusCommand=cmd(diffuseshift;effectcolor1,color("#FF2222");effectcolor2,color("#880000"););
|
||||
LoseFocusCommand=cmd(stopeffect);
|
||||
};
|
||||
return LoadFont("Common Normal") .. {
|
||||
Text=ScreenString("Exit");
|
||||
InitCommand=function(self)
|
||||
self:x(SCREEN_CENTER_X);
|
||||
self:zoom(0.75);
|
||||
self:shadowlength(0);
|
||||
self:diffuse(color("#880000"));
|
||||
self:NoStroke();
|
||||
end;
|
||||
OnCommand=function(self)
|
||||
self:diffusealpha(0);
|
||||
self:decelerate(0.5);
|
||||
self:diffusealpha(1);
|
||||
end;
|
||||
OffCommand=function(self)
|
||||
self:stoptweening();
|
||||
self:accelerate(0.3);
|
||||
self:diffusealpha(0);
|
||||
self:queuecommand("Hide");
|
||||
end;
|
||||
HideCommand=function(self)
|
||||
self:visible(false);
|
||||
end;
|
||||
|
||||
GainFocusCommand=function(self)
|
||||
self:diffuseshift();
|
||||
self:effectcolor1(color("#FF2222"));
|
||||
self:effectcolor2(color("#880000"));
|
||||
end;
|
||||
LoseFocusCommand=function(self)
|
||||
self:stopeffect();
|
||||
end;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user