IGT is now visible in marathon mode

This commit is contained in:
JHDev2006
2025-10-02 11:13:02 +01:00
parent 05bca140fd
commit 8dc1583f66
3 changed files with 81 additions and 26 deletions

View File

@@ -26,6 +26,7 @@ func handle_main_hud() -> void:
$ModernHUD.visible = Settings.file.visuals.modern_hud
$Main/RedCoins.hide()
$Main/CoinCount.show()
%IGT.hide()
%Combo.hide()
$Timer.paused = Settings.file.difficulty.time_limit == 2
$%Time.show()
@@ -147,6 +148,11 @@ func handle_yoshi_radar() -> void:
func handle_speedrun_timer() -> void:
%Time.hide()
%Stopwatch.show()
%IGT.show()
%IGT.modulate.a = int([Global.GameMode.MARATHON, Global.GameMode.MARATHON_PRACTICE].has(Global.current_game_mode) and get_tree().get_first_node_in_group("Players") != null)
%IGT.text = "" + (str(Global.time).pad_zeros(3))
%ModernIGT.visible = %IGT.modulate.a == 1
%ModernIGT.text = %IGT.text
var late = SpeedrunHandler.timer > SpeedrunHandler.best_time
var diff = SpeedrunHandler.best_time - SpeedrunHandler.timer
%PB.visible = SpeedrunHandler.best_time > 0 and (SpeedrunHandler.timer > 0 or Global.current_level != null)