Move loading demos to their own folder

This commit is contained in:
Aaron Franke
2020-01-28 14:19:42 -05:00
parent c6922db2a1
commit 04d86775da
47 changed files with 13 additions and 17 deletions

View File

@@ -2,14 +2,14 @@
[ext_resource path="res://scene_a.gd" type="Script" id=1] [ext_resource path="res://scene_a.gd" type="Script" id=1]
[node name="scene_a" type="Panel"] [node name="SceneA" type="Panel"]
anchor_right = 1.0 anchor_right = 1.0
anchor_bottom = 1.0 anchor_bottom = 1.0
size_flags_horizontal = 2 size_flags_horizontal = 2
size_flags_vertical = 2 size_flags_vertical = 2
script = ExtResource( 1 ) script = ExtResource( 1 )
[node name="label" type="Label" parent="."] [node name="Label" type="Label" parent="."]
margin_left = 64.0 margin_left = 64.0
margin_top = 48.0 margin_top = 48.0
margin_right = 104.0 margin_right = 104.0
@@ -17,7 +17,7 @@ margin_bottom = 62.0
size_flags_vertical = 0 size_flags_vertical = 0
text = "This is scene A." text = "This is scene A."
[node name="goto_scene" type="Button" parent="."] [node name="GoToSceneB" type="Button" parent="."]
margin_left = 64.0 margin_left = 64.0
margin_top = 128.0 margin_top = 128.0
margin_right = 192.0 margin_right = 192.0
@@ -25,5 +25,4 @@ margin_bottom = 160.0
size_flags_horizontal = 2 size_flags_horizontal = 2
size_flags_vertical = 2 size_flags_vertical = 2
text = "Go to Scene B" text = "Go to Scene B"
[connection signal="pressed" from="GoToSceneB" to="." method="_on_goto_scene_pressed"]
[connection signal="pressed" from="goto_scene" to="." method="_on_goto_scene_pressed"]

View File

@@ -2,14 +2,14 @@
[ext_resource path="res://scene_b.gd" type="Script" id=1] [ext_resource path="res://scene_b.gd" type="Script" id=1]
[node name="scene_b" type="Panel"] [node name="SceneB" type="Panel"]
anchor_right = 1.0 anchor_right = 1.0
anchor_bottom = 1.0 anchor_bottom = 1.0
size_flags_horizontal = 2 size_flags_horizontal = 2
size_flags_vertical = 2 size_flags_vertical = 2
script = ExtResource( 1 ) script = ExtResource( 1 )
[node name="label" type="Label" parent="."] [node name="Label" type="Label" parent="."]
margin_left = 64.0 margin_left = 64.0
margin_top = 48.0 margin_top = 48.0
margin_right = 164.0 margin_right = 164.0
@@ -17,7 +17,7 @@ margin_bottom = 62.0
size_flags_vertical = 0 size_flags_vertical = 0
text = "This is scene B." text = "This is scene B."
[node name="goto_scene" type="Button" parent="."] [node name="GoToSceneA" type="Button" parent="."]
margin_left = 64.0 margin_left = 64.0
margin_top = 128.0 margin_top = 128.0
margin_right = 192.0 margin_right = 192.0
@@ -25,5 +25,4 @@ margin_bottom = 160.0
size_flags_horizontal = 2 size_flags_horizontal = 2
size_flags_vertical = 2 size_flags_vertical = 2
text = "Go to Scene A" text = "Go to Scene A"
[connection signal="pressed" from="GoToSceneA" to="." method="_on_goto_scene_pressed"]
[connection signal="pressed" from="goto_scene" to="." method="_on_goto_scene_pressed"]

View File

@@ -12,4 +12,3 @@ margin_top = 8.0
margin_right = 207.0 margin_right = 207.0
margin_bottom = 22.0 margin_bottom = 22.0
step = 1.0 step = 1.0

View File

Before

Width:  |  Height:  |  Size: 420 KiB

After

Width:  |  Height:  |  Size: 420 KiB

View File

Before

Width:  |  Height:  |  Size: 654 KiB

After

Width:  |  Height:  |  Size: 654 KiB

View File

Before

Width:  |  Height:  |  Size: 38 KiB

After

Width:  |  Height:  |  Size: 38 KiB

View File

Before

Width:  |  Height:  |  Size: 162 KiB

After

Width:  |  Height:  |  Size: 162 KiB

View File

Before

Width:  |  Height:  |  Size: 266 KiB

After

Width:  |  Height:  |  Size: 266 KiB

View File

Before

Width:  |  Height:  |  Size: 241 KiB

After

Width:  |  Height:  |  Size: 241 KiB

View File

Before

Width:  |  Height:  |  Size: 167 KiB

After

Width:  |  Height:  |  Size: 167 KiB

View File

Before

Width:  |  Height:  |  Size: 93 KiB

After

Width:  |  Height:  |  Size: 93 KiB

View File

Before

Width:  |  Height:  |  Size: 753 KiB

After

Width:  |  Height:  |  Size: 753 KiB

View File

Before

Width:  |  Height:  |  Size: 132 KiB

After

Width:  |  Height:  |  Size: 132 KiB

View File

Before

Width:  |  Height:  |  Size: 894 KiB

After

Width:  |  Height:  |  Size: 894 KiB

View File

Before

Width:  |  Height:  |  Size: 167 KiB

After

Width:  |  Height:  |  Size: 167 KiB

View File

Before

Width:  |  Height:  |  Size: 95 KiB

After

Width:  |  Height:  |  Size: 95 KiB

View File

@@ -1,6 +1,5 @@
extends Node2D extends Node2D
# Member variables
var thread = Thread.new() var thread = Thread.new()
# This function runs in a thread! # This function runs in a thread!
@@ -18,7 +17,7 @@ func _bg_load_done():
# Wait for the thread to complete, get the returned value # Wait for the thread to complete, get the returned value
var tex = thread.wait_to_finish() var tex = thread.wait_to_finish()
# Set to the sprite # Set to the sprite
get_node("sprite").set_texture(tex) get_node("Sprite").set_texture(tex)
func _on_load_pressed(): func _on_load_pressed():

View File

@@ -2,10 +2,10 @@
[ext_resource path="res://thread.gd" type="Script" id=1] [ext_resource path="res://thread.gd" type="Script" id=1]
[node name="node" type="Node2D"] [node name="Thread" type="Node2D"]
script = ExtResource( 1 ) script = ExtResource( 1 )
[node name="load" type="Button" parent="."] [node name="Load" type="Button" parent="."]
margin_left = 432.0 margin_left = 432.0
margin_top = 82.0 margin_top = 82.0
margin_right = 560.0 margin_right = 560.0
@@ -17,10 +17,10 @@ __meta__ = {
"_edit_use_anchors_": false "_edit_use_anchors_": false
} }
[node name="sprite" type="Sprite" parent="."] [node name="Sprite" type="Sprite" parent="."]
position = Vector2( 494, 336 ) position = Vector2( 494, 336 )
[node name="Camera2D" type="Camera2D" parent="."] [node name="Camera2D" type="Camera2D" parent="."]
offset = Vector2( 512, 300 ) offset = Vector2( 512, 300 )
current = true current = true
[connection signal="pressed" from="load" to="." method="_on_load_pressed"] [connection signal="pressed" from="Load" to="." method="_on_load_pressed"]