Skip to content

Commit

Permalink
Fix some names
Browse files Browse the repository at this point in the history
  • Loading branch information
m-canton committed Jul 4, 2024
1 parent 24f89fc commit 884b142
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions addons/scene_manager/test/change_scene/other_scene.gd
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@ extends Control
@onready var resources_label: Label = $ResourcesLabel

var message := ""
var loading_dependency
var loaded_resources

func _ready() -> void:
$Label.text = message

var scene_manager := get_node("/root/SceneManager")
change_scene_button.pressed.connect(scene_manager.change_scene_to_file.bind("res://addons/scene_manager/test/change_scene/test_scene.tscn", {
change_scene_button.pressed.connect(get_node("/root/SceneManager").change_scene_to_file.bind("res://addons/scene_manager/test/change_scene/test_scene.tscn", {
message = "Hello from Second Scene!"
}))

if loading_dependency is Array:
# Loaded resources
if loaded_resources is Array:
resources_label.text = "Loaded Resources:\n"
for d in loading_dependency:
for d in loaded_resources:
resources_label.text += str(d) + "\n"
2 changes: 1 addition & 1 deletion addons/scene_manager/test/change_scene/other_scene.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ offset_right = 95.0
offset_bottom = 27.0
grow_horizontal = 2
grow_vertical = 2
text = "First Scene"
text = "Previous Scene"

[node name="Label" type="Label" parent="."]
layout_mode = 1
Expand Down
2 changes: 1 addition & 1 deletion addons/scene_manager/test/change_scene/test_scene.gd
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func _on_change_scene() -> void:
scene_manager.reset_loading_screen()

if loading_screen_append_resources_check_button.button_pressed:
properties["loading_dependency"] = [
properties["loaded_resources"] = [
scene_manager.append_resource("res://addons/scene_manager/test/custom_loading_screen/loading_screen.gd"),
scene_manager.append_resource("res://addons/scene_manager/test/change_scene/test_scene.tscn"),
]
Expand Down

0 comments on commit 884b142

Please sign in to comment.