update plugins
This commit is contained in:
16
samples/search-test.lua
Normal file
16
samples/search-test.lua
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
-- name = "Script #1"
|
||||||
|
-- type = "search"
|
||||||
|
|
||||||
|
local table = {}
|
||||||
|
|
||||||
|
function on_search(input)
|
||||||
|
search:show({ input.." 1", input.." 2" })
|
||||||
|
end
|
||||||
|
|
||||||
|
function on_click(idx)
|
||||||
|
system:vibrate(100)
|
||||||
|
end
|
||||||
|
|
||||||
|
function on_long_click(idx)
|
||||||
|
system:vibrate(300)
|
||||||
|
end
|
||||||
19
samples/search-test2.lua
Normal file
19
samples/search-test2.lua
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
-- name = "Script #2"
|
||||||
|
-- type = "search"
|
||||||
|
|
||||||
|
md_colors = require("md_colors")
|
||||||
|
|
||||||
|
function on_search()
|
||||||
|
local texts = { "text1", "text2", "text3" }
|
||||||
|
local colors = { md_colors.purple_400, md_colors.purple_600, md_colors.purple_800 }
|
||||||
|
|
||||||
|
search:show(texts, colors)
|
||||||
|
end
|
||||||
|
|
||||||
|
function on_click(idx)
|
||||||
|
if idx == 1 then
|
||||||
|
system:vibrate(100)
|
||||||
|
else
|
||||||
|
system:vibrate(300)
|
||||||
|
end
|
||||||
|
end
|
||||||
@@ -1 +1 @@
|
|||||||
53c3e3d17eb53d0af7eaa5d29bbbf2a8
|
4b878a97c57d3dfa7bca3182b3afff5c
|
||||||
|
|||||||
BIN
scripts.zip
BIN
scripts.zip
Binary file not shown.
Reference in New Issue
Block a user