修创建房间场景在场景栈的位置

This commit is contained in:
MrZ_26
2022-10-24 23:29:19 +08:00
parent 74b099d58f
commit 134773765c
2 changed files with 4 additions and 7 deletions

View File

@@ -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)

View File

@@ -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()