Made improvements to the Search window, Made small changes to the inspiration list scrolling, Made small changes to the player list, Changed the term game to soundtrack, #28: Made changes to the sync window
This commit is contained in:
1 parent
235bdcbcb5
commit
8da6fc442f
17 files changed
+448
-363
No files matched your search
@@ -12,6 +12,8 @@ var character_grid: GridContainer = %CharacterGridContainer
|
||||
@onready
|
||||
var close_timer: Timer = %CloseTimer
|
||||
|
||||
var can_select_character: bool = false
|
||||
|
||||
signal character_selected(file_name: String)
|
||||
signal new_new_character_selected(file_name: String)
|
||||
|
||||
@@ -50,13 +52,16 @@ func show_grid(player_name: String) -> void:
|
||||
title_label.text = "Select character for " + player_name
|
||||
close_timer.stop()
|
||||
self.visible = true
|
||||
can_select_character = true
|
||||
Settings.character_select_open = true
|
||||
|
||||
func _on_character_selected(texture: ImageTexture) -> void:
|
||||
print("_on_character_selected")
|
||||
self.visible = false
|
||||
new_new_character_selected.emit(texture)
|
||||
close_timer.start()
|
||||
if can_select_character:
|
||||
new_new_character_selected.emit(texture)
|
||||
close_timer.start()
|
||||
can_select_character = false
|
||||
|
||||
func _input(event: InputEvent) -> void:
|
||||
if self.visible == true:
|
||||
|
||||
Reference in new issue
Block a user