mirror of
https://github.com/godotengine/gdnative-demos.git
synced 2026-01-03 14:09:44 +03:00
65 lines
1.5 KiB
Plaintext
65 lines
1.5 KiB
Plaintext
[gd_scene load_steps=5 format=2]
|
|
|
|
[ext_resource path="res://main.gd" type="Script" id=1]
|
|
[ext_resource path="res://icon.png" type="Texture" id=2]
|
|
[ext_resource path="res://bin/simple.gdnlib" type="GDNativeLibrary" id=3]
|
|
|
|
[sub_resource type="NativeScript" id=1]
|
|
|
|
resource_name = "SimpleSprite"
|
|
class_name = "SimpleSprite"
|
|
library = ExtResource( 3 )
|
|
|
|
[node name="Node" type="Node"]
|
|
script = ExtResource( 1 )
|
|
|
|
[node name="Button" type="Button" parent="."]
|
|
anchor_left = 0.0
|
|
anchor_top = 0.0
|
|
anchor_right = 0.0
|
|
anchor_bottom = 0.0
|
|
margin_left = 333.0
|
|
margin_top = 208.0
|
|
margin_right = 682.0
|
|
margin_bottom = 325.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 = "Press me"
|
|
flat = false
|
|
align = 1
|
|
|
|
[node name="Label" type="Label" parent="."]
|
|
anchor_left = 0.0
|
|
anchor_top = 0.0
|
|
anchor_right = 0.0
|
|
anchor_bottom = 0.0
|
|
margin_left = 348.0
|
|
margin_top = 360.0
|
|
margin_right = 662.0
|
|
margin_bottom = 374.0
|
|
rect_pivot_offset = Vector2( 0, 0 )
|
|
rect_clip_content = false
|
|
mouse_filter = 2
|
|
mouse_default_cursor_shape = 0
|
|
size_flags_horizontal = 1
|
|
size_flags_vertical = 4
|
|
align = 1
|
|
percent_visible = 1.0
|
|
lines_skipped = 0
|
|
max_lines_visible = -1
|
|
|
|
[node name="Sprite" type="Sprite" parent="."]
|
|
texture = ExtResource( 2 )
|
|
script = SubResource( 1 )
|
|
|
|
[connection signal="pressed" from="Button" to="." method="_on_Button_pressed"]
|