config level, clone level, PR level

This commit is contained in:
blinry 2021-01-07 17:35:08 +01:00
parent 8a86009e2f
commit 023a98cfae
8 changed files with 110 additions and 2 deletions

View file

@ -118,7 +118,7 @@ func move_back():
func dropped_on(other):
if "[" in command:
var argument
if other.type == "file":
if other.type == "file" or other.type == "remote":
argument = other.label
else:
argument = other.id

View file

@ -10,6 +10,8 @@ export var path: String setget set_path, get_path
export var simplified_view = true setget set_simplified_view
export var editable_path = false setget set_editable_path
var type = "remote"
var node = preload("res://scenes/node.tscn")
var shell = Shell.new()
@ -74,6 +76,7 @@ func set_label(new_label):
if label_node:
if new_label == "yours":
new_label = ""
$Rows/RepoVis/DropArea.queue_free()
label_node.text = new_label
func random_position():

View file

@ -1,8 +1,9 @@
[gd_scene load_steps=4 format=2]
[gd_scene load_steps=5 format=2]
[ext_resource path="res://scenes/repository.gd" type="Script" id=1]
[ext_resource path="res://styles/theme.tres" type="Theme" id=2]
[ext_resource path="res://fonts/big.tres" type="DynamicFont" id=3]
[ext_resource path="res://scenes/drop_area.tscn" type="PackedScene" id=4]
[node name="Repository" type="Control"]
anchor_right = 1.0
@ -30,6 +31,9 @@ __meta__ = {
"_edit_use_anchors_": false
}
[node name="DropArea" parent="Rows/RepoVis" instance=ExtResource( 4 )]
position = Vector2( 67.3194, 32.6666 )
[node name="Label" type="Label" parent="Rows/RepoVis"]
margin_left = 5.60091
margin_top = -0.518692