This commit is contained in:
libccy 2017-11-13 16:30:03 +08:00
parent 4b56fca392
commit 24544a16ae
3 changed files with 18 additions and 3 deletions

View File

@ -21842,8 +21842,18 @@
}
}
else if(typeof game.roomId=='number'){
ui.create.connecting();
game.send('server','enter',game.roomId,lib.config.connect_nickname,lib.config.connect_avatar);
var room=ui.rooms[game.roomId];
if(game.roomIdServer&&(room.serving||!room.version)){
console.log();
if(lib.config.reconnect_info){
lib.config.reconnect_info[2]=null;
game.saveConfig('reconnect_info',lib.config.reconnect_info);
}
}
else{
ui.create.connecting();
game.send('server','enter',game.roomId,lib.config.connect_nickname,lib.config.connect_avatar);
}
}
lib.init.onfree();
}
@ -38516,6 +38526,8 @@
lib.config.reconnect_info[2]=game.roomId;
game.saveConfig('reconnect_info',lib.config.reconnect_info);
}
game.reload();
return;
}
else{
if(typeof game.roomId!='number'){

View File

@ -580,7 +580,7 @@ table {
.player.linked:not(.treasure).playerfocus {
transform: scale(1.1) rotate(-90deg);
}
.player.connect>div:not(.avatar):not(.name):not(.nameol):not(.hp.room):not(.gaming) {
.player.connect>div:not(.avatar):not(.name):not(.nameol):not(.hp):not(.room):not(.gaming):not(.identity) {
display: none !important;
}
.player.connect>.gaming {

View File

@ -121,6 +121,9 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
var info=lib.config.reconnect_info;
game.onlineID=info[1];
game.roomId=info[2];
if(typeof game.roomId=='number'){
game.roomIdServer=true;
}
var n=5;
var connect=function(){
event.textnode.innerHTML='正在连接...';