Skip to content

Commit

Permalink
Added chobby stuff for #380
Browse files Browse the repository at this point in the history
  • Loading branch information
GoogleFrog committed Nov 25, 2016
1 parent 441ecc4 commit cd76b5c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
8 changes: 8 additions & 0 deletions LuaMenu/widgets/api_ingame_interface.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions LuaMenu/widgets/chobby/components/interface_root.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit cd76b5c

Please sign in to comment.