Added auto repeat and made some small fixes

This commit is contained in:
2024-10-20 20:28:06 +02:00
parent e8171d81a9
commit c4a7d743d3
26 changed files with 797 additions and 39 deletions

View File

@@ -80,10 +80,10 @@ func add_game(game: String) -> void:
label.text = game
print("game: " + game)
label.autowrap_mode = TextServer.AUTOWRAP_WORD
if !game_exists(game):
if !check_if_game_exists(game):
search_list.add_child(label)
func game_exists(game: String) -> bool:
func check_if_game_exists(game: String) -> bool:
var game_exists: bool = false
for child: Label in search_list.get_children():
if child.text == game:
@@ -95,7 +95,6 @@ func compile_regex(search_term: String) -> RegEx:
var regText: String = ".*"
for letter in search_term:
regText += letter + ".*"
#print(regText)
regex.compile(regText)
return regex