整理代码,配合修改一个联网命令类型,修改联网相关场景背景
This commit is contained in:
@@ -177,9 +177,9 @@ local loadingThread=coroutine.wrap(function()
|
||||
STAT.run=STAT.run+1
|
||||
|
||||
--Connect to server
|
||||
TASK.new(NET.TICK_WS_app)
|
||||
TASK.new(NET.TICK_WS_user)
|
||||
TASK.new(NET.TICK_WS_play)
|
||||
TASK.new(NET.updateWS_app)
|
||||
TASK.new(NET.updateWS_user)
|
||||
TASK.new(NET.updateWS_play)
|
||||
WS.connect("app","/app")
|
||||
if USER.authToken then
|
||||
WS.connect("user","/user",JSON.encode{
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
local scene={}
|
||||
|
||||
function scene.sceneInit()
|
||||
BG.set("matrix")
|
||||
BG.set("space")
|
||||
end
|
||||
|
||||
scene.widgetList={
|
||||
WIDGET.newButton{name="ffa", x=640, y=200,w=350,h=120,font=40,code=NULL},
|
||||
-- WIDGET.newButton{name="ffa", x=640, y=200,w=350,h=120,font=40,code=NULL},
|
||||
WIDGET.newButton{name="rooms", x=640, y=360,w=350,h=120,font=40,code=goScene"net_rooms"},
|
||||
WIDGET.newButton{name="chat", x=640, y=540,w=350,h=120,font=40,code=goScene"net_chat",hide=function()return WS.status("chat")~="running"end},
|
||||
-- WIDGET.newButton{name="chat", x=640, y=540,w=350,h=120,font=40,code=goScene"net_chat"},
|
||||
WIDGET.newButton{name="back", x=1140, y=640,w=170,h=80,font=40,code=backScene},
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ end
|
||||
local scene={}
|
||||
|
||||
function scene.sceneInit()
|
||||
BG.set("bg1")
|
||||
BG.set("space")
|
||||
scrollPos=0
|
||||
selected=1
|
||||
fetchRoom()
|
||||
|
||||
Reference in New Issue
Block a user