diff --git a/Scenes/Nodes/Node Row.tscn b/Scenes/Nodes/Node Row.tscn index f50a27d..a8853e3 100644 --- a/Scenes/Nodes/Node Row.tscn +++ b/Scenes/Nodes/Node Row.tscn @@ -1,4 +1,9 @@ -[gd_scene format=3 uid="uid://bdcxusbd86oox"] +[gd_scene load_steps=3 format=3 uid="uid://bdcxusbd86oox"] + +[ext_resource type="Script" uid="uid://dwl36vn5chqmq" path="res://Scripts/GL_Node_Point.gd" id="1_fygh4"] + +[sub_resource type="RectangleShape2D" id="RectangleShape2D_ljh8l"] +size = Vector2(15, 15) [node name="Node Row" type="HBoxContainer"] @@ -6,6 +11,13 @@ layout_mode = 2 text = "◉" +[node name="Point" type="Area2D" parent="Input"] +script = ExtResource("1_fygh4") + +[node name="CollisionShape2D" type="CollisionShape2D" parent="Input/Point"] +position = Vector2(7, 13) +shape = SubResource("RectangleShape2D_ljh8l") + [node name="Label" type="Label" parent="."] layout_mode = 2 size_flags_horizontal = 3 @@ -15,3 +27,12 @@ clip_text = true [node name="Output" type="Label" parent="."] layout_mode = 2 text = "◉" + +[node name="Point" type="Area2D" parent="Output"] +position = Vector2(-23, 0) +script = ExtResource("1_fygh4") +isOutput = true + +[node name="CollisionShape2D" type="CollisionShape2D" parent="Output/Point"] +position = Vector2(7, 13) +shape = SubResource("RectangleShape2D_ljh8l") diff --git a/Scripts/GL_Node.gd b/Scripts/GL_Node.gd index 291f88c..ee9e124 100644 --- a/Scripts/GL_Node.gd +++ b/Scripts/GL_Node.gd @@ -26,6 +26,8 @@ func _update_visuals(): var nodeRow = load("res://Scenes/Nodes/Node Row.tscn") holder.call_deferred("add_child",nodeRow) (nodeRow.get_node("Label") as Label).text = str(key) + (nodeRow.get_node("Input").get_note("Point") as GL_Node_Point).valueName = str(key) + (nodeRow.get_node("Output").get_note("Point") as GL_Node_Point).valueName = str(key) _set_inout_type(nodeRow.get_node("Input") as Label,rows[key].get("input","null")) _set_inout_type(nodeRow.get_node("Output") as Label,rows[key].get("output","null")) @@ -49,3 +51,7 @@ func _set_title(name:String): func _create_row(name:String,input,output): rows[name] = {"input": input, "output": output} _update_visuals() + +func _recieve_input(inputName:String,value): + +func _send_input(inputName:String,value): diff --git a/Scripts/GL_Node_Point.gd b/Scripts/GL_Node_Point.gd new file mode 100644 index 0000000..adc0a95 --- /dev/null +++ b/Scripts/GL_Node_Point.gd @@ -0,0 +1,4 @@ +extends Node +class_name GL_Node_Point +var valueName:String +@export var isOutput:bool diff --git a/Scripts/GL_Node_Point.gd.uid b/Scripts/GL_Node_Point.gd.uid new file mode 100644 index 0000000..a37f4f6 --- /dev/null +++ b/Scripts/GL_Node_Point.gd.uid @@ -0,0 +1 @@ +uid://dwl36vn5chqmq diff --git a/UI/GJ Thumbnail.png b/UI/GJ Thumbnail.png new file mode 100644 index 0000000..486f6ea Binary files /dev/null and b/UI/GJ Thumbnail.png differ diff --git a/UI/GJ Thumbnail.png.import b/UI/GJ Thumbnail.png.import new file mode 100644 index 0000000..2f31312 --- /dev/null +++ b/UI/GJ Thumbnail.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://cmt4jve3igkmj" +path="res://.godot/imported/GJ Thumbnail.png-fab9bdfc2c845c857afcd6f4764d463d.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://UI/GJ Thumbnail.png" +dest_files=["res://.godot/imported/GJ Thumbnail.png-fab9bdfc2c845c857afcd6f4764d463d.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1