blob: 6248b45f4e6a493bdbd69f2b0f56b136cd82dea6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
[gd_scene load_steps=9 format=2]
[ext_resource path="res://textures/components/button/middle.png" type="Texture" id=1]
[ext_resource path="res://textures/components/button/right.png" type="Texture" id=2]
[ext_resource path="res://fonts/Fipps-Regular.otf" type="DynamicFontData" id=3]
[ext_resource path="res://textures/components/button/left.png" type="Texture" id=4]
[ext_resource path="res://components/button.gd" type="Script" id=5]
[sub_resource type="DynamicFont" id=1]
outline_color = Color( 0, 0, 0, 1 )
font_data = ExtResource( 3 )
[sub_resource type="Theme" id=2]
default_font = SubResource( 1 )
[sub_resource type="RectangleShape2D" id=3]
extents = Vector2( 10, 32 )
[node name="Button" type="Area2D"]
script = ExtResource( 5 )
[node name="Left" type="Sprite" parent="."]
position = Vector2( -100, 0 )
scale = Vector2( 4, 4 )
texture = ExtResource( 4 )
[node name="Right" type="Sprite" parent="."]
position = Vector2( 100, 0 )
scale = Vector2( 4, 4 )
texture = ExtResource( 2 )
[node name="Middle" type="Sprite" parent="."]
position = Vector2( -0.5, 0 )
scale = Vector2( 30.321, 4 )
texture = ExtResource( 1 )
[node name="FontSource" type="RichTextLabel" parent="."]
grow_horizontal = 2
grow_vertical = 2
rect_clip_content = false
size_flags_horizontal = 3
theme = SubResource( 2 )
text = "Menu"
scroll_active = false
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Hitbox" type="CollisionShape2D" parent="."]
shape = SubResource( 3 )
[connection signal="input_event" from="." to="." method="_on_ButtonTest_input_event"]
[connection signal="mouse_entered" from="." to="." method="_on_ButtonTest_mouse_entered"]
[connection signal="mouse_exited" from="." to="." method="_on_ButtonTest_mouse_exited"]
|