This commit is contained in:
libccy 2017-03-20 09:35:54 +08:00
parent 3dcd89b2fd
commit d51000025c
2 changed files with 15 additions and 6 deletions

View File

@ -99,14 +99,15 @@
compatiblemode:{ compatiblemode:{
name:'兼容模式', name:'兼容模式',
init:false, init:false,
intro:'提高对旧扩展的兼容性,但可能产生未知结果', intro:'开启兼容模式可防止扩展使游戏卡死并提高对旧扩展的兼容性,但对游戏速度有一定影响,若无不稳定或不兼容的扩展建议关闭',
onclick:function(bool){ onclick:function(bool){
game.saveConfig('compatiblemode',bool); game.saveConfig('compatiblemode',bool);
setTimeout(function(){ if(bool){
if(lib.config.compatiblemode){ ui.window.classList.add('compatiblemode');
alert('开启兼容模式可防止扩展使游戏卡死并提高对旧扩展的兼容性,但对游戏速度有一定影响,若无不稳定或不兼容的扩展建议关闭'); }
else{
ui.window.classList.remove('compatiblemode');
} }
},500);
} }
}, },
confirm_exit:{ confirm_exit:{
@ -32665,6 +32666,9 @@
if(lib.config.player_border=='normal'&&(game.layout=='long'||game.layout=='long2')){ if(lib.config.player_border=='normal'&&(game.layout=='long'||game.layout=='long2')){
ui.arena.classList.add('lslim_player'); ui.arena.classList.add('lslim_player');
} }
if(lib.config.compatiblemode){
ui.window.classList.add('compatiblemode');
}
ui.window.dataset.radius_size=lib.config.radius_size||'default'; ui.window.dataset.radius_size=lib.config.radius_size||'default';
if(game.layout=='long'||game.layout=='mobile'){ if(game.layout=='long'||game.layout=='mobile'){
if(lib.config.textequip=='text') ui.arena.classList.add('textequip'); if(lib.config.textequip=='text') ui.arena.classList.add('textequip');

View File

@ -167,6 +167,11 @@
pointer-events: auto; pointer-events: auto;
-webkit-clip-path: polygon(-10px 0, 130px 0, 130px 130px, -10px 130px); -webkit-clip-path: polygon(-10px 0, 130px 0, 130px 130px, -10px 130px);
} }
#window.compatiblemode #arena:not(.chess) .player[data-position='0']:not(.minskin)>.avatar,
#window.compatiblemode #arena:not(.chess) .player[data-position='0']:not(.minskin)>.avatar2,
#window.compatiblemode #arena:not(.chess) .player[data-position='0']:not(.minskin)>.equips{
-webkit-clip-path: none;
}
#arena:not(.chess) .player[data-position='0']:not(.minskin)>.identity{ #arena:not(.chess) .player[data-position='0']:not(.minskin)>.identity{
pointer-events: auto; pointer-events: auto;
} }