This commit is contained in:
parent
52492b6d91
commit
da403503d2
11
game/game.js
11
game/game.js
|
@ -90,10 +90,10 @@
|
|||
onclick:function(bool){
|
||||
game.saveConfig('low_performance',bool);
|
||||
if(bool){
|
||||
ui.arena.classList.add('low_performance');
|
||||
ui.window.classList.add('low_performance');
|
||||
}
|
||||
else{
|
||||
ui.arena.classList.remove('low_performance');
|
||||
ui.window.classList.remove('low_performance');
|
||||
}
|
||||
}
|
||||
},
|
||||
|
@ -5796,6 +5796,7 @@
|
|||
game.saveConfig('low_performance',true);
|
||||
game.saveConfig('confirm_exit',true);
|
||||
game.saveConfig('touchscreen',true);
|
||||
game.saveConfig('fold_mode',true);
|
||||
if(ua.indexOf('ipad')==-1){
|
||||
game.saveConfig('phonelayout',true);
|
||||
}
|
||||
|
@ -33221,6 +33222,9 @@
|
|||
// }
|
||||
}
|
||||
|
||||
if(lib.config.low_performance){
|
||||
ui.window.classList.add('low_performance');
|
||||
}
|
||||
if(game.layout=='mobile'||game.layout=='long'){
|
||||
ui.arena.classList.add('mobile');
|
||||
}
|
||||
|
@ -33230,9 +33234,6 @@
|
|||
if(game.layout=='default'){
|
||||
ui.arena.classList.add('oldlayout');
|
||||
}
|
||||
if(lib.config.low_performance){
|
||||
ui.arena.classList.add('low_performance');
|
||||
}
|
||||
if(lib.config.player_border!='wide'||game.layout=='long'||game.layout=='long2'){
|
||||
ui.arena.classList.add('slim_player');
|
||||
}
|
||||
|
|
|
@ -24,12 +24,12 @@ window.noname_update={
|
|||
// 'theme/woodden/style.css',
|
||||
'layout/default/layout.css',
|
||||
'layout/default/phone.css',
|
||||
// 'layout/default/menu.css',
|
||||
'layout/default/menu.css',
|
||||
// 'theme/style/cardback/*',
|
||||
// 'layout/long/layout.css',
|
||||
// 'layout/long2/layout.css',
|
||||
// 'layout/mobile/layout.css',
|
||||
// 'layout/newlayout/global.css',
|
||||
'layout/newlayout/global.css',
|
||||
// 'layout/mode/chess.css',
|
||||
// 'extension/boss/extension.js',
|
||||
]
|
||||
|
|
|
@ -336,7 +336,7 @@ not(.removing):not(.dialog):not(.centermenu):not(.popup-container):not(.forceopa
|
|||
left: 20px;
|
||||
line-height: 18px;
|
||||
}
|
||||
#arena:not(.low_performance) #arenalog>div {
|
||||
#window:not(.low_performance) #arena #arenalog>div {
|
||||
-webkit-animation: game_start 0.5s;
|
||||
}
|
||||
/*#arena[data-font_size='14']{
|
||||
|
@ -1249,8 +1249,8 @@ div:not(.handcards)>.card>.info>span,
|
|||
height: 36px;
|
||||
padding-top: 3px;
|
||||
}
|
||||
#arena.low_performance .player .equips,
|
||||
#arena.low_performance .player .name {
|
||||
#window.low_performance #arena .player .equips,
|
||||
#window.low_performance #arena .player .name {
|
||||
transition: all 0s
|
||||
}
|
||||
|
||||
|
|
|
@ -447,12 +447,17 @@
|
|||
left:12px !important;
|
||||
width: calc(100% - 32px) !important;
|
||||
}
|
||||
.menu.main>.menu-content>div>.right.pane>div:not(.expanded)>.config.auto-hide,
|
||||
.menu.main>.menu-content>div>.right.pane>div>.config.hidden{
|
||||
#window:not(.low_performance) .menu.main>.menu-content>div>.right.pane>div:not(.expanded)>.config.auto-hide,
|
||||
#window:not(.low_performance) .menu.main>.menu-content>div>.right.pane>div>.config.hidden{
|
||||
margin-top:-25px;
|
||||
opacity:0;
|
||||
z-index:-1;
|
||||
}
|
||||
#window.low_performance .menu.main>.menu-content>div>.right.pane>div:not(.expanded)>.config.auto-hide,
|
||||
#window.low_performance .menu.main>.menu-content>div>.right.pane>div>.config.hidden{
|
||||
display: none;
|
||||
transition-property: transform;
|
||||
}
|
||||
.menu.main>.menu-content>div>.menubutton.round{
|
||||
left:335px;
|
||||
top:197px;
|
||||
|
|
|
@ -500,8 +500,8 @@
|
|||
box-shadow:black 0 0 2px;
|
||||
}
|
||||
|
||||
#arena.low_performance .player:not([data-position='0']) .equips>.card,
|
||||
#arena.chess.low_performance .player .equips>.card{
|
||||
#window.low_performance #arena .player:not([data-position='0']) .equips>.card,
|
||||
#window.low_performance #arena.chess .player .equips>.card{
|
||||
animation: game_start 0.5s !important;
|
||||
-webkit-animation: game_start 0.5s !important;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue