Skip to content
Snippets Groups Projects
Commit 84d609a7 authored by KAMEL SEIFELDIN's avatar KAMEL SEIFELDIN
Browse files

avatar pop script

parent 47be33da
Branches
Tags
1 merge request!8Figma boy
......@@ -15,6 +15,10 @@ func _ready():
func _on_texture_button_pressed() -> void:
get_tree().change_scene_to_file(\"res://GameStarter/HomePage.tscn\")
func _on_button_pressed() -> void:
$AvatarPopup.visible = not $AvatarPopup.visible
"
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_13uxv"]
......@@ -79,7 +83,9 @@ theme_override_styles/normal = SubResource("StyleBoxFlat_13uxv")
text = "change my avatar"
[node name="AvatarPopup" parent="." instance=ExtResource("3_bajs7")]
visible = false
position = Vector2(701, 126)
script = ExtResource("6_udx4q")
[connection signal="pressed" from="TextureButton" to="." method="_on_texture_button_pressed"]
[connection signal="pressed" from="Button" to="." method="_on_button_pressed"]
extends Node2D
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
pass # Replace with function body.
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
pass
func make_visible(ismenu) -> void:
self.set_visible(true)
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment