diff --git a/LuaMenu/widgets/api_ingame_interface.lua b/LuaMenu/widgets/api_ingame_interface.lua index b7604aa50..a2fa3c565 100644 --- a/LuaMenu/widgets/api_ingame_interface.lua +++ b/LuaMenu/widgets/api_ingame_interface.lua @@ -20,6 +20,14 @@ end local externalFunctions = {} +function externalFunctions.SetLobbyOverlayActive(newActive) + if Spring.SendLuaUIMsg then + Spring.SendLuaUIMsg("LobbyOverlayActive" .. ((newActive and "1") or "0")) + else + Spring.Echo("Spring.SendLuaUIMsg does not exist in LuaMenu") + end +end + -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- Callins diff --git a/LuaMenu/widgets/chobby/components/interface_root.lua b/LuaMenu/widgets/chobby/components/interface_root.lua index 29c41ec2a..99d31ed1c 100644 --- a/LuaMenu/widgets/chobby/components/interface_root.lua +++ b/LuaMenu/widgets/chobby/components/interface_root.lua @@ -672,6 +672,10 @@ function GetInterfaceRoot(optionsParent, mainWindowParent, fontFunction) ingameInterfaceHolder:Show() ingameInterfaceHolder:BringToFront() end + + if WG.IngameInterface then + WG.IngameInterface.SetLobbyOverlayActive(newVisible) + end end local function SetTopBarVisible(newVisible)