Phase 6a: Mature-Gate mit 18+-Screen, Explizit-Toggle, Debug-Flag

- MatureContentGate: 18+-Bestaetigung und Explizit-Toggle persistent in
  user://settings.json (installations- statt durchlaufbezogen, daher
  getrennt vom Spielstand)
- 18+-Screen mit Content-Warnung als Overlay ueber dem Hauptmenue beim
  allerersten Start (kein zusaetzlicher Szenenschritt); fokus-navigierbar
  nach dem confirm-Muster, Beenden-Ausweg; erscheint nach Bestaetigung
  nie wieder
- Options-Toggle Explizite Inhalte im Hauptmenue (Default AUS, Muster wie
  Permadeath-Toggle)
- Romantik-Weiche als dokumentiertes Format: optionales Feld
  explicit_text in Dialog-Knoten, vom DialogueSystem nur bei aktivem
  Toggle genutzt (_node_text); Standardtext bleibt die
  Fade-to-Black-Variante, explizite Texte pflegt laut SPEC ausschliesslich
  der Nutzer - keine Inhalte angelegt
- Debug-Aufraeumen: GameState.is_debug_mode (Umschalten direkt im Skript
  dokumentiert, true beim Testen / false im Release) schaltet Tab-Save
  (Hub + Testszene) und F9/F10; Schlafsaal speichert jetzt regulaer beim
  Schlafen (unabhaengig vom Debug-Modus), Dreschen-Autosave unveraendert
- Headless verifiziert (29 Checks): Weiche, Gate-Erststart/-Persistenz,
  Toggle-Roundtrip, Untertitel-Verhalten, Debug AN/AUS fuer Tab und
  F9/F10, regulaeres Schlafsaal-Speichern

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
danny 2026-07-07 06:23:28 +02:00
parent 8d9ad3156b
commit 01f50f3107
12 changed files with 233 additions and 12 deletions

View file

@ -57,6 +57,11 @@ custom_minimum_size = Vector2(260, 48)
layout_mode = 2
text = "Permadeath: AN"
[node name="ExplicitButton" type="Button" parent="CenterContainer/VBoxContainer"]
custom_minimum_size = Vector2(260, 48)
layout_mode = 2
text = "Explizite Inhalte: AUS"
[node name="QuitButton" type="Button" parent="CenterContainer/VBoxContainer"]
custom_minimum_size = Vector2(260, 48)
layout_mode = 2

View file

@ -0,0 +1,61 @@
[gd_scene load_steps=2 format=3]
[ext_resource type="Script" path="res://scripts/ui/mature_gate.gd" id="1_gate"]
[node name="MatureGate" type="CanvasLayer"]
layer = 10
script = ExtResource("1_gate")
[node name="Root" type="ColorRect" parent="."]
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
color = Color(0.05, 0.06, 0.08, 1)
[node name="Panel" type="PanelContainer" parent="Root"]
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -320.0
offset_top = -190.0
offset_right = 320.0
offset_bottom = 190.0
grow_horizontal = 2
grow_vertical = 2
[node name="Margin" type="MarginContainer" parent="Root/Panel"]
theme_override_constants/margin_left = 24
theme_override_constants/margin_top = 20
theme_override_constants/margin_right = 24
theme_override_constants/margin_bottom = 20
[node name="Content" type="VBoxContainer" parent="Root/Panel/Margin"]
theme_override_constants/separation = 14
[node name="TitleLabel" type="Label" parent="Root/Panel/Margin/Content"]
theme_override_font_sizes/font_size = 34
text = "Windgeschworen — ab 18 Jahren"
horizontal_alignment = 1
[node name="WarningLabel" type="Label" parent="Root/Panel/Margin/Content"]
size_flags_vertical = 3
theme_override_font_sizes/font_size = 17
text = "Dieses Spiel enthält Darstellungen von Gewalt, Tod und Krieg sowie Themen wie Verlust, Trauer und Bedrohung. Optionale explizite Inhalte sind standardmäßig deaktiviert und lassen sich im Hauptmenü zuschalten.
Bitte bestätige, dass du mindestens 18 Jahre alt bist."
autowrap_mode = 3
[node name="Buttons" type="HBoxContainer" parent="Root/Panel/Margin/Content"]
theme_override_constants/separation = 12
alignment = 1
[node name="ConfirmButton" type="Button" parent="Root/Panel/Margin/Content/Buttons"]
custom_minimum_size = Vector2(260, 46)
text = "Ich bin 18 oder älter"
[node name="QuitButton" type="Button" parent="Root/Panel/Margin/Content/Buttons"]
custom_minimum_size = Vector2(160, 46)
text = "Beenden"