|
1 |
| -[gd_scene load_steps=7 format=3 uid="uid://bdtetj0gs45hv"] |
| 1 | +[gd_scene load_steps=8 format=3 uid="uid://bdtetj0gs45hv"] |
2 | 2 |
|
3 | 3 | [ext_resource type="Script" path="res://addons/block_code/ui/picker/categories/block_category_button.gd" id="1_pxxnl"]
|
| 4 | +[ext_resource type="Texture2D" uid="uid://g10ct6m5goi6" path="res://addons/block_code/ui/picker/categories/icons/file_broken.svg" id="2_0c1ke"] |
4 | 5 |
|
5 |
| -[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_eogpc"] |
6 |
| -bg_color = Color(1, 0, 0, 1) |
7 |
| -corner_radius_top_left = 100 |
8 |
| -corner_radius_top_right = 100 |
9 |
| -corner_radius_bottom_right = 100 |
10 |
| -corner_radius_bottom_left = 100 |
| 6 | +[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_w0e7p"] |
| 7 | +bg_color = Color(1, 1, 1, 1) |
| 8 | +corner_radius_top_left = 5 |
| 9 | +corner_radius_top_right = 5 |
| 10 | +corner_radius_bottom_right = 5 |
| 11 | +corner_radius_bottom_left = 5 |
11 | 12 |
|
12 |
| -[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_ousiv"] |
| 13 | +[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_dgecf"] |
13 | 14 |
|
14 | 15 | [sub_resource type="StyleBoxFlat" id="StyleBoxFlat_fyk0j"]
|
15 | 16 | bg_color = Color(1, 1, 1, 0.196078)
|
| 17 | +corner_radius_top_left = 5 |
| 18 | +corner_radius_top_right = 5 |
| 19 | +corner_radius_bottom_right = 5 |
| 20 | +corner_radius_bottom_left = 5 |
16 | 21 |
|
17 | 22 | [sub_resource type="StyleBoxFlat" id="StyleBoxFlat_ha83k"]
|
18 | 23 | bg_color = Color(1, 1, 1, 0.392157)
|
| 24 | +corner_radius_top_left = 5 |
| 25 | +corner_radius_top_right = 5 |
| 26 | +corner_radius_bottom_right = 5 |
| 27 | +corner_radius_bottom_left = 5 |
19 | 28 |
|
20 |
| -[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_dgecf"] |
| 29 | +[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_ousiv"] |
21 | 30 |
|
22 | 31 | [node name="BlockCategoryButton" type="MarginContainer"]
|
23 |
| -custom_minimum_size = Vector2(150, 0) |
24 |
| -offset_right = 148.0 |
25 |
| -offset_bottom = 32.0 |
26 | 32 | script = ExtResource("1_pxxnl")
|
27 | 33 |
|
28 |
| -[node name="HBoxContainer" type="HBoxContainer" parent="."] |
29 |
| -layout_mode = 2 |
30 |
| - |
31 |
| -[node name="MarginContainer" type="MarginContainer" parent="HBoxContainer"] |
32 |
| -custom_minimum_size = Vector2(40, 40) |
33 |
| -layout_mode = 2 |
34 |
| -theme_override_constants/margin_left = 8 |
35 |
| -theme_override_constants/margin_top = 8 |
36 |
| -theme_override_constants/margin_right = 8 |
37 |
| -theme_override_constants/margin_bottom = 8 |
38 |
| - |
39 |
| -[node name="Panel" type="Panel" parent="HBoxContainer/MarginContainer"] |
| 34 | +[node name="Panel" type="Panel" parent="."] |
40 | 35 | unique_name_in_owner = true
|
41 | 36 | layout_mode = 2
|
42 |
| -theme_override_styles/panel = SubResource("StyleBoxFlat_eogpc") |
43 |
| - |
44 |
| -[node name="Label" type="Label" parent="HBoxContainer"] |
45 |
| -unique_name_in_owner = true |
46 |
| -layout_mode = 2 |
47 |
| -text = "Example" |
| 37 | +theme_override_styles/panel = SubResource("StyleBoxFlat_w0e7p") |
48 | 38 |
|
49 | 39 | [node name="Button" type="Button" parent="."]
|
| 40 | +unique_name_in_owner = true |
50 | 41 | layout_mode = 2
|
| 42 | +size_flags_horizontal = 4 |
| 43 | +tooltip_text = "Example" |
51 | 44 | mouse_default_cursor_shape = 2
|
52 |
| -theme_override_styles/normal = SubResource("StyleBoxEmpty_ousiv") |
| 45 | +theme_override_styles/focus = SubResource("StyleBoxEmpty_dgecf") |
53 | 46 | theme_override_styles/hover = SubResource("StyleBoxFlat_fyk0j")
|
54 | 47 | theme_override_styles/pressed = SubResource("StyleBoxFlat_ha83k")
|
55 |
| -theme_override_styles/focus = SubResource("StyleBoxEmpty_dgecf") |
| 48 | +theme_override_styles/normal = SubResource("StyleBoxEmpty_ousiv") |
| 49 | +icon = ExtResource("2_0c1ke") |
| 50 | +icon_alignment = 1 |
56 | 51 |
|
57 | 52 | [connection signal="pressed" from="Button" to="." method="_on_button_pressed"]
|
0 commit comments