function 显示器(信息)
local 信息 = 信息 or "未知界面"
fwShowWnd("wid1", 0, 0, 759, 22, 1)
fwShowTextView("wid1", "textid",信息, "center", "FFFFFF", "FF0000", 10, 1, 622, 3, 759, 22, 1)
end
function bise_mo(arg)
if type(arg) == nil then
dialog("调用名称跟颜色名称不一样!", 0)
lua_exit()
elseif type(arg) == "function" then
dialog("不要把function的名称跟颜色名字设置一样!", 0)
lua_exit()
end
local fl, abs = math.floor, math.abs
local s = fl(0xff * 0.05)
for i = 1, #arg, 3 do
local r, g, b = fl(arg[i + 2] / 0x10000), fl(arg[i + 2] % 0x10000 / 0x100), fl(arg[i + 2] % 0x100)
local rr, gg, bb = getColorRGB(arg[i], arg[i + 1])
if abs(r - rr) >= s or abs(g - gg) >= s or abs(b - bb) >= s then
return false
end
end
return true
end
function nLog(nr)
require("TSLib")
if type(nr) == "string" then
writeFileString(userPath() .. "/log/rz.log", nr, "a", 1)
elseif type(nr) == "table" then
writeFile(userPath() .. "/log/rz.log", nr, "a", 1)
elseif type(nr) == "number" then
writeFileString(userPath() .. "/log/rz.log", tostring(nr), "a", 1)
elseif type(nr) == "boolean" then
if nr == false then
writeFileString(userPath() .. "/log/rz.log", "假", "a", 1)
else
writeFileString(userPath() .. "/log/rz.log", "真", "a", 1)
end
end
end