Lera Elvoé
08bbf61416
* test case with folders/subfolders * renaming items by double-clicking them * naive drag test
72 lines
2.0 KiB
Plaintext
72 lines
2.0 KiB
Plaintext
[gd_scene load_steps=4 format=2]
|
|
|
|
[ext_resource path="res://ControlTreeItem.gd" type="Script" id=1]
|
|
[ext_resource path="res://DragHandle.gd" type="Script" id=2]
|
|
[ext_resource path="res://RenamableButton.gd" type="Script" id=3]
|
|
|
|
[node name="ControlTreeItem" type="VBoxContainer"]
|
|
anchor_right = 0.479
|
|
anchor_bottom = 0.06
|
|
margin_right = 0.503967
|
|
script = ExtResource( 1 )
|
|
__meta__ = {
|
|
"_editor_description_": "An item singlet, i.e. the quintessential item container type for ControlTree. Has a \"main\" item and potentially a number of sub-items."
|
|
}
|
|
|
|
[node name="ItemAtom" type="HBoxContainer" parent="."]
|
|
margin_right = 490.0
|
|
margin_bottom = 32.0
|
|
rect_min_size = Vector2( 0, 32 )
|
|
size_flags_vertical = 5
|
|
__meta__ = {
|
|
"_editor_description_": "Atomic ControlTree item subtype, i.e. the smallest uncontained tree item that is only aware of itself and not any of its' sub-items."
|
|
}
|
|
|
|
[node name="SubitemMargin" type="MarginContainer" parent="ItemAtom"]
|
|
unique_name_in_owner = true
|
|
visible = false
|
|
margin_bottom = 32.0
|
|
|
|
[node name="CollapseButton" type="Button" parent="ItemAtom"]
|
|
unique_name_in_owner = true
|
|
visible = false
|
|
margin_right = 19.0
|
|
margin_bottom = 32.0
|
|
toggle_mode = true
|
|
text = "v"
|
|
flat = true
|
|
|
|
[node name="DragHandle" type="Panel" parent="ItemAtom"]
|
|
unique_name_in_owner = true
|
|
margin_right = 32.0
|
|
margin_bottom = 32.0
|
|
rect_min_size = Vector2( 32, 0 )
|
|
script = ExtResource( 2 )
|
|
|
|
[node name="CheckBox" type="CheckBox" parent="ItemAtom"]
|
|
unique_name_in_owner = true
|
|
margin_left = 36.0
|
|
margin_right = 60.0
|
|
margin_bottom = 32.0
|
|
|
|
[node name="ItemTextButton" type="Button" parent="ItemAtom"]
|
|
unique_name_in_owner = true
|
|
margin_left = 64.0
|
|
margin_right = 490.0
|
|
margin_bottom = 32.0
|
|
size_flags_horizontal = 3
|
|
toggle_mode = true
|
|
text = "Item text"
|
|
flat = true
|
|
align = 0
|
|
script = ExtResource( 3 )
|
|
|
|
[node name="Subitems" type="VBoxContainer" parent="."]
|
|
unique_name_in_owner = true
|
|
margin_top = 36.0
|
|
margin_right = 490.0
|
|
margin_bottom = 36.0
|
|
__meta__ = {
|
|
"_editor_description_": "A container for a ControlTreeItem's sub-items, which are themselves ControlTreeItems."
|
|
}
|