material-maker/addons/material_maker/engine/gen_image.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

22 lines
360 B
GDScript

tool
extends MMGenTexture
class_name MMGenImage
"""
Texture generator from image
"""
func get_type() -> String:
return "image"
func get_type_name() -> String:
return "Image"
func get_parameter_defs() -> Array:
return [ { name="image", type="path" } ]
func set_parameter(n : String, v) -> void:
.set_parameter(n, v)
if n == "image":
texture.load(v)