diff --git a/scripts/songselect/songwheel.lua b/scripts/songselect/songwheel.lua index d61e91f..ba641b0 100644 --- a/scripts/songselect/songwheel.lua +++ b/scripts/songselect/songwheel.lua @@ -14,6 +14,8 @@ local songPlateBottomBarOverlayImage = gfx.CreateSkinImage("song_select/plate/bo local cursorImage = gfx.CreateSkinImage("song_select/cursor.png", 1) local diffCursorImage = gfx.CreateSkinImage("song_select/level_cursor.png", 1) +local searchBgImage = gfx.CreateSkinImage("song_select/search_bg.png", 1) + local defaultJacketImage = gfx.CreateSkinImage("song_select/loading.png", 0) local difficultyLabelImages = { @@ -404,6 +406,19 @@ function drawData() -- Draws the song data on the left panel gfx.GlobalAlpha(1); end +function drawSearch() + if (not songwheel.searchInputActive) then + return; + end + + gfx.BeginPath(); + local tw, th = gfx.ImageSize(searchBgImage) + gfx.ImageRect(desw-tw/2, 0, tw/2, th/2, searchBgImage, 1, 0) + + gfx.FontSize(28); + gfx.Text(songwheel.searchText, desw-200, 30); +end + function tickTransitions(deltaTime) if transitionScrollScale < 1 then transitionScrollScale = transitionScrollScale + deltaTime / 0.1 -- transition should last for that time in seconds @@ -499,6 +514,8 @@ render = function (deltaTime) drawData() + drawSearch(); + gfx.BeginPath(); gfx.FontSize(18) diff --git a/textures/song_select/search_bg.png b/textures/song_select/search_bg.png new file mode 100644 index 0000000..9fc11bc Binary files /dev/null and b/textures/song_select/search_bg.png differ