mirror of
https://github.com/godotengine/godot-demo-projects.git
synced 2026-01-05 07:20:07 +01:00
48 lines
1.2 KiB
Plaintext
48 lines
1.2 KiB
Plaintext
[gd_scene load_steps=3 format=3 uid="uid://crmdxtrb6ofti"]
|
|
|
|
[ext_resource type="Script" uid="uid://dq5sms3j5vl8k" path="res://screen_capture.gd" id="1"]
|
|
[ext_resource type="Texture2D" uid="uid://dxu2g8q8dbhcr" path="res://mountains.png" id="2"]
|
|
|
|
[node name="ScreenCapture" type="Control"]
|
|
layout_mode = 3
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
script = ExtResource("1")
|
|
|
|
[node name="Background" type="TextureRect" parent="."]
|
|
layout_mode = 1
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 0
|
|
grow_vertical = 0
|
|
texture = ExtResource("2")
|
|
|
|
[node name="CapturedImage" type="TextureRect" parent="."]
|
|
layout_mode = 1
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
offset_left = 128.0
|
|
offset_top = 75.0
|
|
offset_right = -128.0
|
|
offset_bottom = -75.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
expand_mode = 1
|
|
stretch_mode = 4
|
|
|
|
[node name="CaptureButton" type="Button" parent="."]
|
|
layout_mode = 0
|
|
offset_left = 50.0
|
|
offset_top = 50.0
|
|
offset_right = 190.0
|
|
offset_bottom = 110.0
|
|
text = "Capture
|
|
Screen"
|
|
|
|
[connection signal="pressed" from="CaptureButton" to="." method="_on_capture_button_pressed"]
|