Started skill tree editor work

master
sigonasr2, Sig, Sigo 3 years ago
parent 681eb0286d
commit 921e8564da
  1. 23
      src/skilltree/skillTreeEditor.js

@ -1,15 +1,20 @@
import { SkillTree } from "./skillTree";
import { useState } from "react";
function SkillTreeEditor(p) {
return <SkillTree strokeStyle="rgba(0,0,128,1)" lineWidth={3} lineDash={[]}
gridDimensionsX={6} gridDimensionsY={6} gridSizeX={80} gridSizeY={60} gridPaddingX={10} gridPaddingY={10}
skillLines={["□ □ ", //─ □
"└□─┘□□", //│ ├┤┼
" │ ││", //
" │ □│", //┌ ┐ ┬
" □─□┼□", //└ ┘ ┴
" □ "]}
/>
const [lineColor,setLineColor] = useState("#000000")
return <>
<input type="color" value={}/><SkillTree strokeStyle="rgba(0,0,128,1)" lineWidth={3} lineDash={[]}
gridDimensionsX={6} gridDimensionsY={6} gridSizeX={80} gridSizeY={60} gridPaddingX={10} gridPaddingY={10}
skillLines={["□ □ ", //─ □
"└□─┘□□", //│ ├┤┼
" │ ││", //
" │ □│", //┌ ┐ ┬
" □─□┼□", //└ ┘ ┴
" □ "]}
/>
</>
}
export {SkillTreeEditor}
Loading…
Cancel
Save