mirror of
https://github.com/Relintai/material-maker.git
synced 2024-11-09 04:22:10 +01:00
d6bfbab92a
The filter box is now located at the top of the library tree, as most search boxes are placed above the elements they search in. Pressing Ctrl + F will now focus the filter box as well.
43 lines
1.1 KiB
Plaintext
43 lines
1.1 KiB
Plaintext
[gd_scene load_steps=3 format=2]
|
|
|
|
[ext_resource path="res://addons/material_maker/library.gd" type="Script" id=1]
|
|
[ext_resource path="res://addons/material_maker/library_tree.gd" type="Script" id=2]
|
|
|
|
[node name="Library" type="VBoxContainer"]
|
|
margin_right = 352.0
|
|
margin_bottom = 423.0
|
|
script = ExtResource( 1 )
|
|
__meta__ = {
|
|
"_edit_use_anchors_": false
|
|
}
|
|
|
|
[node name="HBoxContainer" type="HBoxContainer" parent="."]
|
|
margin_right = 352.0
|
|
margin_bottom = 24.0
|
|
size_flags_horizontal = 3
|
|
|
|
[node name="FilterLabel" type="Label" parent="HBoxContainer"]
|
|
margin_top = 5.0
|
|
margin_right = 37.0
|
|
margin_bottom = 19.0
|
|
text = "Filter:"
|
|
|
|
[node name="Filter" type="LineEdit" parent="HBoxContainer"]
|
|
margin_left = 41.0
|
|
margin_right = 352.0
|
|
margin_bottom = 24.0
|
|
size_flags_horizontal = 3
|
|
|
|
[node name="Tree" type="Tree" parent="."]
|
|
margin_top = 28.0
|
|
margin_right = 352.0
|
|
margin_bottom = 423.0
|
|
rect_min_size = Vector2( 100, 100 )
|
|
size_flags_horizontal = 3
|
|
size_flags_vertical = 3
|
|
columns = 2
|
|
hide_root = true
|
|
select_mode = 1
|
|
script = ExtResource( 2 )
|
|
[connection signal="text_changed" from="HBoxContainer/Filter" to="." method="_on_Filter_text_changed"]
|