GE Lua Documentation

Press F to search!

_clear

Definition


-- @/lua/ge/extensions/gameplay/drag/general.lua:142

local function clear()
  dragData = nil
  debugModule.setSelectedVehicle(-1)
  debugModule.setAviableLanes({})
  needsMapReload = false
  needsCollisionRebuild = false
  dragExtension = nil
  unloadAllExtensions()
  gameplayContext = "freeroam"
  if ui_gameplayAppContainers then
    ui_gameplayAppContainers.hideApp('gameplayApps', 'drag')
    -- Clear any queued drag flash messages when clearing drag system
    ui_gameplayAppContainers.clearMessagesFromSource('drag')
  end
  guihooks.trigger('updateTreeLightStaging', false)
end

Callers

@/lua/ge/extensions/gameplay/drag/dragBridge.lua

  gameplay_drag_general._clear()
  local data = gameplay_drag_general._loadDragStripData(filepath)
M.unloadRace = function()
  gameplay_drag_general._clear()
end
@/inspector/Views/GoToLineDialog.js
        this._input.focus();
        this._clear();
    }
            } else
                this._clear();
    {
        this._clear();
    }

    _clear()
    {
@/inspector/Views/OpenResourceDialog.js
        this._inputElement.focus();
        this._clear();
    }
            } else
                this._clear();
    {
        this._clear();
    }

    _clear()
    {