Add a "create files" level

This commit is contained in:
blinry 2020-11-13 11:21:36 +01:00
parent 5311e1d469
commit f742085fd1
4 changed files with 34 additions and 6 deletions

View file

@ -46,7 +46,7 @@ __meta__ = {
[node name="Title" type="Label" parent="Panel/Margin/Rows"]
margin_right = 1904.0
margin_bottom = 32.0
margin_bottom = 29.0
text = "title"
align = 1
@ -69,7 +69,7 @@ margin_bottom = 50.0
text = "dir"
[node name="Scroll" type="ScrollContainer" parent="Panel/Margin/Rows"]
margin_top = 32.0
margin_top = 29.0
margin_right = 1904.0
margin_bottom = 1064.0
size_flags_horizontal = 3
@ -77,7 +77,7 @@ size_flags_vertical = 3
[node name="Grid" type="GridContainer" parent="Panel/Margin/Rows/Scroll"]
margin_right = 1904.0
margin_bottom = 1032.0
margin_bottom = 1035.0
size_flags_horizontal = 3
size_flags_vertical = 3
custom_constants/vseparation = 16

View file

@ -7,7 +7,7 @@ onready var simplify_checkbox = $Rows/RepoVis/SimplifyCheckbox
export var label: String setget set_label
export var path: String setget set_path, get_path
export var simplified_view = false setget set_simplified_view
export var simplified_view = true setget set_simplified_view
export var editable_path = false setget set_editable_path
var node = preload("res://scenes/node.tscn")
@ -109,8 +109,8 @@ func update_objects():
n.children = c
_commit_count += 1
if _commit_count >= 3 and not simplified_view:
set_simplified_view(true)
# if _commit_count >= 3 and not simplified_view:
# set_simplified_view(true)
"tag":
n.children = tag_target(o)