20 lines
380 B
GDScript3
20 lines
380 B
GDScript3
|
extends OptionButton
|
||
|
|
||
|
|
||
|
# Called when the node enters the scene tree for the first time.
|
||
|
func _ready() -> void:
|
||
|
select(3-1) #preselect rounds
|
||
|
|
||
|
|
||
|
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||
|
func _process(delta: float) -> void:
|
||
|
pass
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
func _on_item_selected(index: int) -> void:
|
||
|
Gamestate.setRounds(index+1)
|
||
|
print("Set rounds to "+str(index+1))
|