How would you create a search bar?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By zoisus

Hi everyone,

I’m looking to create a search bar in the game to look for specific items in the inventory, but I’m still new to Godot and I don’t exactly know what control nodes to use to do just that. How would you do it?

Thank you!

:bust_in_silhouette: Reply From: njamster

Use a LineEdit-node and connect its text_changed-signal if you want to implement a live-search or the text_entered-signal if you want the user to confirm the query first. Both signals provide the new_text as an argument to the callback.