2022-03-26 22:49:32 +01:00
|
|
|
[gd_scene load_steps=3 format=3 uid="uid://d10mveb7aokfl"]
|
2017-08-19 19:10:25 +02:00
|
|
|
|
2022-03-26 22:49:32 +01:00
|
|
|
[ext_resource type="Script" path="res://screen_capture.gd" id="1"]
|
|
|
|
[ext_resource type="Texture2D" uid="uid://tgwx64g0plcn" path="res://mountains.png" id="2"]
|
2017-08-19 19:10:25 +02:00
|
|
|
|
2020-01-31 21:21:23 +01:00
|
|
|
[node name="ScreenCapture" type="Control"]
|
2023-01-05 16:50:17 +01:00
|
|
|
layout_mode = 3
|
|
|
|
anchors_preset = 15
|
2022-03-26 22:49:32 +01:00
|
|
|
anchor_right = 1.0
|
|
|
|
anchor_bottom = 1.0
|
2023-01-05 16:50:17 +01:00
|
|
|
script = ExtResource("1")
|
2017-08-19 19:10:25 +02:00
|
|
|
|
2020-01-31 21:21:23 +01:00
|
|
|
[node name="Background" type="TextureRect" parent="."]
|
2023-01-05 16:50:17 +01:00
|
|
|
layout_mode = 1
|
|
|
|
anchors_preset = 15
|
2017-08-19 19:10:25 +02:00
|
|
|
anchor_right = 1.0
|
|
|
|
anchor_bottom = 1.0
|
|
|
|
grow_horizontal = 0
|
|
|
|
grow_vertical = 0
|
2023-01-05 16:50:17 +01:00
|
|
|
texture = ExtResource("2")
|
2017-08-19 19:10:25 +02:00
|
|
|
|
2020-01-31 21:21:23 +01:00
|
|
|
[node name="CapturedImage" type="TextureRect" parent="."]
|
2023-01-05 16:50:17 +01:00
|
|
|
layout_mode = 1
|
|
|
|
anchors_preset = 15
|
2017-08-19 19:10:25 +02:00
|
|
|
anchor_right = 1.0
|
|
|
|
anchor_bottom = 1.0
|
2022-03-26 22:49:32 +01:00
|
|
|
offset_left = 128.0
|
|
|
|
offset_top = 75.0
|
|
|
|
offset_right = -128.0
|
|
|
|
offset_bottom = -75.0
|
|
|
|
grow_horizontal = 2
|
|
|
|
grow_vertical = 2
|
|
|
|
ignore_texture_size = true
|
2017-08-19 19:10:25 +02:00
|
|
|
stretch_mode = 4
|
|
|
|
|
2020-01-31 21:21:23 +01:00
|
|
|
[node name="CaptureButton" type="Button" parent="."]
|
2023-01-05 16:50:17 +01:00
|
|
|
layout_mode = 0
|
2022-03-26 22:49:32 +01:00
|
|
|
offset_left = 50.0
|
|
|
|
offset_top = 50.0
|
|
|
|
offset_right = 190.0
|
|
|
|
offset_bottom = 110.0
|
2017-08-19 19:10:25 +02:00
|
|
|
text = "Capture screen"
|
2020-12-09 01:36:00 +01:00
|
|
|
|
2020-01-31 21:21:23 +01:00
|
|
|
[connection signal="pressed" from="CaptureButton" to="." method="_on_CaptureButton_pressed"]
|