From 62104a97b6431d4389a5f9e0dad52f1721f84f65 Mon Sep 17 00:00:00 2001 From: "E. Almqvist" Date: Thu, 5 Mar 2020 18:23:35 +0100 Subject: [PATCH] Stuff --- gamemode/engine/derma/menus/menu_intro.lua | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/gamemode/engine/derma/menus/menu_intro.lua b/gamemode/engine/derma/menus/menu_intro.lua index 9fb2d9e..9991868 100644 --- a/gamemode/engine/derma/menus/menu_intro.lua +++ b/gamemode/engine/derma/menus/menu_intro.lua @@ -163,6 +163,9 @@ local scenes = { ang2 = Angle( 1.5103136301041, 28.336471557617, 0 ) }, [5] = { -- add scenes below + -- this map is a pure 11/10 + -- for anyone reading this comment + -- download it now fov = 60, velocity = 16, pos1 = Vector( -9168.173828125, 3501.13671875, 8610.853515625 ), @@ -221,7 +224,9 @@ function intro.open() f.Think = function( self ) if( Quantum.Client.Cam.Temp ) then if( Quantum.Client.Cam.Temp.Finished == true ) then -- if the scene is finished then close the menu and exit the cinematic - fade.transition( f, {}, 1, 1, 1, Color( 0, 0, 0, 255 ), true, Quantum.EmptyFunction, function() Quantum.Client.IsInMenu = false end ) + fade.transition( f, {}, 1, 1, 1, Color( 0, 0, 0, 255 ), true, Quantum.EmptyFunction, function() + Quantum.Client.IsInMenu = false + end) end end end @@ -241,7 +246,9 @@ function intro.open() skip:SetPos( f.w - skip.w - padding, f.h - skip.h - padding ) skip.DoClick = function( self ) surface.PlaySound( "UI/buttonclick.wav" ) - fade.transition( f, {}, 1, 1, 2, Color( 0, 0, 0, 255 ), true, Quantum.EmptyFunction, function() Quantum.Client.IsInMenu = false end ) -- close the intro but smoothly + fade.transition( f, {}, 1, 1, 2, Color( 0, 0, 0, 255 ), true, Quantum.EmptyFunction, function() + Quantum.Client.IsInMenu = false -- close intro but smoothly + end) end skip.OnCursorEntered = function() surface.PlaySound( "UI/buttonrollover.wav" ) end @@ -288,4 +295,4 @@ function intro.open() end end -return intro \ No newline at end of file +return intro