Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

Commit

Permalink
removed comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Rösel committed May 28, 2024
1 parent bf14c61 commit 9595cb4
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 21 deletions.
2 changes: 0 additions & 2 deletions godot/src/script_editor/button_add.gd
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,10 @@ const TurnFragment: Resource = preload(


func _on_pressed():
#print_tree_pretty()
API.insert(200)
(
get_tree()
. get_current_scene()
. get_node("VBoxContainer/VScrollContainer/AutoRefresh/Code")
. add_child(TurnFragment.instantiate())
)
#get_tree().get_current_scene().print_tree_pretty()
2 changes: 0 additions & 2 deletions godot/src/script_editor/button_for.gd
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,10 @@ const MoveFragment: Resource = preload(


func _on_pressed():
#print_tree_pretty()
API.insert(200)
(
get_tree()
. get_current_scene()
. get_node("VBoxContainer/VScrollContainer/AutoRefresh/Code")
. add_child(MoveFragment.instantiate())
)
#get_tree().get_current_scene().print_tree_pretty()
2 changes: 0 additions & 2 deletions godot/src/script_editor/button_while.gd
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,10 @@ const MoveFragment: Resource = preload(


func _on_pressed():
#print_tree_pretty()
API.insert(200)
(
get_tree()
. get_current_scene()
. get_node("VBoxContainer/VScrollContainer/AutoRefresh/Code")
. add_child(MoveFragment.instantiate())
)
#get_tree().get_current_scene().print_tree_pretty()
13 changes: 0 additions & 13 deletions godot/src/widgets/draggable tree/draggable_node_start.gd
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,15 @@ extends Control
@onready var target = 0


# Called when the node enters the scene tree for the first time.
func _ready():
add_to_group("draggable_node_start")


func _get_drag_data(_at_position: Vector2):
print("get drag start")
set_drag_preview(get_preview_controll())
# print(get_preview_controll())
target = get_parent().get_node(self.get_path()).get_index(true)
var return_node = get_parent().get_parent().get_parent()
# print(return_node)
return return_node


Expand All @@ -32,7 +29,6 @@ func _drop_data(_at_position, data):
target = get_parent().get_node(self.get_path()).get_index(true)
node = get_parent().get_node(data.get_path())
else:
#get_parent().move_child(node, target)
target = get_parent().get_node(self.get_path()).get_index(true)
node = get_parent().get_node(data.get_path())

Expand All @@ -44,17 +40,8 @@ func _can_drop_data(_at_position, data):
target = get_parent().get_node(self.get_path()).get_index(true) + 1
node = get_node(data.get_path())
else:
#get_parent().move_child(node, target)
target = get_parent().get_node(self.get_path()).get_index(true) + 1
node = get_node(data.get_path())
#print(target)
#print(node)
#print(data.get_path())
#print("1")
#print(get_parent())
#print("2")
#get_parent().print_tree_pretty()
#get_parent().move_child(node, target)
node.get_parent().remove_child(node)
get_parent().add_child(node)
return true
2 changes: 0 additions & 2 deletions godot/src/widgets/draggable tree/non_dragable_label.gd
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ extends Control
@onready var target = 0


# Called when the node enters the scene tree for the first time.
func _ready():
add_to_group("draggable_node_label")

Expand All @@ -23,7 +22,6 @@ func get_preview_controll():

func _can_drop_data(_at_position, data):
var node
# get_parent().get_parent().print_tree_pretty()
print("nondarg label")
print(data)
if data.is_in_group("draggable_leaf"):
Expand Down

0 comments on commit 9595cb4

Please sign in to comment.