diff --git a/Scenes/UI/HUD.tscn b/Scenes/UI/HUD.tscn index b05e2ac..836a921 100644 --- a/Scenes/UI/HUD.tscn +++ b/Scenes/UI/HUD.tscn @@ -21,8 +21,10 @@ anchor_left = 1.0 anchor_top = 1.0 anchor_right = 1.0 anchor_bottom = 1.0 -offset_left = -40.0 -offset_top = -23.0 +offset_left = -855.0 +offset_top = -59.0 +offset_right = -4.0 +offset_bottom = -4.0 grow_horizontal = 0 grow_vertical = 0 theme = ExtResource("1_omqfp") diff --git a/Scenes/UI/Node Map.tscn b/Scenes/UI/Node Map.tscn index 0085f27..c7b94b7 100644 --- a/Scenes/UI/Node Map.tscn +++ b/Scenes/UI/Node Map.tscn @@ -29,6 +29,14 @@ grow_vertical = 2 texture = SubResource("GradientTexture1D_2eix6") stretch_mode = 1 +[node name="Label" type="Label" parent="."] +layout_mode = 0 +offset_left = 4.0 +offset_top = 4.0 +offset_right = 249.0 +offset_bottom = 27.0 +text = "Editing nodes, press ESC to exit." + [node name="Search" parent="." instance=ExtResource("1_xwfut")] visible = false layout_mode = 1 diff --git a/Scripts/GL_Node.gd b/Scripts/GL_Node.gd index 2281eba..81f068c 100644 --- a/Scripts/GL_Node.gd +++ b/Scripts/GL_Node.gd @@ -8,9 +8,12 @@ var dragOffset : Vector2 var loadNodeRow : Resource var special_condition : String +@export var visual_name : String + func _ready(): loadNodeRow = preload("res://Scenes/Nodes/Node Row.tscn") (get_node("Margins").get_node("Holder").get_node("Title").get_node("Exit Button") as Button).connect("button_down",self.delete_whole_node) + if (visual_name != ""): _set_title(visual_name) func _process(delta): if dragging: diff --git a/Scripts/GL_Output.gd b/Scripts/GL_Output.gd index df1ce68..d7a5b52 100644 --- a/Scripts/GL_Output.gd +++ b/Scripts/GL_Output.gd @@ -1,13 +1,11 @@ extends GL_Node @export var identification : String -@export var visual_name : String @export var names : PackedStringArray @export var types : PackedStringArray func _ready(): super._ready() - _set_title(visual_name) for i in names.size(): match(types[i].to_lower()): "float": diff --git a/Scripts/GL_Search.gd b/Scripts/GL_Search.gd index 0646ad2..fd26ddd 100644 --- a/Scripts/GL_Search.gd +++ b/Scripts/GL_Search.gd @@ -49,7 +49,8 @@ func _set_rows(): for key in rows: var row = load("res://Scenes/UI/Search Row.tscn").instantiate() var button = (row.get_node("Button") as Button) - button.text = str(key) + var visualName = load("res://Scenes/Node Types/" + str(key) + ".tscn").instantiate().get_node("Node").visual_name + button.text = visualName if visualName != "" else str(key) button.pressed.connect(func(): _create_node(button.text) )