From 25990ec79e84ca2921bb795801c7ed12d884f807 Mon Sep 17 00:00:00 2001 From: vivomo <929992114@qq.com> Date: Fri, 24 Nov 2023 18:08:14 +0800 Subject: [PATCH] feat: hunt style --- .../src/components/PIXIPlayers/Player.tsx | 28 ++++++++++--------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/packages/client/src/components/PIXIPlayers/Player.tsx b/packages/client/src/components/PIXIPlayers/Player.tsx index 5d9eb5e9..f0cebd4c 100644 --- a/packages/client/src/components/PIXIPlayers/Player.tsx +++ b/packages/client/src/components/PIXIPlayers/Player.tsx @@ -169,7 +169,9 @@ const Player = (props: IPlayer) => { anchor={0.5} x={cellSize / 2} y={-30} - style={textStyle} + style={Object.assign({}, textStyle, { + stroke: hunted ? '#f00' : '#000' + })} /> } { @@ -214,18 +216,18 @@ const Player = (props: IPlayer) => { ) }) } - { - hunted && ( - - ) - } + {/*{*/} + {/* hunted && (*/} + {/* */} + {/* )*/} + {/*}*/} {/* {*/}