From 18cebfb44ef413da2e107bc88f154e4bdcefcae0 Mon Sep 17 00:00:00 2001 From: Tipx-L <138244655+Tipx-L@users.noreply.github.com> Date: Tue, 29 Aug 2023 23:17:23 -0700 Subject: [PATCH] Add compareCardShowBefore. --- game/game.js | 27 ++++++++++++++++++--------- layout/default/layout.css | 8 ++++++-- 2 files changed, 24 insertions(+), 11 deletions(-) diff --git a/game/game.js b/game/game.js index 739cc132c..865874238 100644 --- a/game/game.js +++ b/game/game.js @@ -2917,10 +2917,12 @@ switch(item){ case 'default': var node=hs[i]._tempName; + node.classList.add('vertical'); node.innerHTML=get.verticalStr(node.tempname); break; case 'horizon': var node=hs[i]._tempName; + node.classList.remove('vertical'); node.innerHTML=node.tempname; break; default: @@ -14305,8 +14307,11 @@ num1:[], num2:[], }; - game.log(player,'的拼点牌为',event.card1); "step 3" + event.trigger('compareCardShowBefore'); + "step 4" + game.log(player,'的拼点牌为',event.card1); + "step 5" if(event.iwhile