From b771dca42587c5704cb254da53c177b4070e725b Mon Sep 17 00:00:00 2001 From: AlmTech Software Date: Fri, 22 Nov 2019 22:04:05 +0100 Subject: [PATCH] Bug fix --- gamemode/engine/core/sh_player_binds.lua | 4 ++++ gamemode/engine/derma/menus/menu_main.lua | 1 - 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/gamemode/engine/core/sh_player_binds.lua b/gamemode/engine/core/sh_player_binds.lua index f2c1aaf..796978f 100644 --- a/gamemode/engine/core/sh_player_binds.lua +++ b/gamemode/engine/core/sh_player_binds.lua @@ -14,6 +14,9 @@ if SERVER then end, ["mainMenu"] = function( pl ) Quantum.Net.OpenMenu( pl, "main", Quantum.Server.Char.GetPlayerChars_cl( pl ) ) + end, + ["intro"] = function( pl ) + Quantum.Net.OpenMenu( pl, "intro", {} ) end } @@ -22,5 +25,6 @@ if SERVER then end function GM:ShowHelp( ply ) keyfuncs["openCharMenu"]( ply ) end function GM:ShowTeam( ply ) keyfuncs["mainMenu"]( ply ) end + function GM:ShowSpare2( ply ) keyfuncs["intro"]( ply ) end end \ No newline at end of file diff --git a/gamemode/engine/derma/menus/menu_main.lua b/gamemode/engine/derma/menus/menu_main.lua index ee0e79b..b9df782 100644 --- a/gamemode/engine/derma/menus/menu_main.lua +++ b/gamemode/engine/derma/menus/menu_main.lua @@ -130,7 +130,6 @@ function main.open(dt) play.DoClick = function( self ) surface.PlaySound( "UI/buttonclick.wav" ) - --charmenu.open( dt ) f:Close() end play.OnCursorEntered = function() surface.PlaySound( "UI/buttonrollover.wav" ) end