GE Lua Documentation

Press F to search!

setContainerContext

Definition


-- @/lua/ge/extensions/ui/gameplayAppContainers.lua:142

-- Legacy context-based functions for backward compatibility
local function setContainerContext(containerId, context)
  if verboseLogging then
    log('W', logTag, 'setContainerContext is deprecated, use setAppVisibility instead')
  else
    log('D', logTag, 'setContainerContext is deprecated, use setAppVisibility instead')
  end
  if not context then
    hideAllApps(containerId)
    return
  end
  hideAllApps(containerId)
  showApp(containerId, context)
end

Callers

@/lua/ge/extensions/flowgraph/modules/uiModule.lua
  if context and context ~= '' and ui_gameplayAppContainers then
    ui_gameplayAppContainers.setContainerContext('gameplayApps',context)
    self.appContainerContext = context