diff --git a/game/game.js b/game/game.js
index 8d4dfd7ed..db85d3fc7 100755
--- a/game/game.js
+++ b/game/game.js
@@ -17613,6 +17613,11 @@
if(typeof name!='string'){
name='sha';
}
+ var noclick=false;
+ if(suit=='noclick'){
+ noclick=true;
+ suit=null;
+ }
if(typeof suit!='string'){
suit=['heart','diamond','club','spade'].randomGet();
}
@@ -17625,7 +17630,14 @@
if(typeof number!='number'){
number=Math.ceil(Math.random()*13);
}
- return ui.create.card(ui.special).init([suit,number,name,nature]);
+ var card;
+ if(noclick){
+ card=ui.create.card(ui.special,'noclick',true);
+ }
+ else{
+ card=ui.create.card(ui.special);
+ }
+ return card.init([suit,number,name,nature]);
},
forceOver:function(bool,callback){
_status.event.next.length=0;
@@ -27225,7 +27237,7 @@
}
return buttons;
},
- player:function(position){
+ player:function(position,noclick){
var node=ui.create.div('.player',position);
node.node={
avatar:ui.create.div('.avatar',node,ui.click.avatar).hide(),
@@ -27269,12 +27281,13 @@
node.node.link.firstChild.setBackgroundImage('image/card/tiesuo_mark.png')
node.node.link.firstChild.style.backgroundSize='cover';
ui.create.div(node.node.identity);
- node.addEventListener(lib.config.touchscreen?'touchend':'click',ui.click.target);
- node.node.identity.addEventListener(lib.config.touchscreen?'touchend':'click',ui.click.identity);
-
- if(lib.config.touchscreen){
- node.addEventListener('touchstart',ui.click.playertouchstart);
- }
+ if(!noclick){
+ node.addEventListener(lib.config.touchscreen?'touchend':'click',ui.click.target);
+ node.node.identity.addEventListener(lib.config.touchscreen?'touchend':'click',ui.click.identity);
+ if(lib.config.touchscreen){
+ node.addEventListener('touchstart',ui.click.playertouchstart);
+ }
+ }
return node;
},
diff --git a/mode/brawl.js b/mode/brawl.js
index e31d704ce..681e53f77 100644
--- a/mode/brawl.js
+++ b/mode/brawl.js
@@ -135,7 +135,7 @@ mode.brawl={
showcase:function(init){
var node=this;
var func=function(){
- var card=game.createCard('du');
+ var card=game.createCard('du','noclick');
node.nodes.push(card);
card.style.position='absolute';
var rand1=Math.round(Math.random()*100);
@@ -183,8 +183,8 @@ mode.brawl={
var node=this;
var player1,player2;
if(init){
- player1=ui.create.player().init('huangyueying');
- player2=ui.create.player().init('re_huangyueying');
+ player1=ui.create.player(null,true).init('huangyueying');
+ player2=ui.create.player(null,true).init('re_huangyueying');
player1.style.left='20px';
player1.style.top='20px';
player1.style.transform='scale(0.9)';
@@ -215,11 +215,11 @@ mode.brawl={
var createCard=function(wuxie){
var card;
if(wuxie){
- card=game.createCard('wuxie');
+ card=game.createCard('wuxie','noclick');
card.style.transform='scale(0.9)';
}
else{
- card=ui.create.card(null,null,true);
+ card=ui.create.card(null,'noclick',true);
}
card.style.opacity=0;
card.style.position='absolute';
@@ -329,7 +329,7 @@ mode.brawl={
var node=this;
var player;
if(init){
- player=ui.create.player();
+ player=ui.create.player(null,true);
player.init('boss_lvbu2');
player.style.left='calc(50% - 75px)';
player.style.top='20px';
@@ -361,7 +361,7 @@ mode.brawl={
if(num>=5){
num=0;
}
- var card=game.createCard('sha');
+ var card=game.createCard('sha','noclick');
card.style.left='calc(50% - 52px)';
card.style.top='68px';
card.style.position='absolute';
@@ -473,7 +473,7 @@ mode.brawl={
if(!node.list.length){
getList();
}
- var card=ui.create.player();
+ var card=ui.create.player(null,true);
card.init(node.list.shift());
card.node.marks.remove();
card.node.count.remove();
@@ -591,7 +591,7 @@ mode.brawl={
list.randomSort();
list.push('re_caocao');
var func=function(){
- var card=ui.create.player();
+ var card=ui.create.player(null,true);
card.init(list.shift());
card.node.marks.remove();
card.node.count.remove();
@@ -612,7 +612,7 @@ mode.brawl={
var list2=['qilin','dawan','zhuahuang'];
var func2=function(){
- var card=game.createCard(list2.shift());
+ var card=game.createCard(list2.shift(),'noclick');
node.nodes.push(card);
card.style.position='absolute';
card.style.zIndex=2;
@@ -738,7 +738,7 @@ mode.brawl={
node.style.transform='translate('+dx+'px,'+dy+'px)';
}
for(var i=0;i<8;i++){
- var node=ui.create.player();
+ var node=ui.create.player(null,true);
this.nodes.push(node);
node.init('zuoci');
node.classList.add('minskin');
@@ -823,7 +823,7 @@ mode.brawl={
scene:{
name:'自创场景',
mode:'identity',
- intro:'场景名称:
场景说明:',
+ intro:'