GE Lua Documentation

Press F to search!

setButtonActiveById

Definition


-- @/lua/ge/extensions/core/recoveryPrompt.lua:512

local function setButtonActiveById(id, a)
  if not buttonOptions[id] then log("W","","Tried to set active for button, but the id couldnt be found: " .. dumps(id)) return end
  buttonOptions[id].active = a
end

Callers

@/lua/ge/extensions/gameplay/rally/loop/rallyLoopManager.lua
  self:setClockPaused(false)
  core_recoveryPrompt.setButtonActiveById('restartMission', true)
@/lua/ge/extensions/core/recoveryPrompt.lua
  for id, btnActive in pairs(data.buttons or {}) do
    setButtonActiveById(id, btnActive)
  end
@/lua/ge/extensions/flowgraph/nodes/gameplay/recoveryPrompt/setRecoveryPromptActive.lua
      if self.pinIn[o].value ~= nil then
        core_recoveryPrompt.setButtonActiveById(o, self.pinIn[o].value)
        --if self.pinIn.enableAll.value ~= nil and  then