godot_data_editor/item_tree.tscn
2017-08-03 17:09:17 +02:00

197 lines
5.8 KiB
Plaintext

[gd_scene load_steps=8 format=1]
[ext_resource path="res://addons/DataEditor/item_tree.gd" type="Script" id=1]
[ext_resource path="res://addons/DataEditor/icons/icon_add.png" type="Texture" id=2]
[ext_resource path="res://addons/DataEditor/icons/icon_remove.png" type="Texture" id=3]
[ext_resource path="res://addons/DataEditor/icons/icon_rename.png" type="Texture" id=4]
[ext_resource path="res://addons/DataEditor/icons/icon_duplicate.png" type="Texture" id=5]
[ext_resource path="res://addons/DataEditor/icons/icon_load.png" type="Texture" id=6]
[sub_resource type="StyleBoxFlat" id=1]
content_margin/left = -1.0
content_margin/right = -1.0
content_margin/top = -1.0
content_margin/bottom = -1.0
bg_color = Color( 0.172549, 0.164706, 0.196078, 1 )
light_color = Color( 0.113725, 0.113725, 0.12549, 1 )
dark_color = Color( 0.113725, 0.113725, 0.12549, 1 )
border_size = 2
border_blend = true
draw_bg = true
[node name="Tree" type="Control"]
anchor/right = 1
anchor/bottom = 1
focus/ignore_mouse = false
focus/stop_mouse = true
size_flags/horizontal = 3
size_flags/vertical = 3
margin/left = 0.0
margin/top = 0.0
margin/right = 0.0
margin/bottom = 0.0
script/script = ExtResource( 1 )
[node name="Panel" type="PanelContainer" parent="."]
anchor/right = 1
anchor/bottom = 1
rect/min_size = Vector2( 150, 0 )
focus/ignore_mouse = false
focus/stop_mouse = true
size_flags/horizontal = 3
size_flags/vertical = 3
margin/left = 0.0
margin/top = 50.0
margin/right = 0.0
margin/bottom = 0.0
[node name="VBox" type="VBoxContainer" parent="Panel"]
focus/ignore_mouse = false
focus/stop_mouse = false
size_flags/horizontal = 3
size_flags/vertical = 3
margin/left = 7.0
margin/top = 7.0
margin/right = 1273.0
margin/bottom = 543.0
alignment = 0
[node name="Margin" type="MarginContainer" parent="Panel/VBox"]
focus/ignore_mouse = false
focus/stop_mouse = true
size_flags/horizontal = 2
size_flags/vertical = 2
margin/left = 0.0
margin/top = 0.0
margin/right = 1266.0
margin/bottom = 24.0
[node name="HBoxContainer" type="HBoxContainer" parent="Panel/VBox/Margin"]
focus/ignore_mouse = false
focus/stop_mouse = false
size_flags/horizontal = 2
size_flags/vertical = 2
margin/left = 8.0
margin/top = 0.0
margin/right = 1266.0
margin/bottom = 24.0
alignment = 0
[node name="AddButton" type="ToolButton" parent="Panel/VBox/Margin/HBoxContainer"]
visibility/visible = false
rect/min_size = Vector2( 28, 28 )
focus/ignore_mouse = false
focus/stop_mouse = true
size_flags/horizontal = 2
size_flags/vertical = 2
margin/left = 0.0
margin/top = 0.0
margin/right = 28.0
margin/bottom = 28.0
toggle_mode = false
enabled_focus_mode = 2
shortcut = null
icon = ExtResource( 2 )
flat = true
[node name="AddButton2" type="ToolButton" parent="Panel/VBox/Margin/HBoxContainer"]
visibility/visible = false
rect/min_size = Vector2( 28, 28 )
focus/ignore_mouse = false
focus/stop_mouse = true
size_flags/horizontal = 2
size_flags/vertical = 2
margin/left = 32.0
margin/top = 0.0
margin/right = 60.0
margin/bottom = 28.0
toggle_mode = false
enabled_focus_mode = 2
shortcut = null
icon = ExtResource( 3 )
flat = true
[node name="Filter" type="LineEdit" parent="Panel/VBox/Margin/HBoxContainer"]
focus/ignore_mouse = false
focus/stop_mouse = true
size_flags/horizontal = 3
size_flags/vertical = 2
margin/left = 0.0
margin/top = 0.0
margin/right = 1258.0
margin/bottom = 24.0
placeholder/text = "Search"
placeholder/alpha = 0.6
focus_mode = 2
caret/caret_blink = false
caret/caret_blink_speed = 0.65
[node name="Tree" type="Tree" parent="Panel/VBox"]
focus/ignore_mouse = false
focus/stop_mouse = true
size_flags/horizontal = 3
size_flags/vertical = 3
margin/left = 0.0
margin/top = 28.0
margin/right = 1266.0
margin/bottom = 536.0
custom_styles/bg = SubResource( 1 )
custom_colors/guide_color = Color( 0.398438, 0.398438, 0.398438, 1 )
custom_constants/hseparation = 4
[node name="ClassContextMenu" type="PopupMenu" parent="."]
visibility/visible = false
focus/ignore_mouse = false
focus/stop_mouse = true
size_flags/horizontal = 2
size_flags/vertical = 2
margin/left = 0.0
margin/top = 0.0
margin/right = 20.0
margin/bottom = 20.0
popup/exclusive = false
items = [ "Add Item", ExtResource( 2 ), false, false, false, 0, 0, null, "", false, "Delete Class", ExtResource( 3 ), false, false, false, 1, 0, null, "", false, "Rename Class", ExtResource( 4 ), false, false, false, -1, 0, null, "", false ]
[node name="InstanceContextMenu" type="PopupMenu" parent="."]
visibility/visible = false
focus/ignore_mouse = false
focus/stop_mouse = true
size_flags/horizontal = 2
size_flags/vertical = 2
margin/left = 0.0
margin/top = 0.0
margin/right = 20.0
margin/bottom = 20.0
popup/exclusive = false
items = [ "Add", ExtResource( 2 ), false, false, false, 0, 0, null, "", false, "Rename", ExtResource( 4 ), false, false, false, 1, 0, null, "", false, "Delete", ExtResource( 3 ), false, false, false, 2, 0, null, "", false, "Duplicate", ExtResource( 5 ), false, false, false, 3, 0, null, "", false, "Open File", ExtResource( 6 ), false, false, false, 4, 0, null, "", false ]
[connection signal="button_down" from="Panel/VBox/Margin/HBoxContainer/AddButton" to="." method="_on_AddButton_button_down"]
[connection signal="text_changed" from="Panel/VBox/Margin/HBoxContainer/Filter" to="." method="_on_Filter_text_changed"]
[connection signal="cell_selected" from="Panel/VBox/Tree" to="." method="_on_Tree_cell_selected"]
[connection signal="item_rmb_selected" from="Panel/VBox/Tree" to="." method="_on_Tree_item_rmb_selected"]
[connection signal="about_to_show" from="ClassContextMenu" to="." method="_on_ClassContextMenu_about_to_show"]
[connection signal="item_pressed" from="ClassContextMenu" to="." method="_on_ClassContextMenu_item_pressed"]
[connection signal="about_to_show" from="InstanceContextMenu" to="." method="_on_InstanceContextMenu_about_to_show"]
[connection signal="item_pressed" from="InstanceContextMenu" to="." method="_on_InstanceContextMenu_item_pressed"]