From ecc70a333d0d149082d010ef9f5022bcdf945bab Mon Sep 17 00:00:00 2001 From: Thomas Date: Sun, 12 Jul 2026 00:48:31 +0200 Subject: [PATCH] Tourismustal: Oeko-Marker Panoramaweg = Muelleimer statt Solarzelle Ein Weg hat kein Dach - der gepflegte Muelleimer am Wegrand (rechte Ecke) erzaehlt sanften Tourismus besser. Position weiter ueber den Editor-Solar-Modus justierbar (gleiches SOLAR_POS-System). Co-Authored-By: Claude Opus 4.8 (1M context) --- App/sims/tourismustal/js/iso.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/App/sims/tourismustal/js/iso.js b/App/sims/tourismustal/js/iso.js index 8a05eab..94d8809 100644 --- a/App/sims/tourismustal/js/iso.js +++ b/App/sims/tourismustal/js/iso.js @@ -125,6 +125,7 @@ export const SOLAR_POS = { 'badesee@L2': { dx: -28, dy: -3, s: 1 }, 'badesee@L3': { dx: -27, dy: -3, s: 1 }, 'badesee@L4': { dx: -27, dy: -3, s: 1 }, + trail: { dx: 18, dy: -4, s: 1 }, // Öko-Marker Panoramaweg = Mülleimer, rechte Ecke }; // Feinjustierung aus dem Editor (editor.html): überschreibt SPRITE_DEFS- @@ -2283,6 +2284,19 @@ export class IsoRenderer { ctx.save(); ctx.translate(x + (pos.dx ?? 0), y + (pos.dy ?? 0)); ctx.scale(s, s); + // Panoramaweg: statt Solarzelle ein gepflegter Mülleimer am Wegrand + if (key.replace(/^mega_/, '') === 'trail') { + ctx.fillStyle = '#3f6b4f'; // Korpus + ctx.fillRect(-2.4, -5.2, 4.8, 5.6); + ctx.fillStyle = this._shade('#3f6b4f', -18); // Schattenseite + ctx.fillRect(0.6, -5.2, 1.8, 5.6); + ctx.fillStyle = '#2f3e46'; // Deckel + ctx.fillRect(-3, -6.6, 6, 1.7); + ctx.fillStyle = 'rgba(255,255,255,0.75)'; // Einwurf + ctx.fillRect(-1.4, -6.2, 2.8, 0.8); + ctx.restore(); + return; + } ctx.fillStyle = '#2d4a66'; ctx.beginPath(); ctx.moveTo(-9, 3); ctx.lineTo(1, -2); ctx.lineTo(10, 2.5); ctx.lineTo(0, 7.5);