feat: Implement core multiplayer lobby system with room management, player profiles, and game settings.
This commit is contained in:
@@ -40,6 +40,7 @@ func _load_profile_data() -> void:
|
||||
|
||||
# Display name
|
||||
display_name_input.text = profile.get("display_name", "Guest")
|
||||
display_name_input.max_length = 6
|
||||
|
||||
# Avatar
|
||||
var avatar_url: String = UserProfileManager.get_avatar_url()
|
||||
@@ -132,9 +133,13 @@ func _on_save_name_pressed() -> void:
|
||||
save_name_btn.disabled = false
|
||||
|
||||
if success:
|
||||
status_label.add_theme_color_override("font_color", Color.GREEN)
|
||||
status_label.text = "Name updated!"
|
||||
emit_signal("profile_updated")
|
||||
await get_tree().create_timer(3.0).timeout
|
||||
status_label.text = ""
|
||||
else:
|
||||
status_label.add_theme_color_override("font_color", Color.RED)
|
||||
status_label.text = "Failed to update name"
|
||||
|
||||
func _on_link_account_pressed() -> void:
|
||||
@@ -187,7 +192,10 @@ func _on_profile_updated() -> void:
|
||||
_load_profile_data()
|
||||
|
||||
func _on_profile_update_failed(error: String) -> void:
|
||||
status_label.add_theme_color_override("font_color", Color.RED)
|
||||
status_label.text = error
|
||||
await get_tree().create_timer(3.0).timeout
|
||||
status_label.text = ""
|
||||
|
||||
func show_panel() -> void:
|
||||
_load_profile_data()
|
||||
|
||||
Reference in New Issue
Block a user