GE Lua Documentation

Press F to search!

showPointsMessage

Definition


-- @/lua/ge/extensions/gameplay/crawl/display.lua:40

local function showPointsMessage(points)
  ui_message({txt="ui.crawl.penaltyPoints", context={points=points}}, 600, "points")
end

Callers

@/lua/ge/extensions/gameplay/crawl/utils.lua
    gameplay_crawl_display.showStartedCrawlMessage()
    gameplay_crawl_display.showPointsMessage(crawlerData.points or 0)
    state.events.crawlStarted = true
  gameplay_crawl_display.clearPointsMessage()
  gameplay_crawl_display.showPointsMessage(0)
    if state.crawlerData.points ~= state.crawlerData.lastPoints then
      gameplay_crawl_display.showPointsMessage(state.crawlerData.points)
      state.crawlerData.lastPoints = state.crawlerData.points
  if state.crawlerData then
    gameplay_crawl_display.showPointsMessage(state.crawlerData.points or 0)
  end