Skip to content

search_box

Anthony Samms edited this page Jun 1, 2026 · 1 revision

SearchBox is the text-input overlay shown on the song_select screen when the player enters a folder whose box.def declares the SEARCH collection type. The player types a song title and the navigator filters the list to matching songs.

SearchBox

SearchBox();

Loads the skin font and retrieves the diff_fade_in and bg_resize animations.

Members

Member Type Description
current_search string The search string as the player has typed it so far

Methods

void update(double current_ms);

Advances the fade-in and background resize animations.

void draw();

Draws the search panel background (animated via bg_resize), the typed text rendered with the skin font, and a blinking cursor. The panel fades in via diff_fade_in.

Input is handled externally by SongSelectPlayer::handle_input_search(), which appends characters to current_search and returns the completed string to the song_select scene when Enter is pressed.

Clone this wiki locally