|
|
|
@ -753,6 +753,9 @@ function App() { |
|
|
|
|
const [LOGGEDINUSER,setLOGGEDINUSER] = useState("") |
|
|
|
|
const [LOGGEDINHASH,setLOGGEDINHASH] = useState("") |
|
|
|
|
|
|
|
|
|
const [gridDimensionsX,setGridDimensionsX] = useState(5) |
|
|
|
|
const [gridDimensionsY,setGridDimensionsY] = useState(5) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function GetData(table,row,col,id){ |
|
|
|
|
var data = id?DATAID:DATA |
|
|
|
@ -833,7 +836,7 @@ function App() { |
|
|
|
|
<Route path={process.env.PUBLIC_URL+"/skilltree"}> |
|
|
|
|
<Box title="Skill Tree"> |
|
|
|
|
<SkillTree strokeStyle="rgba(0,0,128,1)" lineWidth={3} lineDash={[]} |
|
|
|
|
gridDimensions={[6,6]} gridSize={[80,60]} gridPadding={[10,10]} |
|
|
|
|
gridDimensionsX={gridDimensionsX} gridDimensionsY={gridDimensionsY} gridSize={[80,60]} gridPadding={[10,10]} |
|
|
|
|
skillLines={["□ □ ", //─ □
|
|
|
|
|
"└□─┘□□", //│ ├┤┼
|
|
|
|
|
" │ ││", //
|
|
|
|
@ -845,13 +848,16 @@ function App() { |
|
|
|
|
<hr/> |
|
|
|
|
<br/> |
|
|
|
|
<SkillTree strokeStyle="rgba(255,0,0,0.5)" lineWidth={10} lineDash={[10,10]} |
|
|
|
|
gridDimensions={[5,5]} gridSize={[120,120]} gridPadding={[5,5]} |
|
|
|
|
gridDimensionsX={5} gridDimensionsY={5} gridSize={[120,120]} gridPadding={[5,5]} |
|
|
|
|
skillLines={["□□□□ ", //─ □
|
|
|
|
|
"│ │┌□", //│ ├┤┼
|
|
|
|
|
"│□┘□ ", //
|
|
|
|
|
"□ │ ", //┌ ┐ ┬
|
|
|
|
|
" □ "]}//└ ┘ ┴
|
|
|
|
|
/> |
|
|
|
|
|
|
|
|
|
Width: <input type="number" onChange={(f)=>{setGridDimensionsX(Number(f.currentTarget.value))}} value={gridDimensionsX}/> |
|
|
|
|
Height: <input type="number" onChange={(f)=>{setGridDimensionsY(Number(f.currentTarget.value))}} value={gridDimensionsY}/> |
|
|
|
|
</Box> |
|
|
|
|
</Route> |
|
|
|
|
<Route path="/"> |
|
|
|
|