difficulty select: readable!
This commit is contained in:
parent
756e6ff5d4
commit
0f679fe404
1 changed files with 6 additions and 0 deletions
|
@ -1,6 +1,9 @@
|
|||
extends Control
|
||||
|
||||
|
||||
const DISABLED_COLOR := Color(0xb0b0b0ff)
|
||||
|
||||
|
||||
export var first_level: PackedScene
|
||||
|
||||
|
||||
|
@ -29,6 +32,9 @@ func _input(event: InputEvent) -> void:
|
|||
|
||||
func _set_difficulty(difficulty: int) -> void:
|
||||
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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue