Added auto repeat and made some small fixes
This commit is contained in:
1 parent
e8171d81a9
commit
c4a7d743d3
26 files changed
+797
-39
No files matched your search
+2
-3
@@ -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