GE Lua Documentation

Press F to search!

formatPoiForBigmap

Definition


-- @/lua/ge/extensions/freeroam/bigMapPoiProvider.lua:177
M.formatPoiForBigmap = function(poi)
  local bmi = poi.markerInfo.bigmapMarker
  local qtEnabled = (not career_career.isActive()) or (career_modules_linearTutorial.getTutorialFlag('quickTravelEnabled'))
  local icon = bmi.cardIcon or poiTypeIcons[poi.data.type]
  return {
    id = poi.id,
    icon = icon,
    --idInCluster = poi.idInCluster,
    name = bmi.name,
    description = bmi.description,
    thumbnailFile = bmi.thumbnail,
    previewFiles = bmi.previews,
    type = poi.data.type,
    label = '',
    quickTravelAvailable = bmi.quickTravelPosRotFunction and qtEnabled or false,
    quickTravelUnlocked = bmi.quickTravelPosRotFunction and qtEnabled or false,
    canSetRoute = bmi.pos,
    aggregatePrimary = bmi.aggregatePrimary,
    aggregateSecondary = bmi.aggregateSecondary,
  }
end

Callers

@/lua/ge/extensions/freeroam/vueBigMap.lua
-- Format POI for bigmap
local function formatPoiForBigmap(poi)
  local bmi = poi.markerInfo.bigmapMarker
local function processNonMissionPoi(poi, groupData)
  local formatted = formatPoiForBigmap(poi)
  local filterData = {
@/lua/ge/extensions/freeroam/bigMapPoiProvider.lua
local function processNonMissionPoi(poi, groupData, playerPos, distanceFilter)
  local formatted = M.formatPoiForBigmap(poi)
  local filterData = {