-
Notifications
You must be signed in to change notification settings - Fork 1
/
SpriteButton.tscn
42 lines (35 loc) · 1.14 KB
/
SpriteButton.tscn
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
[gd_scene load_steps=4 format=2]
[ext_resource path="res://script/ColorSelect.gd" type="Script" id=1]
[ext_resource path="res://assets/yellow.png" type="Texture" id=2]
[sub_resource type="StyleBoxEmpty" id=1]
[node name="SpriteButton" type="Control"]
margin_right = 72.0
margin_bottom = 72.0
rect_min_size = Vector2( 72, 72 )
script = ExtResource( 1 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="ReferenceRect" type="ReferenceRect" parent="."]
margin_left = 3.0
margin_top = 3.0
margin_right = 69.0
margin_bottom = 69.0
rect_min_size = Vector2( 66, 66 )
border_color = Color( 0.443137, 0.45098, 0.529412, 1 )
border_width = 6.0
[node name="Button" type="ToolButton" parent="ReferenceRect"]
margin_left = -3.0
margin_top = -3.0
margin_right = 75.0
margin_bottom = 75.0
mouse_default_cursor_shape = 2
custom_styles/focus = SubResource( 1 )
[node name="Sprite" type="Sprite" parent="ReferenceRect"]
show_behind_parent = true
position = Vector2( -3, -3 )
texture = ExtResource( 2 )
centered = false
region_enabled = true
region_rect = Rect2( 0, 0, 72, 72 )
[connection signal="pressed" from="ReferenceRect/Button" to="." method="_on_Button_pressed"]