1.9.6.2
This commit is contained in:
parent
806fea9b3b
commit
669f4945f7
|
@ -494,8 +494,8 @@
|
||||||
default:'旧版',
|
default:'旧版',
|
||||||
newlayout:'对称',
|
newlayout:'对称',
|
||||||
mobile:'默认',
|
mobile:'默认',
|
||||||
long:'手杀',
|
long:'新版',
|
||||||
long2:'新版',
|
long2:'手杀',
|
||||||
},
|
},
|
||||||
onclick:function(layout){
|
onclick:function(layout){
|
||||||
if(lib.config.layoutfixed.contains(lib.config.mode)&&layout=='default'){
|
if(lib.config.layoutfixed.contains(lib.config.mode)&&layout=='default'){
|
||||||
|
|
|
@ -16,11 +16,15 @@ window.noname_update={
|
||||||
'character/yijiang.js',
|
'character/yijiang.js',
|
||||||
'mode/chess.js',
|
'mode/chess.js',
|
||||||
'mode/versus.js',
|
'mode/versus.js',
|
||||||
|
'mode/guozhan.js',
|
||||||
|
'mode/identity.js',
|
||||||
|
'mode/stone.js',
|
||||||
'theme/simple/style.css',
|
'theme/simple/style.css',
|
||||||
'layout/default/layout.css',
|
'layout/default/layout.css',
|
||||||
'layout/long/layout.css',
|
'layout/long/layout.css',
|
||||||
'layout/long2/layout.css',
|
'layout/long2/layout.css',
|
||||||
'layout/mobile/layout.css',
|
'layout/mobile/layout.css',
|
||||||
'layout/newlayout/global.css',
|
'layout/newlayout/global.css',
|
||||||
|
'layout/mode/stone.css',
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -123,10 +123,16 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
#arena:not(.fewplayer) .timerbar>div{
|
#arena:not(.fewplayer) .timerbar>div{
|
||||||
top: calc(100% - 15px);
|
top: 205px;
|
||||||
width: 96px;
|
width: 96px;
|
||||||
left: 12px;
|
left: 12px;
|
||||||
}
|
}
|
||||||
|
#arena:not(.fewplayer)[data-player_height='default'] .timerbar>div{
|
||||||
|
top: 185px;
|
||||||
|
}
|
||||||
|
#arena:not(.fewplayer)[data-player_height='short'] .timerbar>div{
|
||||||
|
top: 165px;
|
||||||
|
}
|
||||||
|
|
||||||
/*--------位置(8人)------*/
|
/*--------位置(8人)------*/
|
||||||
#arena:not(.fewplayer)[data-number='8']>.player[data-position='1']{top:calc(30% - 120px);left:calc(-300% / 94 + 4375% / 47 - 735px + 720px);}
|
#arena:not(.fewplayer)[data-number='8']>.player[data-position='1']{top:calc(30% - 120px);left:calc(-300% / 94 + 4375% / 47 - 735px + 720px);}
|
||||||
|
|
|
@ -89,6 +89,14 @@
|
||||||
height:calc(100% - 370px);
|
height:calc(100% - 370px);
|
||||||
bottom:170px;
|
bottom:170px;
|
||||||
}
|
}
|
||||||
|
#arena.choose-character>.dialog{
|
||||||
|
height:calc(100% - 280px);
|
||||||
|
bottom:80px;
|
||||||
|
}
|
||||||
|
#arena.choose-character>#control{
|
||||||
|
bottom: 30px;
|
||||||
|
transition: all 0s;
|
||||||
|
}
|
||||||
.dialog.fullheight {
|
.dialog.fullheight {
|
||||||
height: calc(100% - 123px) !important;
|
height: calc(100% - 123px) !important;
|
||||||
top: 40px !important;
|
top: 40px !important;
|
||||||
|
@ -242,10 +250,16 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
#arena .timerbar>div{
|
#arena .timerbar>div{
|
||||||
top: calc(100% - 15px);
|
top: 205px;
|
||||||
width: 96px;
|
width: 96px;
|
||||||
left: 12px;
|
left: 12px;
|
||||||
}
|
}
|
||||||
|
#arena[data-player_height='default'] .timerbar>div{
|
||||||
|
top: 185px;
|
||||||
|
}
|
||||||
|
#arena[data-player_height='short'] .timerbar>div{
|
||||||
|
top: 165px;
|
||||||
|
}
|
||||||
|
|
||||||
/*--------位置(8人)------*/
|
/*--------位置(8人)------*/
|
||||||
#arena[data-number='8']>.player[data-position='1']{top:calc(30% - 128px);left:calc(-300% / 94 + 4375% / 47 - 735px + 720px);}
|
#arena[data-number='8']>.player[data-position='1']{top:calc(30% - 128px);left:calc(-300% / 94 + 4375% / 47 - 735px + 720px);}
|
||||||
|
|
|
@ -148,6 +148,10 @@
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
transition: all 0s;
|
transition: all 0s;
|
||||||
}
|
}
|
||||||
|
.dialog .deckitem{
|
||||||
|
margin-left: 8px;
|
||||||
|
margin-right: 9px;
|
||||||
|
}
|
||||||
.deckitem.random{
|
.deckitem.random{
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
|
|
@ -477,7 +477,7 @@
|
||||||
bottom:auto !important;
|
bottom:auto !important;
|
||||||
top:200px !important;
|
top:200px !important;
|
||||||
}
|
}
|
||||||
#arena.stone .dialog{
|
#arena.stone:not(.choose-character) .dialog{
|
||||||
width: calc(90% - 440px);
|
width: calc(90% - 440px);
|
||||||
left: calc(5% + 220px);
|
left: calc(5% + 220px);
|
||||||
}
|
}
|
||||||
|
@ -527,7 +527,7 @@
|
||||||
width: 735px;
|
width: 735px;
|
||||||
left: calc(50% - 367.5px);
|
left: calc(50% - 367.5px);
|
||||||
}
|
}
|
||||||
#arena.stone .dialog{
|
#arena.stone:not(.choose-character) .dialog{
|
||||||
width: calc(90% - 440px);
|
width: calc(90% - 440px);
|
||||||
left: calc(5% + 220px);
|
left: calc(5% + 220px);
|
||||||
}
|
}
|
||||||
|
|
|
@ -401,6 +401,7 @@ mode.guozhan={
|
||||||
}
|
}
|
||||||
next.setContent(function(){
|
next.setContent(function(){
|
||||||
"step 0"
|
"step 0"
|
||||||
|
ui.arena.classList.add('choose-character');
|
||||||
var addSetting=function(dialog){
|
var addSetting=function(dialog){
|
||||||
dialog.add('选择座位');
|
dialog.add('选择座位');
|
||||||
var seats=document.createElement('table');
|
var seats=document.createElement('table');
|
||||||
|
@ -626,12 +627,18 @@ mode.guozhan={
|
||||||
game.players[i].addSkillTrigger(game.players[i].hiddenSkills[j],true);
|
game.players[i].addSkillTrigger(game.players[i].hiddenSkills[j],true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
setTimeout(function(){
|
||||||
|
ui.arena.classList.remove('choose-character');
|
||||||
|
},500);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
chooseCharacterOL:function(){
|
chooseCharacterOL:function(){
|
||||||
var next=game.createEvent('chooseCharacter',false);
|
var next=game.createEvent('chooseCharacter',false);
|
||||||
next.setContent(function(){
|
next.setContent(function(){
|
||||||
'step 0'
|
'step 0'
|
||||||
|
game.broadcastAll(function(){
|
||||||
|
ui.arena.classList.add('choose-character');
|
||||||
|
});
|
||||||
var list=get.charactersOL();
|
var list=get.charactersOL();
|
||||||
event.list=list.slice(0);
|
event.list=list.slice(0);
|
||||||
var list2=[];
|
var list2=[];
|
||||||
|
@ -755,6 +762,9 @@ mode.guozhan={
|
||||||
game.players[i].node.name2.show();
|
game.players[i].node.name2.show();
|
||||||
game.players[i]._group=lib.character[game.players[i].name1][1];
|
game.players[i]._group=lib.character[game.players[i].name1][1];
|
||||||
}
|
}
|
||||||
|
setTimeout(function(){
|
||||||
|
ui.arena.classList.remove('choose-character');
|
||||||
|
},500);
|
||||||
},result);
|
},result);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -552,6 +552,7 @@ mode.identity={
|
||||||
}
|
}
|
||||||
next.setContent(function(){
|
next.setContent(function(){
|
||||||
"step 0"
|
"step 0"
|
||||||
|
ui.arena.classList.add('choose-character');
|
||||||
var i;
|
var i;
|
||||||
var list;
|
var list;
|
||||||
var list2=[];
|
var list2=[];
|
||||||
|
@ -1015,12 +1016,16 @@ mode.identity={
|
||||||
event.ai(game.players[i],event.list.splice(0,get.config('choice_'+game.players[i].identity)),null,event.list)
|
event.ai(game.players[i],event.list.splice(0,get.config('choice_'+game.players[i].identity)),null,event.list)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
setTimeout(function(){
|
||||||
|
ui.arena.classList.remove('choose-character');
|
||||||
|
},500);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
chooseCharacterOL:function(){
|
chooseCharacterOL:function(){
|
||||||
var next=game.createEvent('chooseCharacter',false);
|
var next=game.createEvent('chooseCharacter',false);
|
||||||
next.setContent(function(){
|
next.setContent(function(){
|
||||||
"step 0"
|
"step 0"
|
||||||
|
ui.arena.classList.add('choose-character');
|
||||||
var i;
|
var i;
|
||||||
var identityList;
|
var identityList;
|
||||||
if(_status.mode=='zhong'){
|
if(_status.mode=='zhong'){
|
||||||
|
@ -1091,6 +1096,7 @@ mode.identity={
|
||||||
zhu.identity=zhuid;
|
zhu.identity=zhuid;
|
||||||
zhu.setIdentity();
|
zhu.setIdentity();
|
||||||
me.setIdentity(identity);
|
me.setIdentity(identity);
|
||||||
|
ui.arena.classList.add('choose-character');
|
||||||
},game.zhu,game.zhu.identity,game.players[i],game.players[i].identity);
|
},game.zhu,game.zhu.identity,game.players[i],game.players[i].identity);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1219,7 +1225,13 @@ mode.identity={
|
||||||
lib.playerOL[i].init(result[i][0],result[i][1]);
|
lib.playerOL[i].init(result[i][0],result[i][1]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
setTimeout(function(){
|
||||||
|
ui.arena.classList.remove('choose-character');
|
||||||
|
},500);
|
||||||
},result);
|
},result);
|
||||||
|
setTimeout(function(){
|
||||||
|
ui.arena.classList.remove('choose-character');
|
||||||
|
},500);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
@ -1446,6 +1446,7 @@ mode.stone={
|
||||||
next.showConfig=true;
|
next.showConfig=true;
|
||||||
next.setContent(function(){
|
next.setContent(function(){
|
||||||
"step 0"
|
"step 0"
|
||||||
|
ui.arena.classList.add('choose-character');
|
||||||
var i;
|
var i;
|
||||||
var list=[];
|
var list=[];
|
||||||
event.list=list;
|
event.list=list;
|
||||||
|
@ -1650,6 +1651,12 @@ mode.stone={
|
||||||
get.deck(game.me,_status.deck.shift());
|
get.deck(game.me,_status.deck.shift());
|
||||||
get.deck(game.enemy,'random');
|
get.deck(game.enemy,'random');
|
||||||
}
|
}
|
||||||
|
ui.control.style.transitionDuration='0s';
|
||||||
|
ui.refresh(ui.control);
|
||||||
|
ui.arena.classList.remove('choose-character');
|
||||||
|
setTimeout(function(){
|
||||||
|
ui.control.style.transitionDuration='';
|
||||||
|
},500);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
@ -440,6 +440,7 @@ mode.versus={
|
||||||
next.showConfig=true;
|
next.showConfig=true;
|
||||||
next.setContent(function(){
|
next.setContent(function(){
|
||||||
'step 0'
|
'step 0'
|
||||||
|
ui.arena.classList.add('choose-character');
|
||||||
for(var i in lib.characterPack.mode_versus){
|
for(var i in lib.characterPack.mode_versus){
|
||||||
lib.character[i]=lib.characterPack.mode_versus[i];
|
lib.character[i]=lib.characterPack.mode_versus[i];
|
||||||
if(!lib.character[i][4]){
|
if(!lib.character[i][4]){
|
||||||
|
@ -604,6 +605,9 @@ mode.versus={
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
game.addRecentCharacter(game.me.name,game.me.name2);
|
game.addRecentCharacter(game.me.name,game.me.name2);
|
||||||
|
setTimeout(function(){
|
||||||
|
ui.arena.classList.remove('choose-character');
|
||||||
|
},500);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
chooseCharacterTwo:function(){
|
chooseCharacterTwo:function(){
|
||||||
|
@ -611,6 +615,7 @@ mode.versus={
|
||||||
next.showConfig=true;
|
next.showConfig=true;
|
||||||
next.setContent(function(){
|
next.setContent(function(){
|
||||||
'step 0'
|
'step 0'
|
||||||
|
ui.arena.classList.add('choose-character');
|
||||||
for(var i in lib.skill){
|
for(var i in lib.skill){
|
||||||
if(lib.skill[i].changeSeat){
|
if(lib.skill[i].changeSeat){
|
||||||
lib.skill[i]={};
|
lib.skill[i]={};
|
||||||
|
@ -846,6 +851,9 @@ mode.versus={
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
setTimeout(function(){
|
||||||
|
ui.arena.classList.remove('choose-character');
|
||||||
|
},500)
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
chooseCharacterFour:function(){
|
chooseCharacterFour:function(){
|
||||||
|
@ -882,6 +890,7 @@ mode.versus={
|
||||||
}
|
}
|
||||||
next.setContent(function(){
|
next.setContent(function(){
|
||||||
"step 0"
|
"step 0"
|
||||||
|
ui.arena.classList.add('choose-character');
|
||||||
var i;
|
var i;
|
||||||
var list;
|
var list;
|
||||||
var list2=[];
|
var list2=[];
|
||||||
|
@ -1019,6 +1028,9 @@ mode.versus={
|
||||||
event.xdialog.close();
|
event.xdialog.close();
|
||||||
}
|
}
|
||||||
game.addRecentCharacter(game.me.name,game.me.name2);
|
game.addRecentCharacter(game.me.name,game.me.name2);
|
||||||
|
setTimeout(function(){
|
||||||
|
ui.arena.classList.remove('choose-character');
|
||||||
|
},500)
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
chooseCharacter:function(){
|
chooseCharacter:function(){
|
||||||
|
@ -1605,7 +1617,8 @@ mode.versus={
|
||||||
_status.firstAct=event.current;
|
_status.firstAct=event.current;
|
||||||
event.flipassign=true;
|
event.flipassign=true;
|
||||||
event.videoId=lib.status.videoId++;
|
event.videoId=lib.status.videoId++;
|
||||||
var func=function(filter,id,selected,map){
|
var func=function(filter,id,selected,map,choiceFour){
|
||||||
|
lib.choiceFour=choiceFour;
|
||||||
var dialog=ui.create.characterDialog(filter,'expandall').open();
|
var dialog=ui.create.characterDialog(filter,'expandall').open();
|
||||||
dialog.videoId=id;
|
dialog.videoId=id;
|
||||||
for(var i in map){
|
for(var i in map){
|
||||||
|
@ -1621,11 +1634,12 @@ mode.versus={
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
ui.arena.classList.add('choose-character');
|
||||||
};
|
};
|
||||||
event.map=map;
|
event.map=map;
|
||||||
event.selected=[];
|
event.selected=[];
|
||||||
game.broadcastAll(func,filterChoice,event.videoId,event.selected,map);
|
game.broadcastAll(func,filterChoice,event.videoId,event.selected,map,lib.choiceFour);
|
||||||
_status.onreconnect=[func,filterChoice,event.videoId,event.selected,map];
|
_status.onreconnect=[func,filterChoice,event.videoId,event.selected,map,lib.choiceFour];
|
||||||
"step 1"
|
"step 1"
|
||||||
game.broadcastAll(function(player){
|
game.broadcastAll(function(player){
|
||||||
player.classList.add('selectedx');
|
player.classList.add('selectedx');
|
||||||
|
@ -1705,6 +1719,9 @@ mode.versus={
|
||||||
if(dialog){
|
if(dialog){
|
||||||
dialog.close();
|
dialog.close();
|
||||||
}
|
}
|
||||||
|
setTimeout(function(){
|
||||||
|
ui.arena.classList.remove('choose-character');
|
||||||
|
},500);
|
||||||
},event.videoId);
|
},event.videoId);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
@ -1714,6 +1731,7 @@ mode.versus={
|
||||||
'step 0'
|
'step 0'
|
||||||
game.additionaldead=[];
|
game.additionaldead=[];
|
||||||
game.broadcastAll(function(ref,bool){
|
game.broadcastAll(function(ref,bool){
|
||||||
|
ui.arena.classList.add('choose-character');
|
||||||
for(var i=0;i<6;i++){
|
for(var i=0;i<6;i++){
|
||||||
ref.side=bool;
|
ref.side=bool;
|
||||||
ref=ref.next;
|
ref=ref.next;
|
||||||
|
@ -1762,6 +1780,9 @@ mode.versus={
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
game.broadcastAll(function(result,func1,func2){
|
game.broadcastAll(function(result,func1,func2){
|
||||||
|
setTimeout(function(){
|
||||||
|
ui.arena.classList.remove('choose-character');
|
||||||
|
},500)
|
||||||
_status.friendDied=[];
|
_status.friendDied=[];
|
||||||
_status.enemyDied=[];
|
_status.enemyDied=[];
|
||||||
|
|
||||||
|
@ -1839,6 +1860,7 @@ mode.versus={
|
||||||
}
|
}
|
||||||
game.players[i].node.identity.dataset.color=game.players[i].side+'zhu';
|
game.players[i].node.identity.dataset.color=game.players[i].side+'zhu';
|
||||||
}
|
}
|
||||||
|
ui.arena.classList.add('choose-character');
|
||||||
},game.players[0],Math.random()<0.5,Math.random()<0.5);
|
},game.players[0],Math.random()<0.5,Math.random()<0.5);
|
||||||
_status.onreconnect=[function(){
|
_status.onreconnect=[function(){
|
||||||
var players=game.players.concat(game.dead);
|
var players=game.players.concat(game.dead);
|
||||||
|
@ -1878,7 +1900,13 @@ mode.versus={
|
||||||
lib.playerOL[i].init(result[i]);
|
lib.playerOL[i].init(result[i]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
setTimeout(function(){
|
||||||
|
ui.arena.classList.remove('choose-character');
|
||||||
|
},500)
|
||||||
},result);
|
},result);
|
||||||
|
setTimeout(function(){
|
||||||
|
ui.arena.classList.remove('choose-character');
|
||||||
|
},500)
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
chooseCharacterOL1:function(){
|
chooseCharacterOL1:function(){
|
||||||
|
|
Loading…
Reference in New Issue