tafang
This commit is contained in:
parent
9b63d36c8f
commit
47c8bb5486
|
@ -11834,8 +11834,9 @@
|
||||||
li.innerHTML=lib.changeLog[i];
|
li.innerHTML=lib.changeLog[i];
|
||||||
ul.appendChild(li);
|
ul.appendChild(li);
|
||||||
}
|
}
|
||||||
var dialog=ui.create.dialog(lib.version+'更新内容');
|
var dialog=ui.create.dialog(lib.version+'更新内容','hidden');
|
||||||
dialog.content.appendChild(ul);
|
dialog.content.appendChild(ul);
|
||||||
|
dialog.open();
|
||||||
var hidden=false;
|
var hidden=false;
|
||||||
if(!ui.auto.classList.contains('hidden')){
|
if(!ui.auto.classList.contains('hidden')){
|
||||||
ui.auto.hide();
|
ui.auto.hide();
|
||||||
|
@ -18056,7 +18057,7 @@
|
||||||
}
|
}
|
||||||
if(ui.dialog&&!ui.dialog.classList.contains('noupdate')){
|
if(ui.dialog&&!ui.dialog.classList.contains('noupdate')){
|
||||||
if(lib.config.mode=='chess'){
|
if(lib.config.mode=='chess'){
|
||||||
if(ui.dialog.content.offsetHeight<240&&(!ui.dialog.buttons||!ui.dialog.buttons.length)){
|
if(ui.dialog.content.scrollHeight<240&&(!ui.dialog.buttons||!ui.dialog.buttons.length)){
|
||||||
ui.dialog.style.height=ui.dialog.content.offsetHeight+'px';
|
ui.dialog.style.height=ui.dialog.content.offsetHeight+'px';
|
||||||
ui.dialog.classList.add('slim');
|
ui.dialog.classList.add('slim');
|
||||||
}
|
}
|
||||||
|
|
|
@ -204,7 +204,8 @@
|
||||||
font-family: 'xinwei';
|
font-family: 'xinwei';
|
||||||
font-size: 20px;
|
font-size: 20px;
|
||||||
top: 66px;
|
top: 66px;
|
||||||
left: 5px;
|
right: 5px;
|
||||||
|
left:auto;
|
||||||
}
|
}
|
||||||
.dialog .buttons>.button.character.squarebutton{
|
.dialog .buttons>.button.character.squarebutton{
|
||||||
height:90px;
|
height:90px;
|
||||||
|
|
|
@ -314,7 +314,7 @@ mode.boss={
|
||||||
game.gameDraw(game.boss);
|
game.gameDraw(game.boss);
|
||||||
game.bossPhaseLoop();
|
game.bossPhaseLoop();
|
||||||
setTimeout(function(){
|
setTimeout(function(){
|
||||||
ui.updateh(true);
|
ui.updatehl();
|
||||||
},200);
|
},200);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -395,7 +395,7 @@ mode.boss={
|
||||||
ui.fakeme.style.backgroundImage=game.me.node.avatar.style.backgroundImage;
|
ui.fakeme.style.backgroundImage=game.me.node.avatar.style.backgroundImage;
|
||||||
// ui.fakeme.style.backgroundSize='cover';
|
// ui.fakeme.style.backgroundSize='cover';
|
||||||
}
|
}
|
||||||
ui.updateh(true);
|
ui.updatehl();
|
||||||
},
|
},
|
||||||
modeSwapPlayer:function(player){
|
modeSwapPlayer:function(player){
|
||||||
game.swapControl(player);
|
game.swapControl(player);
|
||||||
|
|
|
@ -331,7 +331,16 @@ mode.chess={
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(get.config('chess_mode')=='tafang') return;
|
if(get.config('chess_mode')=='tafang'){
|
||||||
|
if(_status.friends.length==0&&ui.fakeme){
|
||||||
|
ui.fakeme.hide();
|
||||||
|
this.node.handcards1.delete();
|
||||||
|
this.node.handcards2.delete();
|
||||||
|
game.me=ui.create.player();
|
||||||
|
game.me.side=true;
|
||||||
|
}
|
||||||
|
return;
|
||||||
|
}
|
||||||
game.over(game.me.side==game.players[0].side);
|
game.over(game.me.side==game.players[0].side);
|
||||||
},
|
},
|
||||||
$draw:function(num){
|
$draw:function(num){
|
||||||
|
@ -880,6 +889,7 @@ mode.chess={
|
||||||
var difficulty=parseInt(get.config('tafang_difficulty'));
|
var difficulty=parseInt(get.config('tafang_difficulty'));
|
||||||
for(var i=0;i<map.bufang.length;i++){
|
for(var i=0;i<map.bufang.length;i++){
|
||||||
var button=map.bufang[i];
|
var button=map.bufang[i];
|
||||||
|
button.node.name.style.top='8px';
|
||||||
button.node.intro.classList.add('showintro');
|
button.node.intro.classList.add('showintro');
|
||||||
button.node.intro.classList.add('tafang');
|
button.node.intro.classList.add('tafang');
|
||||||
if(button.link=='chess_mech_nengliangqiu'||
|
if(button.link=='chess_mech_nengliangqiu'||
|
||||||
|
@ -1134,13 +1144,14 @@ mode.chess={
|
||||||
if(!game.me.name){
|
if(!game.me.name){
|
||||||
game.me=player;
|
game.me=player;
|
||||||
game.me.classList.add('current_action');
|
game.me.classList.add('current_action');
|
||||||
ui.me.lastChild.show();
|
ui.me.querySelector('.fakeme.avatar').show();
|
||||||
|
ui.me.querySelector('.fakeme.player').show();
|
||||||
ui.create.fakeme();
|
ui.create.fakeme();
|
||||||
ui.handcards1=player.node.handcards1.animate('start').fix();
|
ui.handcards1=player.node.handcards1.animate('start').fix();
|
||||||
ui.handcards2=player.node.handcards2.animate('start').fix();
|
ui.handcards2=player.node.handcards2.animate('start').fix();
|
||||||
ui.handcards1Container.appendChild(ui.handcards1);
|
ui.handcards1Container.appendChild(ui.handcards1);
|
||||||
ui.handcards2Container.appendChild(ui.handcards2);
|
ui.handcards2Container.appendChild(ui.handcards2);
|
||||||
ui.updateh(true);
|
ui.updatehl();
|
||||||
game.setChessInfo();
|
game.setChessInfo();
|
||||||
game.addVideo('tafangMe',player);
|
game.addVideo('tafangMe',player);
|
||||||
}
|
}
|
||||||
|
@ -1224,7 +1235,7 @@ mode.chess={
|
||||||
_status.enemies.push(enemy);
|
_status.enemies.push(enemy);
|
||||||
event.justadded.push(enemy.name);
|
event.justadded.push(enemy.name);
|
||||||
if(game.players.length==1){
|
if(game.players.length==1){
|
||||||
ui.me.lastChild.show();
|
ui.me.querySelector('.fakeme.player').show();
|
||||||
game.setChessInfo(game.players[0]);
|
game.setChessInfo(game.players[0]);
|
||||||
}
|
}
|
||||||
game.delay();
|
game.delay();
|
||||||
|
@ -1612,7 +1623,7 @@ mode.chess={
|
||||||
_status.auto=true;
|
_status.auto=true;
|
||||||
setTimeout(function(){
|
setTimeout(function(){
|
||||||
console.log(get.translation(game.players));
|
console.log(get.translation(game.players));
|
||||||
ui.updateh(true);
|
ui.updatehl();
|
||||||
},500);
|
},500);
|
||||||
ui.auto.classList.add('glow');
|
ui.auto.classList.add('glow');
|
||||||
}
|
}
|
||||||
|
@ -1924,8 +1935,8 @@ mode.chess={
|
||||||
}
|
}
|
||||||
|
|
||||||
if(get.config('chess_mode')=='tafang'){
|
if(get.config('chess_mode')=='tafang'){
|
||||||
ui.me.firstChild.hide();
|
ui.me.querySelector('.fakeme.player').hide();
|
||||||
ui.me.lastChild.hide();
|
ui.me.querySelector('.fakeme.avatar').hide();
|
||||||
|
|
||||||
var list=[];
|
var list=[];
|
||||||
for(i in lib.character){
|
for(i in lib.character){
|
||||||
|
|
Loading…
Reference in New Issue