-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🎉 feat: sublist in lists is now possible
- Loading branch information
1 parent
8f6d912
commit d54908a
Showing
12 changed files
with
144 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
@tool | ||
extends Button | ||
|
||
# Get and return drag data | ||
func _get_drag_data(at_position: Vector2) -> Variant: | ||
return get_parent()._get_drag_data(at_position) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,52 @@ | ||
[gd_scene load_steps=7 format=3 uid="uid://b4edho3whn67t"] | ||
[gd_scene load_steps=9 format=3 uid="uid://b4edho3whn67t"] | ||
|
||
[ext_resource type="Script" path="res://addons/scene_manager/sub_section.gd" id="1_kgwwp"] | ||
[ext_resource type="Texture2D" uid="uid://dme1lg33nbnnh" path="res://addons/scene_manager/icons/GuiOptionArrowRight.png" id="1_yyg5g"] | ||
[ext_resource type="Script" path="res://addons/scene_manager/sub_section_button.gd" id="3_smgrs"] | ||
[ext_resource type="Texture2D" uid="uid://bhejhahjk1yaa" path="res://addons/scene_manager/icons/ImportFail.svg" id="4_chjuj"] | ||
|
||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_7q1ek"] | ||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_vsivh"] | ||
bg_color = Color(0.156863, 0.176471, 0.207843, 1) | ||
|
||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_kdkml"] | ||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_ngg5t"] | ||
bg_color = Color(0.219608, 0.239216, 0.266667, 1) | ||
|
||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_6o5y8"] | ||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_joycj"] | ||
bg_color = Color(0.129412, 0.14902, 0.180392, 1) | ||
|
||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_bin8o"] | ||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_3mngj"] | ||
bg_color = Color(0.6, 0.6, 0.6, 0) | ||
|
||
[node name="All" type="VBoxContainer"] | ||
offset_right = 1024.0 | ||
offset_bottom = 23.0 | ||
script = ExtResource("1_kgwwp") | ||
|
||
[node name="Button" type="Button" parent="."] | ||
[node name="HBoxContainer" type="HBoxContainer" parent="."] | ||
layout_mode = 2 | ||
theme_override_styles/normal = SubResource("StyleBoxFlat_7q1ek") | ||
theme_override_styles/hover = SubResource("StyleBoxFlat_kdkml") | ||
theme_override_styles/pressed = SubResource("StyleBoxFlat_6o5y8") | ||
theme_override_styles/focus = SubResource("StyleBoxFlat_bin8o") | ||
|
||
[node name="Button" type="Button" parent="HBoxContainer"] | ||
custom_minimum_size = Vector2(0, 28) | ||
layout_mode = 2 | ||
size_flags_horizontal = 3 | ||
theme_override_styles/normal = SubResource("StyleBoxFlat_vsivh") | ||
theme_override_styles/hover = SubResource("StyleBoxFlat_ngg5t") | ||
theme_override_styles/pressed = SubResource("StyleBoxFlat_joycj") | ||
theme_override_styles/focus = SubResource("StyleBoxFlat_3mngj") | ||
text = "All" | ||
icon = ExtResource("1_yyg5g") | ||
alignment = 0 | ||
script = ExtResource("3_smgrs") | ||
|
||
[node name="Delete" type="Button" parent="HBoxContainer"] | ||
custom_minimum_size = Vector2(28, 28) | ||
layout_mode = 2 | ||
icon = ExtResource("4_chjuj") | ||
alignment = 0 | ||
|
||
[node name="List" type="VBoxContainer" parent="."] | ||
visible = false | ||
layout_mode = 2 | ||
|
||
[connection signal="button_up" from="Button" to="." method="_on_button_up"] | ||
[connection signal="button_up" from="HBoxContainer/Button" to="." method="_on_button_up"] | ||
[connection signal="button_up" from="HBoxContainer/Delete" to="." method="_on_delete_button_up"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
@tool | ||
extends Button | ||
|
||
# Can drop here | ||
func _can_drop_data(at_position: Vector2, data: Variant) -> bool: | ||
return get_parent().get_parent()._can_drop_data(at_position, data) | ||
|
||
# Drop here | ||
func _drop_data(at_position: Vector2, data: Variant) -> void: | ||
get_parent().get_parent()._drop_data(at_position, data) |