场景&事件系统重写
This commit is contained in:
@@ -1,9 +1,11 @@
|
||||
function sceneBack.lang()
|
||||
local scene={}
|
||||
|
||||
function scene.sceneBack()
|
||||
FILE.save(SETTING,"settings")
|
||||
end
|
||||
|
||||
local function setLang(n)return function()SETTING.lang=n LANG.set(n)end end
|
||||
WIDGET.init("lang",{
|
||||
scene.widgetList={
|
||||
WIDGET.newButton{name="zh", x=200, y=100,w=200,h=120,font=45,code=setLang(1)},
|
||||
WIDGET.newButton{name="zh2", x=420, y=100,w=200,h=120,font=45,code=setLang(2)},
|
||||
WIDGET.newButton{name="en", x=640, y=100,w=200,h=120,font=45,code=setLang(3)},
|
||||
@@ -12,4 +14,6 @@ WIDGET.init("lang",{
|
||||
WIDGET.newButton{name="symbol", x=200, y=250,w=200,h=120,font=45,code=setLang(6)},
|
||||
WIDGET.newButton{name="yygq", x=420, y=250,w=200,h=120,font=45,code=setLang(7)},
|
||||
WIDGET.newButton{name="back", x=640, y=600,w=200,h=80,font=35,code=WIDGET.lnk_BACK},
|
||||
})
|
||||
}
|
||||
|
||||
return scene
|
||||
Reference in New Issue
Block a user