#4 #5 Added a new character select window that now fetches images from the server
All checks were successful
Build / build (push) Successful in 1m31s
Publish / build (push) Successful in 2m39s

This commit is contained in:
2025-11-07 20:46:45 +01:00
parent 734a463db9
commit 166705f2ab
15 changed files with 327 additions and 61 deletions

View File

@@ -56,15 +56,20 @@ func minus_point() -> void:
func change_character() -> void:
change_character_clicked.emit()
func _on_control_character_selected_clicked(file_name: String) -> void:
func character_selected(file_name: String) -> void:
print("Back in player list with: " + file_name)
Settings.player_array[id].character = load("res://characters/" + file_name)
set_player_character()
func new_character_selected(character_texture: ImageTexture) -> void:
print("Back in player list with new")
Settings.player_array[id].character = character_texture
set_player_character()
func set_player_character() -> void:
character.custom_minimum_size = Vector2(80, 40)
character.ignore_texture_size = true
character.stretch_mode = TextureButton.STRETCH_KEEP_ASPECT
character.stretch_mode = TextureButton.STRETCH_KEEP_ASPECT_CENTERED
character.texture_normal = Settings.player_array[id].character
func update_score() -> void: