Push class icon

master
Joshua Sigona 3 years ago
parent 7d872a8741
commit 82fb4704fb
  1. 5
      src/TestPanel.js

@ -178,11 +178,10 @@ function ConvertCoordinate(x,y) {
} }
function SkillBox(p) { function SkillBox(p) {
return <div style={{ gridArea: ConvertCoordinate(Number(p.skill[0]),Number(p.skill[1])) }}><img className="skillIcon" alt="" src="./icons/class_skills/ra/Bad_Condition_Ward.png" /><span className="skillAllocated">0/10</span><em className="skillName">{typeof p.GetData("class_skill",p.skill[2],"name",true)==="string"&&p.GetData("class_skill",p.skill[2],"name",true)}</em><div className="skillButtons"><LeftButton /><RightButton /></div></div> return <div style={{ gridArea: ConvertCoordinate(Number(p.skill[0]),Number(p.skill[1])) }}><img className="skillIcon" alt="" src={process.env.PUBLIC_URL+p.GetData("class_skill",p.skill[2],"icon",true)} /><span className="skillAllocated">0/10</span><em className="skillName">{typeof p.GetData("class_skill",p.skill[2],"name",true)==="string"&&p.GetData("class_skill",p.skill[2],"name",true)}</em><div className="skillButtons"><LeftButton /><RightButton /></div></div>
} }
function SkillTreeBoxes(p) { function SkillTreeBoxes(p) {
return <> return <>
{p.skillTreeSkillData&&p.skillTreeSkillData.map((skill)=>{ {p.skillTreeSkillData&&p.skillTreeSkillData.map((skill)=>{
var splitter = skill.split(",") var splitter = skill.split(",")
@ -585,7 +584,7 @@ AUGMENT
<h1>Class Skill Tree</h1> <h1>Class Skill Tree</h1>
<div className="boxExit" onClick={() => { setClassSkillTreeWindowOpen(false) }}></div> <div className="boxExit" onClick={() => { setClassSkillTreeWindowOpen(false) }}></div>
</div> </div>
<PageControl pages={2} pageNames={[<><img alt="" src={DisplayIcon("/icons/class/ra.png")} /> Ranger</>, <><img alt="" src={DisplayIcon("/icons/class/fo.png")} /> Force</>, "Launcher", "Rod", "Talis"]} currentPage={treePage} setCurrentPage={setTreePage} /> <PageControl pages={Object.keys(p.GetData("class")).length} pageNames={[<><img alt="" src={DisplayIcon(p.GetData("class",{className},"icon"))} /> {className}</>, <><img alt="" src={DisplayIcon("/icons/class/fo.png")} /> {subclassName}</>, "Launcher", "Rod", "Talis"]} currentPage={treePage} setCurrentPage={setTreePage} />
{treePage === 1 ? <> {treePage === 1 ? <>
<div className="skillTreeContainer customScrollbar"> <div className="skillTreeContainer customScrollbar">
<div style={{ position: "relative" }}> <div style={{ position: "relative" }}>

Loading…
Cancel
Save