代码拉取完成,页面将自动刷新
require("config")
require("utils")
require("pk")
setting = {}
local singNumberGame = 10
function setting.Init ()
local ts = require("ts")
local cjson = ts.json
w,h = getScreenSize();
MyTable = {
["style"] = "default",
["rettype"] = "table",
["width"] = 600,
["height"] = 600,
["orient"] = "0",
["bgcolor"] = "255,255,255",
["btnbkcolor"] = "255,255,255",
["config"] = "",
["pagetype"] = "multi",
["selpage"] = "1",
["pagenumtype"] = "default",
["titles"] = "配置",
["timer"] = "0",
["cancelname"] = "取消",
["okname"] = "确定",
["titlealign"] = "left",
["titlesize"] = "15",
pages=
{
{
{
["type"] = "Label",
["color"] = "38,38,38",
["size"] = "15",
["align"] = "left",
["text"] = "单打pk",
},
{
["type"] = "Edit",
["color"] = "38,38,38",
["prompt"] = "内容",
["size"] = "15",
["id"] = "numberGame",
["align"] = "left",
["text"] = "10",
["kbtype"] = "number",
},},
},
}
local MyJsonString = cjson.encode(MyTable);
UIret,values = showUI(MyJsonString)
if UIret == 1 and values then
local singNumberGame = values["numberGame"]
local tabLists = {["numberGame"] = singNumberGame}
utils.setConfig(tabLists)
toast("局数"..singNumberGame)
pk.seePkI()
end
end
return setting
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。