difficulty select: readable!

This commit is contained in:
Haze Weathers 2023-12-30 22:33:48 -05:00
parent 756e6ff5d4
commit 0f679fe404

View file

@ -1,6 +1,9 @@
extends Control extends Control
const DISABLED_COLOR := Color(0xb0b0b0ff)
export var first_level: PackedScene export var first_level: PackedScene
@ -29,6 +32,9 @@ func _input(event: InputEvent) -> void:
func _set_difficulty(difficulty: int) -> void: func _set_difficulty(difficulty: int) -> void:
Game.difficulty = difficulty Game.difficulty = difficulty
for b in difficulty_buttons:
b.get_parent().modulate = DISABLED_COLOR
difficulty_buttons[difficulty].get_parent().modulate = Color.white
func _on_DifficultySelect_focus_entered() -> void: func _on_DifficultySelect_focus_entered() -> void: