From 2eb6f789ddb4d8347c9aa3620f2eb378ba83dfe8 Mon Sep 17 00:00:00 2001 From: Relintai Date: Mon, 4 Oct 2021 13:27:29 +0200 Subject: [PATCH] Added a SlotTypes Enum. --- game/addons/mat_maker_gd/nodes/mm_node.gd | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/game/addons/mat_maker_gd/nodes/mm_node.gd b/game/addons/mat_maker_gd/nodes/mm_node.gd index 4fb44853..83fbdc0d 100644 --- a/game/addons/mat_maker_gd/nodes/mm_node.gd +++ b/game/addons/mat_maker_gd/nodes/mm_node.gd @@ -2,6 +2,15 @@ tool class_name MMNode extends Resource +enum SlotTypes { + SLOT_TYPE_NONE = -1, + SLOT_TYPE_IMAGE = 0, + SLOT_TYPE_INT = 1, + SLOT_TYPE_FLOAT = 2, + SLOT_TYPE_VECTOR2 = 3, + SLOT_TYPE_VECTOR3 = 4, +} + export(Vector2) var graph_position : Vector2 = Vector2() func recalculate_image(material, slot_idx : int) -> ImageTexture: