Added auto repeat and made some small fixes
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user