GE Lua Documentation

Press F to search!

isEditorActive

Definition


-- @/lua/ge/extensions/editor/main.lua:585

local function isEditorActive()
  return M.active
end

Callers

@/lua/ge/extensions/editor/camPathEditor.lua
    or not editor.isEditorActive
    or not editor.isEditorActive()
    or not editor.editMode
@/lua/ge/extensions/util/richPresence.lua
  local appendLevel, appendVehicle
  if editor and editor.isEditorActive() then
    msg = "Using World Editor"
@/lua/ge/extensions/gameplay/rallyLoop.lua
local function shouldShowLoopToolbox()
  return not core_input_bindings.isMenuActive and not (editor and editor.isEditorActive())
end
@/lua/ge/extensions/gameplay/sites/location.lua

  local drawSqDist = square(editor.isEditorActive() and editor.getPreference("gizmos.visualization.visualizationDrawDistance") or 300)
  local camSqDist = self.pos:squaredDistance(core_camera.getPosition())
@/lua/ge/extensions/gameplay/rally/recceApp.lua
local function draw()
  if showNotes and not (editor and editor.isEditorActive()) then
    local rm = gameplay_rally.getRallyManager()
@/lua/ge/extensions/editor/engineAudioDebug.lua
local function onVehicleSwitched(oldVehicle, newVehicle, player)
  if editor and editor.isEditorActive and editor.isEditorActive() then
    updateVehicleData()
@/lua/ge/extensions/gameplay/sites/zone.lua
  if not isVisible then
    local drawSqDist = square(editor.isEditorActive() and editor.getPreference("gizmos.visualization.visualizationDrawDistance") or 500)
    for _, v in ipairs(self.vertices) do
@/lua/ge/extensions/gameplay/garageMode.lua
local function objectsShouldBeHidden()
  return objectsAutohide and not editor.isEditorActive()
end
@/lua/ge/extensions/gameplay/sites/parkingSpot.lua
  local camSqDist = self.pos:squaredDistance(core_camera.getPosition())
  local drawDist = editor.isEditorActive() and editor.getPreference("gizmos.visualization.visualizationDrawDistance") or 300
@/lua/ge/extensions/gameplay/rally.lua
local function shouldShowRallyToolbox()
  return not core_input_bindings.isMenuActive and not (editor and editor.isEditorActive())
end
@/lua/ge/extensions/editor/vehicleEditor/liveEditor/vePowerTrain.lua
local function onVehicleSwitched(oldVehicle, newVehicle, player)
  if editor and editor.isEditorActive and editor.isEditorActive() then
    requestDeviceStringUpdate()