点击选择房间的时候会有提示音
This commit is contained in:
@@ -182,6 +182,7 @@ function NET.createRoom(roomType,name)
|
|||||||
end
|
end
|
||||||
function NET.enterRoom(roomID,password)
|
function NET.enterRoom(roomID,password)
|
||||||
if NET.lock("enterRoom",1.26)then
|
if NET.lock("enterRoom",1.26)then
|
||||||
|
SFX.play("reach",.6)
|
||||||
NET.rid=roomID
|
NET.rid=roomID
|
||||||
WS.send("play",JSON.encode{
|
WS.send("play",JSON.encode{
|
||||||
action=2,
|
action=2,
|
||||||
|
|||||||
@@ -84,10 +84,13 @@ function scene.mouseClick(x,y)
|
|||||||
y=int((y-70)/40)
|
y=int((y-70)/40)
|
||||||
if y>=1 and y<=10 then
|
if y>=1 and y<=10 then
|
||||||
local s=int(y+scrollPos)
|
local s=int(y+scrollPos)
|
||||||
if selected~=s then
|
if NET.roomList[s]then
|
||||||
selected=s
|
if selected~=s then
|
||||||
else
|
selected=s
|
||||||
scene.keyDown("return")
|
SFX.play("click",.4)
|
||||||
|
else
|
||||||
|
scene.keyDown("return")
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user