整理代码,修复一些联网问题
This commit is contained in:
@@ -845,10 +845,10 @@ function textBox:update()
|
|||||||
end
|
end
|
||||||
function textBox:push(t)
|
function textBox:push(t)
|
||||||
ins(self.texts,t)
|
ins(self.texts,t)
|
||||||
if self.scrollPos==#self.texts-1 and not(self.hide==true or self.hide and self.hide())then
|
if self.scrollPos==#self.texts-1 then
|
||||||
self.scrollPos=#self.texts
|
self.scrollPos=#self.texts
|
||||||
else
|
else
|
||||||
SFX.play("spin_0",.8)
|
SFX.play("spin_0",.6)
|
||||||
self.new=true
|
self.new=true
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ local function _parse(res)
|
|||||||
)or
|
)or
|
||||||
"[NO Message]"
|
"[NO Message]"
|
||||||
),
|
),
|
||||||
"warning")
|
"warn")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -145,9 +145,6 @@ function scene.socketRead(cmd,d)
|
|||||||
COLOR.dY,"#"..d.uid.." ",
|
COLOR.dY,"#"..d.uid.." ",
|
||||||
COLOR.Y,text.leaveRoom,
|
COLOR.Y,text.leaveRoom,
|
||||||
}
|
}
|
||||||
if not playing then
|
|
||||||
initPlayerPosition(true)
|
|
||||||
end
|
|
||||||
elseif cmd=="Talk"then
|
elseif cmd=="Talk"then
|
||||||
textBox:push{
|
textBox:push{
|
||||||
COLOR.W,d.username,
|
COLOR.W,d.username,
|
||||||
|
|||||||
Reference in New Issue
Block a user