onGameplayFlashMessage
Definition
-- @/lua/ge/extensions/ui/gameplayAppContainers.lua:293
-- Intelligent flash message routing - handles all game flash messages in Lua
local function onGameplayFlashMessage(data)
if not data or not data.source then
if verboseLogging then
log('W', logTag, 'Invalid flash message data received')
else
log('D', logTag, 'Invalid flash message data received')
end
return
end
local appId = (function()
local sourceToAppId = { drift = 'drift', drag = 'drag' }
return sourceToAppId[data.source]
end)()
if not appId then
if verboseLogging then
log('W', logTag, 'Unknown flash message source: ' .. tostring(data.source))
else
log('D', logTag, 'Unknown flash message source: ' .. tostring(data.source))
end
return
end
-- Only queue message if the source app is currently visible
if getAppVisibility('gameplayApps', appId) then
queueFlashMessage(data.data, data.source)
processNextMessage() -- Try to start processing immediately if no current message
end
end
Callers
@/lua/ge/extensions/ui/gameplayAppContainers.lua
showApp(containerId, 'drift')
onGameplayFlashMessage({
source = 'drift',
showApp(containerId, 'drag')
onGameplayFlashMessage({
source = 'drag',
showApp(containerId, 'drift')
onGameplayFlashMessage({
source = 'drift',
showApp(containerId, 'drift')
onGameplayFlashMessage({
source = 'drift',