/ fix search in songwheel
This commit is contained in:
parent
12b033adce
commit
f822fa3826
|
@ -623,6 +623,10 @@ end
|
||||||
function drawFilterInfo(deltatime)
|
function drawFilterInfo(deltatime)
|
||||||
gfx.LoadSkinFont('NotoSans-Regular.ttf')
|
gfx.LoadSkinFont('NotoSans-Regular.ttf')
|
||||||
|
|
||||||
|
if (songwheel.searchInputActive) then
|
||||||
|
return;
|
||||||
|
end
|
||||||
|
|
||||||
gfx.BeginPath()
|
gfx.BeginPath()
|
||||||
gfx.ImageRect(5, 95, 417*0.85, 163*0.85, filterInfoBgImage, 1, 0)
|
gfx.ImageRect(5, 95, 417*0.85, 163*0.85, filterInfoBgImage, 1, 0)
|
||||||
|
|
||||||
|
@ -662,12 +666,18 @@ function drawSearch()
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
gfx.BeginPath();
|
gfx.BeginPath();
|
||||||
local tw, th = gfx.ImageSize(searchBgImage)
|
local tw, th = gfx.ImageSize(searchBgImage)
|
||||||
gfx.ImageRect(desw-tw/2, 0, tw/2, th/2, searchBgImage, 1, 0)
|
local xPos = desw-tw/2;
|
||||||
|
local yPos = 90;
|
||||||
|
|
||||||
gfx.FontSize(28);
|
gfx.ImageRect(xPos, yPos, tw/2, th/2, searchBgImage, 1, 0)
|
||||||
gfx.Text(songwheel.searchText, desw-200, 30);
|
|
||||||
|
gfx.FontSize(32);
|
||||||
|
gfx.LoadSkinFont('Digital-Serial-Bold.ttf')
|
||||||
|
gfx.TextAlign(gfx.TEXT_ALIGN_LEFT + gfx.TEXT_ALIGN_MIDDLE)
|
||||||
|
gfx.Text(songwheel.searchText, xPos+100, yPos+52);
|
||||||
end
|
end
|
||||||
|
|
||||||
function refreshIrLeaderboard(deltaTime)
|
function refreshIrLeaderboard(deltaTime)
|
||||||
|
|
Loading…
Reference in New Issue