0.1.144: Wegenetz - Karten-ID per Zonenname aufloesen, Label zuruecksetzen

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016onJCSHLwhs9udhC9ZLzk9
This commit is contained in:
Lacustat
2026-10-27 12:48:25 +01:00
co-authored by Claude Sonnet 5.5
parent eae43ba1d1
commit 5a209a3d8a
3 changed files with 36 additions and 2 deletions
+4 -1
View File
@@ -473,7 +473,10 @@ function PM.Refresh()
layer:Show()
local mapID = CurrentMapID()
local canvas = Canvas()
if not (mapID and canvas) then return end
if not (mapID and canvas) then
label:SetText(FW.L.CODEX_PATHMAP_NONE) -- nicht die Zeile der vorherigen Karte stehen lassen
return
end
local width, height = canvas:GetWidth() or 1, canvas:GetHeight() or 1
if width < 2 or height < 2 then return end
local res = PM.Compute(mapID)