screen_capture.tscn 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. [gd_scene load_steps=3 format=3 uid="uid://d10mveb7aokfl"]
  2. [ext_resource type="Script" path="res://screen_capture.gd" id="1"]
  3. [ext_resource type="Texture2D" uid="uid://tgwx64g0plcn" path="res://mountains.png" id="2"]
  4. [node name="ScreenCapture" type="Control"]
  5. layout_mode = 3
  6. anchors_preset = 15
  7. anchor_right = 1.0
  8. anchor_bottom = 1.0
  9. script = ExtResource("1")
  10. [node name="Background" type="TextureRect" parent="."]
  11. layout_mode = 1
  12. anchors_preset = 15
  13. anchor_right = 1.0
  14. anchor_bottom = 1.0
  15. grow_horizontal = 0
  16. grow_vertical = 0
  17. texture = ExtResource("2")
  18. [node name="CapturedImage" type="TextureRect" parent="."]
  19. layout_mode = 1
  20. anchors_preset = 15
  21. anchor_right = 1.0
  22. anchor_bottom = 1.0
  23. offset_left = 128.0
  24. offset_top = 75.0
  25. offset_right = -128.0
  26. offset_bottom = -75.0
  27. grow_horizontal = 2
  28. grow_vertical = 2
  29. ignore_texture_size = true
  30. stretch_mode = 4
  31. [node name="CaptureButton" type="Button" parent="."]
  32. layout_mode = 0
  33. offset_left = 50.0
  34. offset_top = 50.0
  35. offset_right = 190.0
  36. offset_bottom = 110.0
  37. text = "Capture screen"
  38. [connection signal="pressed" from="CaptureButton" to="." method="_on_CaptureButton_pressed"]