hud.tscn 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. [gd_scene load_steps=4 format=3 uid="uid://c5uc5vwuqvck5"]
  2. [ext_resource type="PackedScene" uid="uid://bbnebk7xoaoto" path="res://cubes.tscn" id="2"]
  3. [ext_resource type="Script" path="res://hud.gd" id="3"]
  4. [sub_resource type="Theme" id="2"]
  5. [node name="HUD" type="Control"]
  6. layout_mode = 3
  7. anchors_preset = 15
  8. anchor_right = 1.0
  9. anchor_bottom = 1.0
  10. grow_horizontal = 2
  11. grow_vertical = 2
  12. theme = SubResource("2")
  13. script = ExtResource("3")
  14. [node name="Cubes" parent="." instance=ExtResource("2")]
  15. [node name="Help" type="Label" parent="."]
  16. layout_mode = 0
  17. anchor_top = 1.0
  18. anchor_bottom = 1.0
  19. offset_left = 16.0
  20. offset_top = -106.0
  21. offset_right = 554.0
  22. offset_bottom = -16.0
  23. theme_override_colors/font_outline_color = Color(0, 0, 0, 1)
  24. theme_override_constants/outline_size = 4
  25. text = "This text will always render at the native resolution.
  26. Press Space to adjust the 3D viewport's resolution scaling.
  27. Press Enter to cycle filtering modes."
  28. [node name="VBoxContainer" type="VBoxContainer" parent="."]
  29. layout_mode = 0
  30. offset_left = 16.0
  31. offset_top = 16.0
  32. offset_right = 124.0
  33. offset_bottom = 76.0
  34. [node name="Scale" type="Label" parent="VBoxContainer"]
  35. layout_mode = 2
  36. theme_override_colors/font_outline_color = Color(0, 0, 0, 1)
  37. theme_override_constants/outline_size = 4
  38. text = "Scale: 100%"
  39. [node name="Filter" type="Label" parent="VBoxContainer"]
  40. layout_mode = 2
  41. theme_override_colors/font_outline_color = Color(0, 0, 0, 1)
  42. theme_override_constants/outline_size = 4
  43. text = "Scaling 3D Mode: Bilinear"