Refacto open scene UI
This commit is contained in:
+12
-12
@@ -1,9 +1,19 @@
|
||||
[gd_scene load_steps=2 format=2]
|
||||
|
||||
[ext_resource path="res://scenes/UI/About.gd" type="Script" id=1]
|
||||
[sub_resource type="GDScript" id=1]
|
||||
script/source = "extends Node
|
||||
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready():
|
||||
pass # Replace with function body.
|
||||
|
||||
func _on_Return_pressed():
|
||||
get_tree().change_scene(\"res://scenes/main.tscn\")
|
||||
"
|
||||
|
||||
[node name="About" type="Node"]
|
||||
script = ExtResource( 1 )
|
||||
script = SubResource( 1 )
|
||||
|
||||
[node name="GRem" type="Label" parent="."]
|
||||
margin_left = 350.0
|
||||
@@ -25,13 +35,3 @@ text = "Lead Artist : Stilobique -- VAILLANT Aurelien"
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="Return" type="LinkButton" parent="."]
|
||||
margin_right = 40.0
|
||||
margin_bottom = 14.0
|
||||
text = "back"
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[connection signal="pressed" from="Return" to="." method="_on_Return_pressed"]
|
||||
|
||||
Reference in New Issue
Block a user