1 Star 1 Fork 0

第十人i/全名飞机大战-lua

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
setting.lua 1.77 KB
一键复制 编辑 原始数据 按行查看 历史
EightDoor 提交于 2021-02-19 23:14 . feat: 单打
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
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/EightDoor/full-name-aircraft-war-lua.git
git@gitee.com:EightDoor/full-name-aircraft-war-lua.git
EightDoor
full-name-aircraft-war-lua
全名飞机大战-lua
master

搜索帮助