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

Commit

Permalink
intermediate commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Max Oberaigner committed Apr 23, 2024
1 parent 11bfc5b commit 244cea7
Show file tree
Hide file tree
Showing 10 changed files with 9 additions and 164 deletions.
6 changes: 6 additions & 0 deletions godot/.godot/global_script_class_cache.cfg
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
list=Array[Dictionary]([{
"base": &"VBoxContainer",
"class": &"AutoRefresh",
"icon": "",
"language": &"GDScript",
"path": "res://src/widgets/AutoRefresh/auto_refresh.gd"
}, {
"base": &"EditorPlugin",
"class": &"FormatOnSave",
"icon": "",
Expand Down
21 changes: 0 additions & 21 deletions godot/src/script_editor/add_move_fragment.tscn

This file was deleted.

17 changes: 0 additions & 17 deletions godot/src/script_editor/move_fragment.gd

This file was deleted.

21 changes: 0 additions & 21 deletions godot/src/script_editor/move_fragment.tscn

This file was deleted.

11 changes: 0 additions & 11 deletions godot/src/script_editor/move_fragment_label.tscn

This file was deleted.

34 changes: 0 additions & 34 deletions godot/src/script_editor/script_fragment.gd

This file was deleted.

44 changes: 0 additions & 44 deletions godot/src/script_editor/script_fragment.tscn

This file was deleted.

11 changes: 0 additions & 11 deletions godot/src/sprite_selector/add_sprite.gd
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,6 @@ extends Control
var Sprites: Resource = preload("res://src/sprite_selector/sprite.tscn")


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


# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(_delta):
pass


func _on_add_sprite_button_pressed():
$FileDialog.popup_centered()

Expand All @@ -27,4 +17,3 @@ func _on_file_dialog_file_selected(path):
margin_container.add_theme_constant_override("margin_bottom", margin_value / 2)
margin_container.add_theme_constant_override("margin_right", margin_value)
get_node("VBoxContainer2/VBox/ScrollContainer/VBoxIntems").add_child(sprite)
print_tree_pretty()
4 changes: 3 additions & 1 deletion godot/src/sprite_selector/add_sprite.tscn
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[gd_scene load_steps=4 format=3 uid="uid://bs2465qtho3bu"]
[gd_scene load_steps=5 format=3 uid="uid://bs2465qtho3bu"]

[ext_resource type="Script" path="res://src/sprite_selector/add_sprite.gd" id="1_w6ncu"]
[ext_resource type="Script" path="res://src/sprite_selector/sprite_list.gd" id="2_y3h1p"]

[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_kefq6"]

Expand Down Expand Up @@ -75,6 +76,7 @@ size_flags_vertical = 3
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 3
script = ExtResource("2_y3h1p")

[connection signal="file_selected" from="FileDialog" to="." method="_on_file_dialog_file_selected"]
[connection signal="pressed" from="VBoxContainer2/HBoxContainer/MarginContainer/AddSpriteButton" to="." method="_on_add_sprite_button_pressed"]
4 changes: 0 additions & 4 deletions godot/src/sprite_selector/sprite.gd
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,3 @@ func get_preview_controll():
func _drop_data(_at_position, data):
var node = get_parent().get_node(data.get_path())
get_parent().move_child(node, target)


func _on_pressed():
get_tree().change_scene_to_file("res://src/script_editor/script_fragment.tscn")

0 comments on commit 244cea7

Please sign in to comment.