Add everything needed to construct slots to the universal property.

This commit is contained in:
Relintai 2021-10-06 09:53:40 +02:00
parent efc5d8ae9c
commit 8654865b1b
2 changed files with 1372 additions and 1366 deletions

File diff suppressed because one or more lines are too long

View File

@ -36,6 +36,12 @@ var override_image : Image
#Should be a MMNodeUniversalProperty, but can't set it up like that #Should be a MMNodeUniversalProperty, but can't set it up like that
export(Resource) var input_property : Resource export(Resource) var input_property : Resource
var input_slot_type : int = SlotTypes.SLOT_TYPE_NONE
var output_slot_type : int = SlotTypes.SLOT_TYPE_NONE
var slot_name : String = ""
var value_step : float = 0.1
var value_range : Vector2 = Vector2(-1000, 1000)
func get_value(uv : Vector2): func get_value(uv : Vector2):
if !input_property: if !input_property:
return get_default_value(uv) return get_default_value(uv)