From e6b6874dc92551bb93949419dc48111d3c4a77d5 Mon Sep 17 00:00:00 2001 From: AJ Kelly Date: Mon, 31 Jan 2011 14:30:40 -0600 Subject: [PATCH] darken background in Edit/Practice --- .../BGAnimations/ScreenEdit background.lua | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/Themes/default/BGAnimations/ScreenEdit background.lua b/Themes/default/BGAnimations/ScreenEdit background.lua index 3573893d03..c24f3b6ab5 100644 --- a/Themes/default/BGAnimations/ScreenEdit background.lua +++ b/Themes/default/BGAnimations/ScreenEdit background.lua @@ -10,6 +10,22 @@ t[#t+1] = Def.ActorFrame { 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.325) + else + self:diffusealpha(0) + end; + end; + end; + EditorShowMessageCommand=cmd(stoptweening;linear,0.5;diffusealpha,0.75); + EditorHideMessageCommand=cmd(stoptweening;linear,0.5;diffusealpha,0.325); + }; }; return t;