a game about throwing hammers made for the github game off
Diffstat (limited to 'ui/components/caretoptionbutton/caretoptionbutton.gd')
-rw-r--r--ui/components/caretoptionbutton/caretoptionbutton.gd16
1 files changed, 8 insertions, 8 deletions
diff --git a/ui/components/caretoptionbutton/caretoptionbutton.gd b/ui/components/caretoptionbutton/caretoptionbutton.gd
index b46ef1b..bcfbba6 100644
--- a/ui/components/caretoptionbutton/caretoptionbutton.gd
+++ b/ui/components/caretoptionbutton/caretoptionbutton.gd
@@ -6,17 +6,17 @@ signal changed(current_option: int)
@onready var button: Button = $button as Button
@export var options: PackedStringArray = []
@export var current_option: int = 0:
- set(val):
- current_option = wrapi(val, 0, len(options))
- if not button: return
- button.text = options[current_option]
- changed.emit(current_option)
+ set(val):
+ current_option = wrapi(val, 0, len(options))
+ if not button: return
+ button.text = options[current_option]
+ changed.emit(current_option)
func _ready() -> void:
- current_option = current_option
+ current_option = current_option
func sub() -> void:
- current_option -= 1
+ current_option -= 1
func add() -> void:
- current_option += 1
+ current_option += 1