minor update
This commit is contained in:
parent
6c3dd941ce
commit
fde61647bd
@ -36,7 +36,7 @@ end
|
|||||||
|
|
||||||
function reposition_func(pack)
|
function reposition_func(pack)
|
||||||
local INTERVAL = 2
|
local INTERVAL = 2
|
||||||
local STEP = -1
|
local STEP = 1
|
||||||
local SIZE = 80
|
local SIZE = 80
|
||||||
|
|
||||||
local tbl = packs_excluded
|
local tbl = packs_excluded
|
||||||
@ -45,20 +45,20 @@ function reposition_func(pack)
|
|||||||
end
|
end
|
||||||
|
|
||||||
local indx = table.index(tbl, pack) - 1
|
local indx = table.index(tbl, pack) - 1
|
||||||
local pos = {0, (SIZE + INTERVAL) * indx - STEP}
|
local pos = {0, (SIZE + INTERVAL) * indx + STEP}
|
||||||
|
|
||||||
return pos
|
return pos
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
function refresh_search()
|
function refresh_search()
|
||||||
local search_text = document.search_textbox.text:lower()
|
local search_text = document.search_textbox.text:lower()
|
||||||
|
|
||||||
local new_included = table.copy(packs_included)
|
local new_included = table.copy(packs_included)
|
||||||
local new_excluded = table.copy(packs_excluded)
|
local new_excluded = table.copy(packs_excluded)
|
||||||
|
|
||||||
local function score(package_name)
|
local function score(pack_name)
|
||||||
if package_name:lower():find(search_text) then
|
if pack_name:lower():find(search_text) then
|
||||||
return 1
|
return 1
|
||||||
end
|
end
|
||||||
return 0
|
return 0
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user