添加说明书场景

This commit is contained in:
MrZ626
2021-01-28 17:52:45 +08:00
parent 9354cb5c59
commit 1e28535ed4
14 changed files with 211 additions and 135 deletions

View File

@@ -41,10 +41,11 @@ end
scene.widgetList={
WIDGET.newImage{name="pay1", x=20, y=20},
WIDGET.newImage{name="pay2", x=1014, y=20},
WIDGET.newButton{name="dict", x=1140, y=410,w=220,h=70,font=35,code=goScene"dict"},
WIDGET.newButton{name="staff", x=1140, y=490,w=220,h=70,font=35,code=goScene"staff"},
WIDGET.newButton{name="his", x=1140, y=570,w=220,h=70,font=35,code=goScene"history"},
WIDGET.newButton{name="qq", x=1140, y=650,w=220,h=70,font=35,code=function()love.system.openURL("tencent://message/?uin=1046101471&Site=&Menu=yes")end,hide=MOBILE},
WIDGET.newButton{name="manual", x=1140, y=350,w=220,h=70,font=35,code=goScene"manual"},
WIDGET.newButton{name="dict", x=1140, y=430,w=220,h=70,font=35,code=goScene"dict"},
WIDGET.newButton{name="staff", x=1140, y=510,w=220,h=70,font=35,code=goScene"staff"},
WIDGET.newButton{name="his", x=1140, y=590,w=220,h=70,font=35,code=goScene"history"},
WIDGET.newButton{name="qq", x=1140, y=670,w=220,h=70,font=35,code=function()love.system.openURL("tencent://message/?uin=1046101471&Site=&Menu=yes")end,hide=MOBILE},
WIDGET.newButton{name="back", x=640, y=600,w=170,h=80,font=35,code=backScene},
}

View File

@@ -31,8 +31,8 @@ function scene.keyDown(k)
end
scene.widgetList={
WIDGET.newTextBox{name="texts", x=30,y=45,w=1000,h=640,font=20,fix=true},
WIDGET.newButton{name="back", x=1140, y=640,w=170,h=80,font=40,code=backScene},
WIDGET.newTextBox{name="texts",x=30,y=45,w=1000,h=640,font=20,fix=true},
WIDGET.newButton{name="back",x=1140,y=640,w=170,h=80,font=40,code=backScene},
}
return scene

30
parts/scenes/manual.lua Normal file
View File

@@ -0,0 +1,30 @@
local scene={}
function scene.sceneInit()
BG.set("cubes")
WIDGET.active.texts:setTexts(require("parts/language/manual_"..({"zh","zh","zh","en","en","en","en","en"})[SETTING.lang]))
end
function scene.wheelMoved(_,y)
wheelScroll(y)
end
function scene.keyDown(k)
if k=="up"then
WIDGET.active.texts:scroll(-5)
elseif k=="down"then
WIDGET.active.texts:scroll(5)
elseif k=="pageup"then
WIDGET.active.texts:scroll(-20)
elseif k=="pagedown"then
WIDGET.active.texts:scroll(20)
elseif k=="escape"then
SCN.back()
end
end
scene.widgetList={
WIDGET.newTextBox{name="texts",x=30,y=45,w=1000,h=640,font=15,fix=true},
WIDGET.newButton{name="back",x=1140,y=640,w=170,h=80,font=40,code=backScene},
}
return scene