mirror of
https://github.com/Relintai/pandemonium_demo_projects.git
synced 2024-12-21 13:56:50 +01:00
40 lines
986 B
Plaintext
40 lines
986 B
Plaintext
[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"]
|