From caffcbdb213c00bf7bf1e94e5f10884289eaaeee Mon Sep 17 00:00:00 2001 From: AlmTech Software Date: Fri, 24 Jan 2020 22:12:17 +0100 Subject: [PATCH] Added screen fading to cinematic at end --- gamemode/engine/derma/menus/menu_intro.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gamemode/engine/derma/menus/menu_intro.lua b/gamemode/engine/derma/menus/menu_intro.lua index 84851d5..f518ff9 100644 --- a/gamemode/engine/derma/menus/menu_intro.lua +++ b/gamemode/engine/derma/menus/menu_intro.lua @@ -161,7 +161,10 @@ function intro.open() f.w, f.h = f:GetSize() f.Think = function( self ) - if( Quantum.Client.Cam.Temp.Finished == true ) then self:Close() end -- if the scene is finished then close the menu and exit the cinematic + if( Quantum.Client.Cam.Temp.Finished == true ) then -- if the scene is finished then close the menu and exit the cinematic + --self:Close() + fade.transition( f, {}, 1, 1, 1, Color( 0, 0, 0, 255 ), true, Quantum.EmptyFunction, function() Quantum.Client.IsInMenu = false end ) + end end --- MUSIC ---