material-maker/addons/material_maker/widgets/node_editor/parameter_boolean.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

12 lines
203 B
GDScript

tool
extends HBoxContainer
func get_model_data() -> Dictionary:
return {
default = $Default.pressed,
}
func set_model_data(data) -> void:
if data.has("default"):
$Default.pressed = data.default