Add an accent bar under dictation and correction fields (0.9.3)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Denis Defolie
2026-10-17 19:06:08 +02:00
parent 9d4251a345
commit 11e91fceb0
12 changed files with 206 additions and 1 deletions
+6
View File
@@ -11,6 +11,7 @@ extends Control
signal answer_submitted(submitted_text: String)
var _dictation: Dictionary = {}
var _accent_bar := AccentBar.new()
@onready var _instruction_label: Label = %InstructionLabel
@onready var _replay_button: Button = %ReplayButton
@@ -28,6 +29,11 @@ func _ready() -> void:
_convention_hint_label.text = UIText.get_text("dictation.convention_hint")
_validate_button.text = UIText.get_text("exercise_host.validate_button")
# Barre d'accents sous le champ : utile si le clavier n'a pas les accents.
_text_edit.get_parent().add_child(_accent_bar)
_text_edit.get_parent().move_child(_accent_bar, _text_edit.get_index() + 1)
_accent_bar.set_target(_text_edit)
_replay_button.pressed.connect(_on_replay_pressed)
_validate_button.pressed.connect(_on_validate_pressed)
# La touche Entree valide comme le bouton.