diff --git a/art/prep/ortsbilder/_ortsbild_1920x1080.png b/art/prep/ortsbilder/_ortsbild_1920x1080.png new file mode 100644 index 0000000..815ff13 Binary files /dev/null and b/art/prep/ortsbilder/_ortsbild_1920x1080.png differ diff --git a/game/scenes/world/ortsbild.gd b/game/scenes/world/ortsbild.gd index f3816f3..6a2655c 100644 --- a/game/scenes/world/ortsbild.gd +++ b/game/scenes/world/ortsbild.gd @@ -39,6 +39,15 @@ func _ready() -> void: s.centered = false add_child(s) + # Leichte Abdunklung: das gemalte Bild bleibt, aber die Schilder davor + # bekommen Kontrast (Befund: die cremefarbene Schrift ging im hellen + # Pflaster und in den Dächern unter). + var dimm := ColorRect.new() + dimm.color = Color(0.04, 0.03, 0.02, 0.18) + dimm.set_anchors_and_offsets_preset(Control.PRESET_FULL_RECT) + dimm.mouse_filter = Control.MOUSE_FILTER_IGNORE + add_child(dimm) + _hotspots() @@ -79,33 +88,55 @@ func _hotspots() -> void: knopf.pressed.connect(_auf_ziel.bind(h)) wurzel.add_child(knopf) + # Das Schild steht auf einer dunklen Tafel: auf hellem Pflaster und + # Dächern ist freie Schrift nicht zuverlässig lesbar. + var tafel := PanelContainer.new() + tafel.position = knopf.position + Vector2(10, 10) + tafel.mouse_filter = Control.MOUSE_FILTER_IGNORE + var sb_tafel := StyleBoxFlat.new() + sb_tafel.bg_color = Color(0.06, 0.05, 0.04, 0.86) + sb_tafel.border_color = Color(0.85, 0.71, 0.41, 0.75) + sb_tafel.set_border_width_all(2) + sb_tafel.set_content_margin_all(10) + sb_tafel.set_corner_radius_all(4) + tafel.add_theme_stylebox_override("panel", sb_tafel) var beschriftung := Label.new() beschriftung.text = String(h.get("name", "")).to_upper() - beschriftung.position = knopf.position + Vector2(12, 8) - # Ziele, die wirklich weiterführen, bleiben leise sichtbar: ein Tor, - # das man erst durch Überfahren findet, ist kein Ziel, sondern ein - # Versteck. Noch nicht gebaute Ziele erscheinen weiter nur beim Hover. - var basis := 0.78 if h.get("ziel") else 0.0 - beschriftung.modulate = Color(0.95, 0.88, 0.70, basis) - beschriftung.add_theme_color_override("font_outline_color", - Color(0.09, 0.07, 0.05, 0.9)) - beschriftung.add_theme_constant_override("outline_size", 6) + beschriftung.add_theme_color_override("font_color", Color(0.95, 0.87, 0.66)) + tafel.add_child(beschriftung) + # Ziele, die wirklich weiterführen, bleiben sichtbar; noch nicht + # gebaute erscheinen weiter nur beim Überfahren. + var basis := 1.0 if h.get("ziel") else 0.0 + tafel.modulate.a = basis knopf.mouse_entered.connect(func() -> void: - beschriftung.modulate.a = 1.0) + tafel.modulate.a = 1.0) knopf.mouse_exited.connect(func() -> void: - beschriftung.modulate.a = basis) - wurzel.add_child(beschriftung) + tafel.modulate.a = basis) + wurzel.add_child(tafel) + + # Kopfzeile auf dunkler Tafel — über hellem Gras war die Schrift weg. + var kopf := Panel.new() + kopf.position = Vector2(16, 16) + kopf.size = Vector2(300, 108) + kopf.mouse_filter = Control.MOUSE_FILTER_IGNORE + var sb_kopf := StyleBoxFlat.new() + sb_kopf.bg_color = Color(0.06, 0.05, 0.04, 0.86) + sb_kopf.border_color = Color(0.85, 0.71, 0.41, 0.75) + sb_kopf.set_border_width_all(2) + kopf.add_theme_stylebox_override("panel", sb_kopf) + wurzel.add_child(kopf) _titel = Label.new() _titel.text = String(_daten.get("name", "")).to_upper() - _titel.position = Vector2(28, 20) - wurzel.add_child(_titel) + _titel.position = Vector2(14, 12) + _titel.add_theme_color_override("font_color", Color(0.95, 0.87, 0.66)) + kopf.add_child(_titel) _hinweis = Label.new() - _hinweis.text = "Ziel anklicken" - _hinweis.position = Vector2(28, 56) - _hinweis.modulate = Color(0.9, 0.85, 0.7, 0.7) - wurzel.add_child(_hinweis) + _hinweis.text = "Ort anklicken" + _hinweis.position = Vector2(14, 52) + _hinweis.add_theme_color_override("font_color", Color(0.80, 0.75, 0.64)) + kopf.add_child(_hinweis) func _auf_ziel(h: Dictionary) -> void: