From 003ccb99b3ad79a048885bb98adea94a281c6c49 Mon Sep 17 00:00:00 2001 From: libccy Date: Tue, 16 Aug 2016 01:06:18 +0800 Subject: [PATCH] h --- game/game.js | 26 +++++++++++++++++++------- mode/boss.js | 32 +++++++++++++++++--------------- mode/chess.js | 41 ++++++++++++++++++++++------------------- mode/tafang.js | 42 +++++++++++++++++++++--------------------- mode/versus.js | 2 +- 5 files changed, 80 insertions(+), 63 deletions(-) diff --git a/game/game.js b/game/game.js index 8e597368e..a8e40cfc6 100755 --- a/game/game.js +++ b/game/game.js @@ -1031,6 +1031,14 @@ } } }, + show_handcardbutton:{ + name:'显示手牌按钮', + init:true, + unfrequent:true, + onclick:function(bool){ + game.saveConfig('show_handcardbutton',bool); + } + }, show_wuxie:{ name:'显示不询问无懈', init:false, @@ -1245,6 +1253,12 @@ } else{ map.clear_log.hide(); + } + if(lib.config.mode=='versus'||lib.config.mode=='chess'||lib.config.mode=='tafang'||lib.config.mode=='boss'){ + map.show_handcardbutton.show(); + } + else{ + map.show_handcardbutton.hide(); } // if(config.theme=='woodden'&&config.image_background=='default'){ // map.background_color_wood.show(); @@ -31317,6 +31331,11 @@ } uiintro.add(capt); + if(node.isUnderControl()){ + uiintro.add('
手牌
'); + uiintro.addSmall(node.get('h')); + } + var skills=node.skills; var skills2=game.filterSkills(node.skills,node); for(i=0;i
『'+translation+'』
'+'已禁用'+'
'); - // } - // } if(lib.config.show_favourite&&lib.character[node.name]&&get.mode()!='story'){ var addFavourite=ui.create.div('.text.center'); diff --git a/mode/boss.js b/mode/boss.js index 997e95063..bc67baad0 100755 --- a/mode/boss.js +++ b/mode/boss.js @@ -233,25 +233,27 @@ mode.boss={ game.onSwapControl(); // ui.fakemebg.show(); - lib.setPopped(ui.create.system('手牌',null,true),function(){ - var uiintro=ui.create.dialog('hidden'); + if(lib.config.show_handcardbutton){ + lib.setPopped(ui.create.system('手牌',null,true),function(){ + var uiintro=ui.create.dialog('hidden'); - var players=game.players.concat(game.dead); - for(var i=0;i2){ + if(game.players.length>2&&lib.config.show_handcardbutton){ ui.versushs=ui.create.system('手牌',null,true); lib.setPopped(ui.versushs,game.versusHoverHandcards,220); }