修创建房间场景在场景栈的位置
This commit is contained in:
@@ -590,6 +590,7 @@ end
|
||||
function NET.wsCallBack.room_create(body)
|
||||
MES.new('check',text.createRoomSuccessed)
|
||||
NET.wsCallBack.room_enter(body)
|
||||
SCN.pop()
|
||||
WAIT.interrupt()
|
||||
end
|
||||
function NET.wsCallBack.room_getData(body)
|
||||
|
||||
@@ -48,9 +48,6 @@ end
|
||||
local function _quit()
|
||||
if tryBack() then
|
||||
NET.room_leave()
|
||||
if SCN.stack[#SCN.stack-1]=='net_newRoom' then
|
||||
SCN.pop()
|
||||
end
|
||||
SCN.back()
|
||||
end
|
||||
end
|
||||
@@ -148,10 +145,9 @@ function scene.keyDown(key,isRep)
|
||||
else
|
||||
NET.textBox:push{COLOR.R,'Invalid command'}
|
||||
end
|
||||
else
|
||||
if NET.room_chat(mes) then
|
||||
inputBox:clear()
|
||||
end
|
||||
inputBox:clear()
|
||||
elseif NET.room_chat(mes) then
|
||||
inputBox:clear()
|
||||
end
|
||||
else
|
||||
_switchChat()
|
||||
|
||||
Reference in New Issue
Block a user