Mod API Reference:Client MapLayers: Revision history

Jump to navigation Jump to search

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

2 November 2026

  • curprev 10:5410:54, 2 November 2026‎ Fizzer talk contribs‎ 4,244 bytes +4,244‎ Created page with " Put the function in a file named <code>Client_MapLayers.lua</code>: <pre> function Client_MapLayers(game, layers) local layer = layers.Create('Territory IDs', true); for terrID, _ in pairs(game.Map.Territories) do layer.AddLabel(terrID, tostring(terrID)); end end </pre> Client_Visual draws a visual for one order. This hook instead draws '''map layers''': labels and shapes that stay on the map for as long as the g..."