oh-my-git/node.tscn

53 lines
1.2 KiB
Text
Raw Normal View History

2020-03-18 16:28:48 +01:00
[gd_scene load_steps=3 format=2]
2020-03-18 16:20:55 +01:00
[ext_resource path="res://node.gd" type="Script" id=1]
2020-03-18 16:28:48 +01:00
[sub_resource type="RectangleShape2D" id=1]
extents = Vector2( 69.1778, 29.9015 )
2020-03-18 16:20:55 +01:00
[node name="Node" type="Node2D"]
script = ExtResource( 1 )
[node name="Rect" type="ColorRect" parent="."]
margin_left = -62.0578
margin_top = -20.6286
margin_right = 61.9422
margin_bottom = 21.3714
2020-03-18 16:28:48 +01:00
mouse_filter = 2
2020-03-18 16:20:55 +01:00
__meta__ = {
"_edit_use_anchors_": false
}
[node name="ID" type="Label" parent="."]
margin_left = -57.0578
margin_top = -7.6286
margin_right = 58.9422
margin_bottom = 16.3714
custom_colors/font_color = Color( 0, 0, 0, 1 )
text = "object_id"
align = 1
__meta__ = {
"_edit_use_anchors_": false
}
2020-03-18 16:28:48 +01:00
[node name="Content" type="Label" parent="."]
visible = false
margin_left = -57.0
margin_top = 29.0
margin_right = 250.0
margin_bottom = 238.0
custom_colors/font_color = Color( 0, 0, 0, 1 )
text = "content"
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Area" type="Area2D" parent="."]
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area"]
shape = SubResource( 1 )
2020-03-18 20:03:17 +01:00
[node name="Arrows" type="Node2D" parent="."]
2020-03-18 16:28:48 +01:00
[connection signal="mouse_entered" from="Area" to="." method="_on_hover"]
[connection signal="mouse_exited" from="Area" to="." method="_on_unhover"]