Updates the export configuration for the prof tool. Parakeets are clickable earlier during the right answer animation. The animation of repeat button has been disabled. Tracing will use uppercase first then lowercase. Look And Learn now show the right title at the top.

This commit is contained in:
Dylan Sarrazyn
2025-01-27 14:37:27 +01:00
parent d8a66d4fb7
commit c449b469af
19 changed files with 65 additions and 53 deletions
+8 -5
View File
@@ -68,17 +68,20 @@ func setup() -> void:
sounds.append(gp_sound)
used = true
if used:
gp_display.append(gp)
var tracing_data: = tracing_manager._get_letter_tracings(gp.Grapheme)
if tracing_data.upper:
gp_display.append(gp.Grapheme.to_upper())
if tracing_data.lower:
gp_display.append(gp.Grapheme.to_lower())
if gp_display.is_empty():
gp_display.append(gp_list[0])
gp_display.append(gp_list[0].Grapheme)
grapheme_label.text = ""
for gp: Dictionary in gp_display:
for gp: String in gp_display:
if grapheme_label.text:
grapheme_label.text += " - "
grapheme_label.text += "%s" % gp.Grapheme
grapheme_label.text += "%s" % gp
func play_videos() -> void:
@@ -788,7 +788,6 @@ anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
script = ExtResource("1_12st1")
lesson_nb = 24
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
libraries = {
@@ -852,7 +851,6 @@ theme_override_font_sizes/font_size = 175
text = "o"
horizontal_alignment = 1
vertical_alignment = 1
uppercase = true
[node name="LeftContainer" type="VBoxContainer" parent="."]
layout_mode = 1
+14 -10
View File
@@ -13,8 +13,8 @@ const tracing_data_folder: = "tracing_data/"
const extension: = ".csv"
func _process(_delta: float) -> void:
place_segments(lower_labels.get_children())
place_segments(upper_labels.get_children())
place_segments(lower_labels.get_children())
func place_segments(labels: Array) -> void:
@@ -24,12 +24,12 @@ func place_segments(labels: Array) -> void:
func reset() -> void:
for child in lower_labels.get_children():
child.queue_free()
for child in upper_labels.get_children():
child.queue_free()
for child in lower_labels.get_children():
child.queue_free()
lower_labels.visible = true
lower_labels.visible = false
upper_labels.visible = false
await get_tree().process_frame
@@ -41,11 +41,11 @@ func setup(grapheme: String) -> void:
for letter in grapheme:
var tracings: = _get_letter_tracings(letter)
if tracings.lower:
setup_tracing(letter, tracings["lower"] as Array, lower_labels, true)
if tracings.upper:
setup_tracing(letter, tracings["upper"] as Array, upper_labels, false)
if tracings.lower:
setup_tracing(letter, tracings["lower"] as Array, lower_labels, true)
func setup_tracing(letter: String, letter_tracings: Array, parent: Control, lower: bool) -> void:
@@ -116,9 +116,6 @@ func _real_path(path: String) -> String:
func start() -> void:
await demo_labels(lower_labels)
await start_labels(lower_labels)
if upper_labels.get_child_count(false) > 0:
lower_labels.visible = false
upper_labels.visible = true
@@ -126,6 +123,13 @@ func start() -> void:
await demo_labels(upper_labels)
await start_labels(upper_labels)
if lower_labels.get_child_count(false) > 0:
lower_labels.visible = true
upper_labels.visible = false
await demo_labels(lower_labels)
await start_labels(lower_labels)
finished.emit()