77 lines
1.7 KiB
Plaintext
77 lines
1.7 KiB
Plaintext
|
[gd_scene load_steps=5 format=2]
|
||
|
|
||
|
[ext_resource path="res://tests/test-2d.gd" type="Script" id=1]
|
||
|
[ext_resource path="res://icon.png" type="Texture" id=2]
|
||
|
|
||
|
[sub_resource type="Gradient" id=1]
|
||
|
|
||
|
offsets = PoolRealArray( 0, 1 )
|
||
|
colors = PoolColorArray( 0, 0, 0, 1, 1, 1, 1, 1 )
|
||
|
|
||
|
[sub_resource type="GradientTexture" id=2]
|
||
|
|
||
|
flags = 4
|
||
|
gradient = SubResource( 1 )
|
||
|
width = 1024
|
||
|
_sections_unfolded = [ "Resource" ]
|
||
|
|
||
|
[node name="test-2d" type="Node" index="0"]
|
||
|
|
||
|
script = ExtResource( 1 )
|
||
|
|
||
|
[node name="CenterContainer" type="CenterContainer" parent="." index="0"]
|
||
|
|
||
|
anchor_left = 0.0
|
||
|
anchor_top = 0.0
|
||
|
anchor_right = 0.0
|
||
|
anchor_bottom = 0.0
|
||
|
margin_left = 485.0
|
||
|
margin_top = 276.0
|
||
|
margin_right = 591.0
|
||
|
margin_bottom = 346.0
|
||
|
rect_pivot_offset = Vector2( 0, 0 )
|
||
|
rect_clip_content = false
|
||
|
mouse_filter = 0
|
||
|
mouse_default_cursor_shape = 0
|
||
|
size_flags_horizontal = 1
|
||
|
size_flags_vertical = 1
|
||
|
use_top_left = false
|
||
|
_sections_unfolded = [ "Anchor", "Theme" ]
|
||
|
|
||
|
[node name="exit" type="Button" parent="CenterContainer" index="0"]
|
||
|
|
||
|
anchor_left = 0.0
|
||
|
anchor_top = 0.0
|
||
|
anchor_right = 0.0
|
||
|
anchor_bottom = 0.0
|
||
|
margin_right = 106.0
|
||
|
margin_bottom = 70.0
|
||
|
rect_pivot_offset = Vector2( 0, 0 )
|
||
|
rect_clip_content = false
|
||
|
focus_mode = 2
|
||
|
mouse_filter = 0
|
||
|
mouse_default_cursor_shape = 0
|
||
|
size_flags_horizontal = 1
|
||
|
size_flags_vertical = 1
|
||
|
toggle_mode = false
|
||
|
enabled_focus_mode = 2
|
||
|
shortcut = null
|
||
|
group = null
|
||
|
text = "Quit"
|
||
|
icon = ExtResource( 2 )
|
||
|
flat = false
|
||
|
align = 1
|
||
|
|
||
|
[node name="background" type="Sprite" parent="." index="1"]
|
||
|
|
||
|
z_index = -1
|
||
|
texture = SubResource( 2 )
|
||
|
centered = false
|
||
|
region_enabled = true
|
||
|
region_rect = Rect2( 0, 0, 1024, 600 )
|
||
|
_sections_unfolded = [ "Region", "Z Index" ]
|
||
|
|
||
|
[connection signal="pressed" from="CenterContainer/exit" to="." method="_on_exit_pressed"]
|
||
|
|
||
|
|