godot-demo-projects/viewport/screen_capture/screen_capture.tscn

39 lines
985 B
Plaintext
Raw Normal View History

2017-08-19 19:10:25 +02:00
[gd_scene load_steps=3 format=2]
[ext_resource path="res://screen_capture.gd" type="Script" id=1]
[ext_resource path="res://mountains.png" type="Texture" id=2]
2020-01-31 21:21:23 +01:00
[node name="ScreenCapture" type="Control"]
2017-08-19 19:10:25 +02:00
margin_right = 40.0
margin_bottom = 40.0
script = ExtResource( 1 )
2020-01-31 21:21:23 +01:00
[node name="Background" type="TextureRect" parent="."]
2017-08-19 19:10:25 +02:00
anchor_right = 1.0
anchor_bottom = 1.0
margin_right = 986.0
margin_bottom = 560.0
grow_horizontal = 0
grow_vertical = 0
texture = ExtResource( 2 )
expand = true
2020-01-31 21:21:23 +01:00
[node name="CapturedImage" type="TextureRect" parent="."]
2017-08-19 19:10:25 +02:00
anchor_right = 1.0
anchor_bottom = 1.0
margin_right = 2013.0
margin_bottom = 1162.0
grow_horizontal = 0
grow_vertical = 0
rect_scale = Vector2( 0.5, 0.5 )
expand = true
stretch_mode = 4
2020-01-31 21:21:23 +01:00
[node name="CaptureButton" type="Button" parent="."]
2017-08-19 19:10:25 +02:00
margin_left = 48.0
margin_top = 53.0
margin_right = 188.0
margin_bottom = 113.0
text = "Capture screen"
2020-01-31 21:21:23 +01:00
[connection signal="pressed" from="CaptureButton" to="." method="_on_CaptureButton_pressed"]