CRs: Mehr Antwortoptionen, Dialog-Abbruch mit Ansage, Konsistenzcheck
- imogen_intro auf drei Entscheidungspunkte mit je drei Optionen (Klinge/Herz/neutral) verlaengert; neuer Mittelteil (Nachtwachen-Muster, Akt-1-konform ohne Wahrheit-1-Vorwegnahme); Violet/Rhiannon/Wren je eine dritte neutrale Option - Dialog-Abbruch ueber cancel (Esc/B/Kreis): bei offener Auswahl via Dialog-Box (ABORT_INDEX), waehrend Zeilen via DialogueSystem; Tyrveil sagt die abort_line aus der Dialog-Datei an; Abbruch vor der ersten Entscheidung laesst den Erst-Effekt bestehen, nach Effekten gilt der Dialog als gefuehrt (Anti-Farming); Esc gibt im Dialog nicht mehr die Maus frei - Konsistenzcheck aller Gespraeche gegen STORY/WELT/CHARACTERS/TYRVEIL: Violets Rotschwaenze auf die Roten korrigiert (Farbe vs. Schwanztyp, SPEC 6), Rest konsistent (CHANGEREQUESTS_DONE.md) - Headless verifiziert (34 Checks): drei Entscheidungen bei Imogen (-15/+3), dritte Option per Fokus-Navigation, beide Abbruch-Pfade samt Werte- und Flag-Semantik Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
parent
4d15c69972
commit
ac65180f75
8 changed files with 233 additions and 27 deletions
|
|
@ -13,6 +13,8 @@ extends CanvasLayer
|
|||
|
||||
signal option_chosen(index: int)
|
||||
|
||||
const ABORT_INDEX := -1
|
||||
|
||||
@onready var _speaker_label: Label = $Root/Panel/Margin/Content/SpeakerLabel
|
||||
@onready var _line_label: Label = $Root/Panel/Margin/Content/LineLabel
|
||||
@onready var _options_box: VBoxContainer = $Root/Panel/Margin/Content/OptionsBox
|
||||
|
|
@ -51,11 +53,16 @@ func has_open_options() -> bool:
|
|||
return visible and _options_box.visible
|
||||
|
||||
|
||||
## Aktiviert mit confirm den fokussierten Options-Button (nur solange eine
|
||||
## Auswahl offen ist); Fokus-Verlust wird auf die erste Option repariert.
|
||||
## Aktiviert mit confirm den fokussierten Options-Button und meldet mit
|
||||
## cancel den Dialog-Abbruch als ABORT_INDEX (nur solange eine Auswahl
|
||||
## offen ist); Fokus-Verlust wird auf die erste Option repariert.
|
||||
func _unhandled_input(event: InputEvent) -> void:
|
||||
if not has_open_options():
|
||||
return
|
||||
if event.is_action_pressed("cancel"):
|
||||
_clear_options()
|
||||
option_chosen.emit(ABORT_INDEX)
|
||||
return
|
||||
if not event.is_action_pressed("confirm"):
|
||||
return
|
||||
var focused := get_viewport().gui_get_focus_owner()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue