hud.tscn 1.0 KB

123456789101112131415161718192021222324252627282930
  1. [gd_scene load_steps=4 format=3 uid="uid://bwgsy2pemskmt"]
  2. [ext_resource type="Script" path="res://scenes/HUD/hud.gd" id="1_kvr8c"]
  3. [ext_resource type="Texture2D" uid="uid://ci0sb81m8ukuv" path="res://assets/buttons/back.svg" id="2_s53gj"]
  4. [ext_resource type="Texture2D" uid="uid://v7hnk8ged2ww" path="res://assets/buttons/restart.svg" id="3_5aacj"]
  5. [node name="HUD" type="CanvasLayer"]
  6. script = ExtResource("1_kvr8c")
  7. [node name="ReturnButton" type="TextureButton" parent="."]
  8. offset_right = 64.0
  9. offset_bottom = 64.0
  10. texture_normal = ExtResource("2_s53gj")
  11. ignore_texture_size = true
  12. stretch_mode = 0
  13. [node name="ReloadButton" type="TextureButton" parent="."]
  14. anchors_preset = 1
  15. anchor_left = 1.0
  16. anchor_right = 1.0
  17. offset_left = -64.0
  18. offset_bottom = 64.0
  19. grow_horizontal = 0
  20. texture_normal = ExtResource("3_5aacj")
  21. ignore_texture_size = true
  22. stretch_mode = 0
  23. [connection signal="pressed" from="ReturnButton" to="." method="_on_return_button_pressed"]
  24. [connection signal="pressed" from="ReloadButton" to="." method="_on_reload_button_pressed"]