Skip to content

Commit

Permalink
displaying actual round title in question scenes
Browse files Browse the repository at this point in the history
  • Loading branch information
Kesuaheli committed Sep 13, 2024
1 parent 2132c9e commit 2ad7ecc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/question.gd
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ func on_round_next_response(success: bool, data: Dictionary={}):
func show_round_data(data: Dictionary):
print(data)
$Countdown.show()
$RoundCounter.text = "Runde %d/%d (%s)" % [data.current_round, data.max_round, data.category]
$RoundCounter.text = "Runde %d/%d (%s)" % [data.current_round, data.max_round, data.category.title]
$RoundCounter.show()

$Quiz/Question/Label.text = data.question
Expand Down
2 changes: 1 addition & 1 deletion scripts/question_end.gd
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ func _ready():
## show_round_data displays the given round_data data on screen.
func show_round_data(data: Dictionary):
print(data)
$RoundCounter.text = "Runde %d/%d (%s)" % [data.current_round, data.max_round, data.category]
$RoundCounter.text = "Runde %d/%d (%s)" % [data.current_round, data.max_round, data.category.title]

$Quiz/Question/Label.text = data.question
$Quiz/Answers/A/Label.text = data.answers[0]
Expand Down

0 comments on commit 2ad7ecc

Please sign in to comment.