GE Lua Documentation

Press F to search!

poiHovered

Definition


-- @/lua/ge/extensions/freeroam/bigMapMode.lua:1146


-- called from the UI when a poi is hovered in the list.
local function poiHovered(poiIdInCluster, hovered)
  if hovered then
    hoveredPreviewMissionId = showMissionWorldPreview(poiIdInCluster)
  else
    if selectedPreviewMissionId then
      showMissionWorldPreview(selectedPreviewMissionId)
    else
      clearRoutePreview()
    end
    hoveredPreviewMissionId = nil
  end
  M.hoveredListItem = hovered and poiIdInCluster or nil
end

Callers

@/lua/ge/extensions/freeroam/vueBigMap.lua
  if freeroam_bigMapMode then
    freeroam_bigMapMode.poiHovered(poiId, active)
  end
@/ui/modules/bigmap/bigmap.js
    $scope.onHover = function (poiId, active) {
      bngApi.engineLua(`if freeroam_bigMapMode then freeroam_bigMapMode.poiHovered("${poiId}",${active}) end`);
    };
      }
      bngApi.engineLua(`if freeroam_bigMapMode then freeroam_bigMapMode.deselect() freeroam_bigMapMode.poiHovered(nil, nil) end`)
    }