整理代码
This commit is contained in:
@@ -171,8 +171,7 @@ end
|
|||||||
function love.keypressed(i)
|
function love.keypressed(i)
|
||||||
mouseShow=false
|
mouseShow=false
|
||||||
if devMode then
|
if devMode then
|
||||||
if i=="f1"then
|
if i=="f1"then PROFILE.switch()
|
||||||
PROFILE.switch()
|
|
||||||
elseif i=="f2"then
|
elseif i=="f2"then
|
||||||
LOG.print("System:"..SYSTEM.."["..jit.arch.."]")
|
LOG.print("System:"..SYSTEM.."["..jit.arch.."]")
|
||||||
LOG.print("luaVer:".._VERSION)
|
LOG.print("luaVer:".._VERSION)
|
||||||
|
|||||||
@@ -62,14 +62,6 @@ end
|
|||||||
|
|
||||||
local scene={}
|
local scene={}
|
||||||
|
|
||||||
function scene.keyDown(key)
|
|
||||||
if key=="escape"then
|
|
||||||
SCN.back()
|
|
||||||
else
|
|
||||||
WIDGET.keyPressed(key)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
scene.widgetList={
|
scene.widgetList={
|
||||||
WIDGET.newText{name="title", x=80, y=50,font=70,align="L"},
|
WIDGET.newText{name="title", x=80, y=50,font=70,align="L"},
|
||||||
WIDGET.newButton{name="register", x=1140, y=100,w=170,h=80,color="green",code=function()SCN.swapTo("register","swipeR")end},
|
WIDGET.newButton{name="register", x=1140, y=100,w=170,h=80,color="green",code=function()SCN.swapTo("register","swipeR")end},
|
||||||
|
|||||||
Reference in New Issue
Block a user