整理代码
This commit is contained in:
@@ -171,8 +171,7 @@ end
|
||||
function love.keypressed(i)
|
||||
mouseShow=false
|
||||
if devMode then
|
||||
if i=="f1"then
|
||||
PROFILE.switch()
|
||||
if i=="f1"then PROFILE.switch()
|
||||
elseif i=="f2"then
|
||||
LOG.print("System:"..SYSTEM.."["..jit.arch.."]")
|
||||
LOG.print("luaVer:".._VERSION)
|
||||
|
||||
@@ -62,14 +62,6 @@ end
|
||||
|
||||
local scene={}
|
||||
|
||||
function scene.keyDown(key)
|
||||
if key=="escape"then
|
||||
SCN.back()
|
||||
else
|
||||
WIDGET.keyPressed(key)
|
||||
end
|
||||
end
|
||||
|
||||
scene.widgetList={
|
||||
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},
|
||||
|
||||
Reference in New Issue
Block a user