zmiany ustawien domyslnych na angielskie nazwy

This commit is contained in:
Maciej Chmielarz 2024-01-09 15:34:52 +01:00
parent 0da7ccae42
commit cd5efc6921

View File

@ -30,10 +30,10 @@ const Hero = () => {
var stricers = new Array; var stricers = new Array;
var defenders = new Array; var defenders = new Array;
const [bodyPart,setBodyPart] = useState('prawa'); const [bodyPart,setBodyPart] = useState('Right Foot');
const [technique,setTechnique] = useState('zwykly'); const [technique,setTechnique] = useState('Normal');
const [actionType,setActionType] = useState('pozycyjny'); const [actionType,setActionType] = useState('Open Play');
const [shooterPossition,setPossition] = useState('napastnik'); const [shooterPossition,setPossition] = useState('Center Forward');
//zamiana procentowych pozycji na kartezyjskie //zamiana procentowych pozycji na kartezyjskie
function konwerturX(x){ function konwerturX(x){
@ -219,7 +219,6 @@ const Hero = () => {
//var shooterX = konwerturX(ball.style.left) //var shooterX = konwerturX(ball.style.left)
//var shooterY = konwetujY(ball.style.top) //var shooterY = konwetujY(ball.style.top)
posytion.innerHTML = "x:" + konwerturX(ball.style.left) + "m " + "y:" + konwetujY(ball.style.top) + "m"; 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(){ bojo.addEventListener("mouseup", function(){
ball.style.background = pColor ball.style.background = pColor
bojo.removeEventListener("mousemove", whileMove) bojo.removeEventListener("mousemove", whileMove)