add "no matches" info similar to skill dropdowns implementation

This commit is contained in:
Fish013
2020-02-16 20:14:25 +01:00
parent 17bc09a700
commit 68359e45f2

View File

@@ -335,8 +335,11 @@ function DropDownClass:Draw(viewPort)
self:DrawSearchHighlights(label, searchInfo, 0, y, width - 4, lineHeight)
end
end
SetViewport()
SetDrawColor(1, 1, 1)
if self:IsSearchActive() and self:GetMatchCount() == 0 then
DrawString(0, 0 , "LEFT", lineHeight, "VAR", "<No matches>")
end
SetViewport()
SetDrawLayer(nil, 0)
end
end