more work

This commit is contained in:
The 64th Gamer 2025-04-06 04:23:17 -06:00
parent 36c6077c53
commit b5be52c801
6 changed files with 67 additions and 1 deletions

View file

@ -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")

View file

@ -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):

4
Scripts/GL_Node_Point.gd Normal file
View file

@ -0,0 +1,4 @@
extends Node
class_name GL_Node_Point
var valueName:String
@export var isOutput:bool

View file

@ -0,0 +1 @@
uid://dwl36vn5chqmq

BIN
UI/GJ Thumbnail.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 451 KiB

View file

@ -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