Files
itgmania212121/Themes/legacy/BGAnimations/ScreenEdit background.lua
T
ListenerJubatus f257f19dad Add new 5.1 default theme Lambda
I'd like to thank everyone who made this possible;, including but not
limited to Riakodoadm, MrThatKid, kyzentun, Luizsan, JoseVarelaP,
everyone else who provided feedback and bug reports.
2017-08-08 01:07:34 -06:00

28 lines
832 B
Lua

local t = Def.ActorFrame {
InitCommand=cmd(fov,90);
};
t[#t+1] = Def.ActorFrame {
InitCommand=cmd(Center);
LoadActor( THEME:GetPathB("ScreenWithMenuElements","background/_bg top") ) .. {
InitCommand=cmd(scaletoclipped,SCREEN_WIDTH,SCREEN_HEIGHT);
};
Def.Quad{
InitCommand=cmd(scaletoclipped,SCREEN_WIDTH,SCREEN_HEIGHT;diffuse,color("0.2,0.2,0.2,0"));
OnCommand=function(self)
local topScreen = SCREENMAN:GetTopScreen()
if topScreen then
local screenName = topScreen:GetName()
if screenName == "ScreenEdit" or screenName == "ScreenPractice" then
self:diffusealpha(0.95)
else
self:diffusealpha(0.65)
end;
end;
end;
EditorShowMessageCommand=cmd(stoptweening;linear,0.5;diffusealpha,0.95);
EditorHideMessageCommand=cmd(stoptweening;linear,0.5;diffusealpha,0.65);
};
};
return t;