From cd5efc692127c494d80b136bb059e2ad776a95d4 Mon Sep 17 00:00:00 2001 From: Maciej Chmielarz Date: Tue, 9 Jan 2024 15:34:52 +0100 Subject: [PATCH] zmiany ustawien domyslnych na angielskie nazwy --- app/src/components/Hero.jsx | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/app/src/components/Hero.jsx b/app/src/components/Hero.jsx index 5e0ba49..5cdf92e 100644 --- a/app/src/components/Hero.jsx +++ b/app/src/components/Hero.jsx @@ -30,10 +30,10 @@ const Hero = () => { var stricers = new Array; var defenders = new Array; - const [bodyPart,setBodyPart] = useState('prawa'); - const [technique,setTechnique] = useState('zwykly'); - const [actionType,setActionType] = useState('pozycyjny'); - const [shooterPossition,setPossition] = useState('napastnik'); + const [bodyPart,setBodyPart] = useState('Right Foot'); + const [technique,setTechnique] = useState('Normal'); + const [actionType,setActionType] = useState('Open Play'); + const [shooterPossition,setPossition] = useState('Center Forward'); //zamiana procentowych pozycji na kartezyjskie function konwerturX(x){ @@ -219,7 +219,6 @@ const Hero = () => { //var shooterX = konwerturX(ball.style.left) //var shooterY = konwetujY(ball.style.top) posytion.innerHTML = "x:" + konwerturX(ball.style.left) + "m " + "y:" + konwetujY(ball.style.top) + "m"; - player.setAttribute('possition',[konwerturX(ball.style.left),konwetujY(ball.style.top)]); bojo.addEventListener("mouseup", function(){ ball.style.background = pColor bojo.removeEventListener("mousemove", whileMove)