isStateWithPlaymodeMarkers
Definition
-- @/lua/ge/extensions/gameplay/playmodeMarkers.lua:123
local function isStateWithPlaymodeMarkers()
if core_gamestate.state and M.validPlaymodeMarkersStates[core_gamestate.state.state] then
return true
end
return false
end
Callers
@/lua/ge/extensions/freeroam/bigMapPoiProvider.lua
local function onPreRender(dtReal, dtSim)
if not gameplay_playmodeMarkers.isStateWithPlaymodeMarkers() then
return
@/lua/ge/extensions/ui/apps/minimap/minimap.lua
-- draw playmode markers
if debugSettings.drawPlaymodeMarkers and gameplay_playmodeMarkers.isStateWithPlaymodeMarkers() then
drawPlaymodeMarkers()
@/lua/ge/extensions/gameplay/missions/missionScreen.lua
local function getMissionsAtCurrentLocationFormatted()
if not gameplay_playmodeMarkers.isStateWithPlaymodeMarkers() then return nil end
local dataToSend = {}
openMenuWithCustomMissionList = nil
if gameplay_playmodeMarkers.isStateWithPlaymodeMarkers() and missions and next(missions) then
extensions.hook("onAvailableMissionsSentToUi", context) -- for tutorial
@/lua/ge/extensions/gameplay/markerInteraction.lua
M.formatDataForUi = function()
if not M.isStateWithPlaymodeMarkers() then return nil end
local dataToSend = {}
local function onPreRender(dtReal, dtSim)
if not gameplay_playmodeMarkers.isStateWithPlaymodeMarkers() then
gameplay_playmodeMarkers.clear()