-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.tscn
More file actions
62 lines (49 loc) · 2.11 KB
/
Copy pathmain.tscn
File metadata and controls
62 lines (49 loc) · 2.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
[gd_scene load_steps=4 format=3 uid="uid://3w3pyav4iagk"]
[ext_resource type="Script" path="res://Main.cs" id="1_38asm"]
[ext_resource type="Texture2D" uid="uid://bwm5xhcwkojmh" path="res://empty.png" id="2_ybkjp"]
[ext_resource type="PackedScene" uid="uid://qch5cou6xcln" path="res://2dcam.tscn" id="3_ehxgh"]
[node name="Main" type="Node2D"]
script = ExtResource("1_38asm")
[node name="Sprite2D" type="Sprite2D" parent="."]
texture_filter = 1
texture = ExtResource("2_ybkjp")
centered = false
[node name="Camera2D" parent="." instance=ExtResource("3_ehxgh")]
in_points = true
[node name="CanvasLayer" type="CanvasLayer" parent="."]
[node name="MarginContainer" type="MarginContainer" parent="CanvasLayer"]
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
theme_override_constants/margin_left = 16
theme_override_constants/margin_top = 16
theme_override_constants/margin_right = 16
theme_override_constants/margin_bottom = 16
[node name="VBoxContainer" type="VBoxContainer" parent="CanvasLayer/MarginContainer"]
layout_mode = 2
size_flags_horizontal = 8
size_flags_vertical = 0
[node name="ZoomInButton" type="Button" parent="CanvasLayer/MarginContainer/VBoxContainer"]
custom_minimum_size = Vector2(32, 32)
layout_mode = 2
size_flags_horizontal = 8
size_flags_vertical = 0
text = "+"
[node name="ZoomOutButton" type="Button" parent="CanvasLayer/MarginContainer/VBoxContainer"]
custom_minimum_size = Vector2(32, 32)
layout_mode = 2
text = "-"
[node name="HBoxContainer" type="HBoxContainer" parent="CanvasLayer/MarginContainer"]
layout_mode = 2
size_flags_horizontal = 0
size_flags_vertical = 0
[node name="ComputeButton" type="Button" parent="CanvasLayer/MarginContainer/HBoxContainer"]
layout_mode = 2
text = "Compute Level Set"
[node name="ClearButton" type="Button" parent="CanvasLayer/MarginContainer/HBoxContainer"]
layout_mode = 2
text = "Clear"
[connection signal="pressed" from="CanvasLayer/MarginContainer/HBoxContainer/ComputeButton" to="." method="ComputeClosest"]
[connection signal="pressed" from="CanvasLayer/MarginContainer/HBoxContainer/ClearButton" to="." method="ClearPoints"]