Add core game retry flow and question stats
This commit is contained in:
@@ -41,7 +41,7 @@ func _refresh_zones() -> void:
|
||||
|
||||
if QuestionBankService.is_loading:
|
||||
var loading := Label.new()
|
||||
loading.text = "Loading question bank..."
|
||||
loading.text = "Question API unavailable. Retrying in %d seconds..." % QuestionBankService.next_retry_seconds if QuestionBankService.load_state == "retrying" else "Loading question bank..."
|
||||
Style.set_label(loading, 20, Style.AMBER)
|
||||
zone_list.add_child(loading)
|
||||
return
|
||||
@@ -52,6 +52,13 @@ func _refresh_zones() -> void:
|
||||
empty.autowrap_mode = TextServer.AUTOWRAP_WORD_SMART
|
||||
Style.set_label(empty, 20, Style.RED)
|
||||
zone_list.add_child(empty)
|
||||
|
||||
var retry := Button.new()
|
||||
retry.text = "Retry Questions"
|
||||
retry.custom_minimum_size = Vector2(220, 54)
|
||||
Style.style_chip(retry, Style.AMBER)
|
||||
retry.pressed.connect(QuestionBankService.retry_now)
|
||||
zone_list.add_child(retry)
|
||||
return
|
||||
|
||||
var systems: Array[String] = ["All Systems"]
|
||||
|
||||
Reference in New Issue
Block a user