From 14cfe3e26db08c7e45c26c151537531d99261077 Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Fri, 19 Jul 2024 11:55:48 +0200 Subject: intermediate changes --- Tray.gd | 5 ----- Tray.tscn | 7 ------- app.html | 3 +-- export_presets.cfg | 4 ++++ icon.png | Bin 0 -> 91502 bytes icon.png.import | 34 ++++++++++++++++++++++++++++++++++ project.godot | 1 + 7 files changed, 40 insertions(+), 14 deletions(-) create mode 100644 icon.png create mode 100644 icon.png.import diff --git a/Tray.gd b/Tray.gd index 3e117af..5f40fd2 100644 --- a/Tray.gd +++ b/Tray.gd @@ -49,11 +49,6 @@ func close(): func _on_resized(): %Button.global_position = global_position - Vector2(%Button.size.x, 0) - - var shape = RectangleShape2D.new() - shape.size = size - %TrayCollision/CollisionShape2D.shape = shape - %TrayCollision/CollisionShape2D.position = size / 2 func _on_button_pressed(): diff --git a/Tray.tscn b/Tray.tscn index 8a26d5e..e44d890 100644 --- a/Tray.tscn +++ b/Tray.tscn @@ -65,13 +65,6 @@ size_flags_horizontal = 0 size_flags_vertical = 0 text = "<" -[node name="TrayCollision" type="Area2D" parent="."] -unique_name_in_owner = true -collision_layer = 3 -collision_mask = 3 - -[node name="CollisionShape2D" type="CollisionShape2D" parent="TrayCollision"] - [connection signal="resized" from="." to="." method="_on_resized"] [connection signal="pressed" from="VBoxContainer/HBoxContainer/Save" to="." method="_on_save_pressed"] [connection signal="pressed" from="VBoxContainer/HBoxContainer/Load" to="." method="_on_load_pressed"] diff --git a/app.html b/app.html index 078d27d..f841dc0 100644 --- a/app.html +++ b/app.html @@ -121,8 +121,7 @@