OverviewFilesCommitsIssuesDocsReleasesPeers

Attila772-hypergodot / NodeMenu.tscn

56 lines · tscn ref:
[gd_scene load_steps=3 format=3 uid="uid://c8fsi0gws3ass"]

[ext_resource type="Script" uid="uid://bak4melvht67p" path="res://NodeMenu.gd" id="1_2a42n"]

[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_m8psx"]
corner_radius_top_left = 20
corner_radius_top_right = 20
corner_radius_bottom_right = 20
corner_radius_bottom_left = 20
shadow_size = 10
shadow_offset = Vector2(2.33, 0)

[node name="NodeMenu" type="Node2D"]
script = ExtResource("1_2a42n")

[node name="Panel" type="Panel" parent="."]
offset_left = -6.0
offset_top = -59.0
offset_right = 242.0
offset_bottom = 118.0
theme_override_styles/panel = SubResource("StyleBoxFlat_m8psx")

[node name="Button" type="Button" parent="."]
offset_left = 200.0
offset_top = -51.0
offset_right = 234.0
offset_bottom = -15.0
text = "X"

[node name="Container" type="Container" parent="."]
offset_right = 242.0
offset_bottom = 125.0

[node name="VBoxContainer" type="VBoxContainer" parent="Container"]
layout_mode = 2

[node name="AllEdges" type="Button" parent="Container/VBoxContainer"]
layout_mode = 2
text = "All edges visible"
alignment = 0

[node name="EdgeColor" type="Button" parent="Container/VBoxContainer"]
layout_mode = 2
text = "Edge color picker"
alignment = 0

[node name="OnlySelf" type="Button" parent="Container/VBoxContainer"]
layout_mode = 2
text = "Only this node's edges visible"
alignment = 0

[connection signal="pressed" from="Button" to="." method="_on_button_pressed"]
[connection signal="pressed" from="Container/VBoxContainer/AllEdges" to="." method="_on_all_edges_pressed"]
[connection signal="pressed" from="Container/VBoxContainer/EdgeColor" to="." method="_on_edge_color_pressed"]
[connection signal="pressed" from="Container/VBoxContainer/OnlySelf" to="." method="only_self_edges_visible"]