Add interface sound feedback
This commit is contained in:
@@ -88,6 +88,7 @@ func _build_mode_view() -> void:
|
||||
back_button.alignment = HORIZONTAL_ALIGNMENT_LEFT
|
||||
back_button.custom_minimum_size = Vector2(150, 42)
|
||||
Style.style_chip(back_button, Style.CYAN)
|
||||
UISoundService.set_button_sound(back_button, "back")
|
||||
back_button.pressed.connect(func(): _show_stage("exam"))
|
||||
mode_view.add_child(back_button)
|
||||
|
||||
@@ -237,6 +238,7 @@ func _start_question_bank() -> void:
|
||||
if not visible or current_stage != "step3" or not QuestionBankService.has_questions():
|
||||
return
|
||||
if BlockSessionService.start_core_run():
|
||||
UISoundService.play_sound("question")
|
||||
main.show_screen("player")
|
||||
else:
|
||||
bank_error_label.text = BlockSessionService.core_status_message
|
||||
|
||||
Reference in New Issue
Block a user