VE Lua Documentation

Press F to search!

updateSimpleControlButtons

Definition


-- @/lua/vehicle/powertrain.lua:304

local function updateSimpleControlButtons()
  for _, device in pairs(powertrainDevices) do
    if device.updateSimpleControlButtons then
      device:updateSimpleControlButtons()
    end
  end
end

Callers

@/lua/vehicle/controller.lua

local function updateSimpleControlButtons()
  for _, v in pairs(loadedControllers) do
    if v.updateSimpleControlButtons then
      v.updateSimpleControlButtons()
    end
@/lua/vehicle/powertrain/shaft.lua

local function updateSimpleControlButtons(device)
  if #device.availableModes > 1 and device.uiSimpleModeControl then
  selectUpdates(device)
  device:updateSimpleControlButtons()
end
@/lua/vehicle/extensions/ui/simplePowertrainControl.lua
local function updateButtons()
  powertrain.updateSimpleControlButtons()
  controller.updateSimpleControlButtons()
  powertrain.updateSimpleControlButtons()
  controller.updateSimpleControlButtons()
end
@/lua/vehicle/controller/esc.lua

local function updateSimpleControlButtons()
  updateSimpleButton(true)
@/lua/vehicle/controller/jato.lua

local function updateSimpleControlButtons()
  extensions.ui_simplePowertrainControl.setButton("jato_" .. M.name, "JATO", "powertrain_jato", "0072bc", lastFuelRatio, "electrics.values.jatoInput = 1 - (electrics.values.jatoInput or 0)")
    lastFuelRatio = fuelRatio
    updateSimpleControlButtons()
  end
@/lua/vehicle/powertrain/rangeBox.lua

local function updateSimpleControlButtons(device)
  if #device.availableModes > 1 and device.uiSimpleModeControl then
  end
  device:updateSimpleControlButtons()
end
@/lua/vehicle/powertrain/differential.lua

local function updateSimpleControlButtons(device)
  if #device.availableModes > 1 and device.uiSimpleModeControl then
  selectUpdates(device)
  device:updateSimpleControlButtons()
end
@/lua/vehicle/controller/nitrousOxideInjection.lua

local function updateSimpleControlButtons()
  local color = simpleButtonColorInactive
    n2oData.isActive = isActive
    updateSimpleControlButtons()
  end
@/lua/vehicle/powertrain.lua
    if device.updateSimpleControlButtons then
      device:updateSimpleControlButtons()
    end
@/lua/vehicle/controller/driveModes.lua

local function updateSimpleControlButtons()
  for _, buttonData in pairs(simpleControlButtons) do