diff --git a/src/TestPanel.js b/src/TestPanel.js index b6eab6e..145dec1 100644 --- a/src/TestPanel.js +++ b/src/TestPanel.js @@ -234,7 +234,26 @@ useEffect(()=>{ useEffect(()=>{ setSkillTreeClass(p.GetData("class",className,'id')) -},[className]) + if (Object.keys(p.GetData("skill_tree_data")).length>1) { + for (var skillTree of p.GetData("skill_tree_data")) { + if (skillTree.class_id===p.GetData("class",className,'id')) { + var data = skillTree.data.split(",") + var skillData = skillTree.skill_data.split(";") + setSkillTreeData(data) + setSkillTreeSkillData(skillData) + setSkillTreeLineColor(skillTree.line_color) + setSkillTreeLineWidth(skillTree.line_width) + setSkillTreeDimensionX(data[0].length) + setSkillTreeDimensionY(data.length) + setSkillTreeGridSizeX(skillTree.gridsizex) + setSkillTreeGridSizeY(skillTree.gridsizey) + setSkillTreeGridPaddingX(skillTree.gridpaddingx) + setSkillTreeGridPaddingY(skillTree.gridpaddingy) + break; + } + } + } +},[className,p.GetData]) //console.log(p.GetData("class",p.className,"icon")) @@ -542,7 +561,7 @@ AUGMENT
{}
1/5Blight Rounds