pandemonium_demo_projects/viewport/screen_capture/screen_capture.tscn

40 lines
986 B
Plaintext
Raw Normal View History

[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]
[node name="ScreenCapture" type="Control"]
margin_right = 40.0
margin_bottom = 40.0
script = ExtResource( 1 )
[node name="Background" type="TextureRect" parent="."]
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
[node name="CapturedImage" type="TextureRect" parent="."]
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
[node name="CaptureButton" type="Button" parent="."]
margin_left = 48.0
margin_top = 53.0
margin_right = 188.0
margin_bottom = 113.0
text = "Capture screen"
[connection signal="pressed" from="CaptureButton" to="." method="_on_CaptureButton_pressed"]