Phase 2a: Dialog-System, Sprechblasen, Imogen-Intro-Gespraech
- speech_bubble.tscn/gd: wiederverwendbare Billboard-Sprechblase mit textlaengenabhaengiger Anzeigedauer und Sticky-Modus, haengt an Spieler (player.tscn) und Imogen (rider_quadrant.tscn) - Dialog-Datenformat als JSON unter data/dialogue: Knoten mit speaker/ text/options, Options-Tags blade_heart und relationship (NPC-ID -> Delta), next-Verweis; imogen_intro.json mit zwei Entscheidungspunkten in Imogens Stimme (Akt 1, keine Wahrheiten vorweggenommen) - DialogueSystem: laedt/validiert Dialogbaeume, spielt Zeilen ueber die Sprechblase des jeweiligen Sprechers (gewaehlte Antwort ueber Tyrveils Kopf), wendet Options-Tags auf GameState/RelationshipSystem an, Signale dialogue_started/dialogue_finished - dialogue_choices.tscn/gd: fokus-navigierbare Antwortauswahl unten mittig, confirm-Aktivierung nach dem Muster des Hauptmenue-Fixes - npc_placeholder.gd -> npc_dialogue.gd: startet den echten Dialog, Konsolen-Platzhalter und Cooldown entfernt, doppeltes Oeffnen doppelt abgesichert, Prompt waehrend Dialog ausgeblendet - player.gd: Bewegungs- und Look-Sperre ueber die Dialog-Signale, laufender Slide endet bei Dialogbeginn sauber - Debug-Overlay blendet sich waehrend Dialogen aus - Headless verifiziert: kompletter Dialog-Durchlauf mit Tastatur- UND Controller-Bestaetigung, Klinge/Herz +10, Beziehung Imogen +4, Bewegungssperre und Overlay-/Prompt-Verhalten Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
parent
806d938ada
commit
610cd14760
15 changed files with 501 additions and 74 deletions
29
scenes/ui/dialogue_choices.tscn
Normal file
29
scenes/ui/dialogue_choices.tscn
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
[gd_scene load_steps=2 format=3]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/ui/dialogue_choices.gd" id="1_choices"]
|
||||
|
||||
[node name="DialogueChoices" type="CanvasLayer"]
|
||||
layer = 2
|
||||
script = ExtResource("1_choices")
|
||||
|
||||
[node name="Root" type="Control" parent="."]
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
mouse_filter = 2
|
||||
|
||||
[node name="OptionsBox" type="VBoxContainer" parent="Root"]
|
||||
anchor_left = 0.5
|
||||
anchor_top = 1.0
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 1.0
|
||||
offset_left = -320.0
|
||||
offset_top = -200.0
|
||||
offset_right = 320.0
|
||||
offset_bottom = -48.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 0
|
||||
theme_override_constants/separation = 10
|
||||
alignment = 2
|
||||
16
scenes/ui/speech_bubble.tscn
Normal file
16
scenes/ui/speech_bubble.tscn
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
[gd_scene load_steps=2 format=3]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/ui/speech_bubble.gd" id="1_bubble"]
|
||||
|
||||
[node name="SpeechBubble" type="Node3D"]
|
||||
visible = false
|
||||
script = ExtResource("1_bubble")
|
||||
|
||||
[node name="Label3D" type="Label3D" parent="."]
|
||||
billboard = 1
|
||||
text = ""
|
||||
font_size = 44
|
||||
outline_size = 14
|
||||
width = 700.0
|
||||
autowrap_mode = 3
|
||||
modulate = Color(1, 0.98, 0.9, 1)
|
||||
Loading…
Add table
Add a link
Reference in a new issue