This commit is contained in:
libccy 2017-01-21 14:42:21 +08:00
parent 2ef017dd82
commit 1d3a745c83
1 changed files with 25 additions and 11 deletions

View File

@ -821,10 +821,18 @@
},
onclick:function(item){
game.saveConfig('player_border',item);
if(item=='wide'&&lib.config.layout=='long'){
item='normal';
if(item!='wide'||lib.config.layout=='long'){
ui.arena.classList.add('slim_player');
}
else{
ui.arena.classList.remove('slim_player');
}
if(item=='slim'){
ui.arena.classList.add('uslim_player');
}
else{
ui.arena.classList.remove('uslim_player');
}
ui.arena.dataset.player_border=item;
}
},
reduce_radius:{
@ -4901,11 +4909,17 @@
}
}
}
if(lib.config.player_border=='wide'&&lib.config.layout=='long'){
ui.arena.dataset.player_border='normal';
}
if(lib.config.player_border!='wide'||lib.config.layout=='long'){
ui.arena.classList.add('slim_player');
}
else{
ui.arena.dataset.player_border=lib.config.player_border;
ui.arena.classList.remove('slim_player');
}
if(lib.config.player_border=='slim'){
ui.arena.classList.add('uslim_player');
}
else{
ui.arena.classList.remove('uslim_player');
}
setTimeout(function(){
ui.arena.show();
@ -28055,11 +28069,11 @@
if(lib.config.low_performance){
ui.arena.classList.add('low_performance');
}
if(lib.config.player_border=='wide'&&lib.config.layout=='long'){
ui.arena.dataset.player_border='normal';
if(lib.config.player_border!='wide'||lib.config.layout=='long'){
ui.arena.classList.add('slim_player');
}
else{
ui.arena.dataset.player_border=lib.config.player_border;
if(lib.config.player_border=='slim'){
ui.arena.classList.add('uslim_player');
}
if(lib.config.reduce_radius){
ui.window.classList.add('reduce_radius');