修复获取用户名的一个小问题,移除测试用代码
This commit is contained in:
@@ -92,7 +92,7 @@ function netPLY.clear()
|
|||||||
end
|
end
|
||||||
function netPLY.add(p)
|
function netPLY.add(p)
|
||||||
p.connected=false
|
p.connected=false
|
||||||
p.username=USERS.getUsername(p.uid)
|
p.username=p.username
|
||||||
p.place=1e99
|
p.place=1e99
|
||||||
p.stat=false
|
p.stat=false
|
||||||
local a=rnd()*6.2832
|
local a=rnd()*6.2832
|
||||||
|
|||||||
@@ -137,16 +137,6 @@ function scene.keyDown(key)
|
|||||||
elseif not inputBox.hide then
|
elseif not inputBox.hide then
|
||||||
WIDGET.focus(inputBox)
|
WIDGET.focus(inputBox)
|
||||||
inputBox:keypress(key)
|
inputBox:keypress(key)
|
||||||
elseif key:find("[123456789]")then
|
|
||||||
for _=1,tonumber(key)do
|
|
||||||
netPLY.add{
|
|
||||||
uid=tostring(6000+#netPLY.list+1),
|
|
||||||
username="Test Player"..tostring(#netPLY.list+1),
|
|
||||||
sid=tostring(#netPLY.list+1),
|
|
||||||
mode=0,
|
|
||||||
config="",
|
|
||||||
}
|
|
||||||
end
|
|
||||||
elseif playing then
|
elseif playing then
|
||||||
if noKey then return end
|
if noKey then return end
|
||||||
local k=keyMap.keyboard[key]
|
local k=keyMap.keyboard[key]
|
||||||
|
|||||||
Reference in New Issue
Block a user