material-maker/addons/material_maker/widgets/hslider.gd
Hugo Locurcio 93c84650cd
Add return type hints to all scripts
This also simplifies some functions.

This partially addresses #30.
2019-10-20 16:35:45 +02:00

13 lines
179 B
GDScript

tool
extends HSlider
func _ready() -> void:
update_label(value)
func set_value(v) -> void:
.set_value(v)
update_label(v)
func update_label(v) -> void:
$Label.text = str(v)