-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbox_based.tscn
More file actions
65 lines (52 loc) · 2.35 KB
/
Copy pathbox_based.tscn
File metadata and controls
65 lines (52 loc) · 2.35 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
63
64
65
[gd_scene load_steps=5 format=3 uid="uid://bqwhx0ebhrr41"]
[ext_resource type="Texture2D" uid="uid://bwm5xhcwkojmh" path="res://empty.png" id="1_3ifee"]
[ext_resource type="Script" path="res://box_based.cs" id="1_ogwc7"]
[ext_resource type="PackedScene" uid="uid://qch5cou6xcln" path="res://2dcam.tscn" id="1_woqrm"]
[ext_resource type="Texture2D" uid="uid://bc8vqgkgj7mnd" path="res://icon.svg" id="3_a5na2"]
[node name="BoxBased" type="Node2D"]
script = ExtResource("1_ogwc7")
[node name="Sprite2D" type="Sprite2D" parent="."]
z_index = -1
texture_filter = 1
texture = ExtResource("1_3ifee")
centered = false
[node name="Target" type="Sprite2D" parent="."]
visible = false
scale = Vector2(0.2, 0.2)
texture = ExtResource("3_a5na2")
[node name="Camera2D" parent="." instance=ExtResource("1_woqrm")]
[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="ClearButton" type="Button" parent="CanvasLayer/MarginContainer/HBoxContainer"]
layout_mode = 2
text = "Clear"
[connection signal="pressed" from="CanvasLayer/MarginContainer/VBoxContainer/ZoomInButton" to="Camera2D" method="_on_zoom_in_button_pressed"]
[connection signal="pressed" from="CanvasLayer/MarginContainer/VBoxContainer/ZoomOutButton" to="Camera2D" method="_on_zoom_out_button_pressed"]
[connection signal="pressed" from="CanvasLayer/MarginContainer/HBoxContainer/ClearButton" to="." method="ClearPoints"]