|
|
|
@ -2,6 +2,7 @@ import React, { useEffect,useState,useRef } from 'react'; |
|
|
|
|
import Modal from 'react-modal' |
|
|
|
|
import { DisplayIcon } from './DEFAULTS'; |
|
|
|
|
import { ExpandTooltip } from './components/ExpandTooltip'; |
|
|
|
|
import { SkillTree } from './skilltree/skillTree'; |
|
|
|
|
|
|
|
|
|
//Helper variables for Weapon selector with structure: [weapon_type,weapon,potential,potential_tooltip,weapon_existence_data]
|
|
|
|
|
const WEAPON_WEAPONTYPE=0;const WEAPON_WEAPON=1;const WEAPON_POTENTIAL=2;const WEAPON_POTENTIAL_TOOLTIP=3;const WEAPON_EXISTENCE_DATA=4; |
|
|
|
@ -198,6 +199,19 @@ const [selectedArmor2,setSelectedArmor2] = useState([]) |
|
|
|
|
const [selectedArmor3,setSelectedArmor3] = useState([]) |
|
|
|
|
const [armorSlotSelection,setArmorSlotSelection] = useState(1) |
|
|
|
|
|
|
|
|
|
const [skillTreeClass,setSkillTreeClass] = useState(Object.keys(p.GetData("class",'','',true))[0]) |
|
|
|
|
const [skillTreeData,setSkillTreeData] = useState([]) |
|
|
|
|
const [skillTreeSkillData,setSkillTreeSkillData] = useState([]) |
|
|
|
|
const [skillTreeLineColor,setSkillTreeLineColor] = useState("") |
|
|
|
|
const [skillTreeLineWidth,setSkillTreeLineWidth] = useState(3) |
|
|
|
|
const [skillTreeDimensionX,setSkillTreeDimensionX] = useState(6) |
|
|
|
|
const [skillTreeDimensionY,setSkillTreeDimensionY] = useState(6) |
|
|
|
|
const [skillTreeGridSizeX,setSkillTreeGridSizeX] = useState(171) |
|
|
|
|
const [skillTreeGridSizeY,setSkillTreeGridSizeY] = useState(148) |
|
|
|
|
const [skillTreeGridPaddingX,setSkillTreeGridPaddingX] = useState(10) |
|
|
|
|
const [skillTreeGridPaddingY,setSkillTreeGridPaddingY] = useState(48) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function rarityCheck(v) { |
|
|
|
|
return v!==undefined?v.rarity!==undefined?" r"+v.rarity:"":"" |
|
|
|
|
} |
|
|
|
@ -218,6 +232,14 @@ useEffect(()=>{ |
|
|
|
|
} |
|
|
|
|
},[p.bp])
|
|
|
|
|
|
|
|
|
|
useEffect(()=>{ |
|
|
|
|
setSkillTreeClass(p.GetData("class",className,'id')) |
|
|
|
|
},[className]) |
|
|
|
|
|
|
|
|
|
useEffect(()=>{ |
|
|
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
//console.log(p.GetData("class",p.className,"icon"))
|
|
|
|
|
|
|
|
|
|
return (<> |
|
|
|
@ -506,8 +528,6 @@ AUGMENT |
|
|
|
|
<SelectorWindow title="Class Select" modalOpen={classSelectWindowOpen} setModalOpen={setClassSelectWindowOpen} GetData={p.GetData}>ez pz</SelectorWindow> |
|
|
|
|
|
|
|
|
|
<Modal isOpen={classSkillTreeWindowOpen} onRequestClose={()=>{setClassSkillTreeWindowOpen(false)}} shouldFocusAfterRender={true} shouldCloseOnOverlayClick={true} shouldCloseOnEsc={true} className="modalSkillTree" overlayClassName="modalOverlaySkillTree"> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div className="box treeSelectBox"> |
|
|
|
|
<div className="boxTitleBar"> |
|
|
|
|
<h1>Class Skill Tree</h1> |
|
|
|
@ -515,12 +535,7 @@ AUGMENT |
|
|
|
|
</div> |
|
|
|
|
<div className="treeListContainer customScrollbar"> |
|
|
|
|
<ul className="treeList"> |
|
|
|
|
<li><img alt="" src="./icons/class/hu.png" />Hunter</li> |
|
|
|
|
<li><img alt="" src="./icons/class/fi.png" />Fighter</li> |
|
|
|
|
<li className="treeListMain"><img alt="" src="./icons/class/ra.png" />Ranger</li> |
|
|
|
|
<li><img alt="" src="./icons/class/gu.png" />Gunner</li> |
|
|
|
|
<li className="treeListSub"><img alt="" src="./icons/class/fo.png" />Force</li> |
|
|
|
|
<li><img alt="" src="./icons/class/te.png" />Techter</li> |
|
|
|
|
{Object.keys(p.GetData("class")).map((cl)=><li className={className===cl?"treeListMain":subclassName===cl?"treeListSub":""}><img alt="" src={p.GetData("class")[cl].icon} />{cl}</li>)} |
|
|
|
|
</ul> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
@ -531,6 +546,11 @@ AUGMENT |
|
|
|
|
<div className="boxExit" onClick={() => { setClassSkillTreeWindowOpen(false) }}></div> |
|
|
|
|
</div> |
|
|
|
|
<div className="skillTreeContainer customScrollbar"> |
|
|
|
|
<div style={{position:"relative"}}> |
|
|
|
|
{<SkillTree style={{position:"absolute"}} strokeStyle={skillTreeLineColor} lineWidth={skillTreeLineWidth} lineDash={[]} |
|
|
|
|
gridDimensionsX={skillTreeDimensionX} gridDimensionsY={skillTreeDimensionY} gridSizeX={skillTreeGridSizeX} gridSizeY={skillTreeGridSizeY} gridPaddingX={skillTreeGridPaddingX} gridPaddingY={skillTreeGridPaddingY} |
|
|
|
|
skillLines={["□□□□□□","□□□□□□","□□□□□□","□□□□□□","□□□□□□","□□□□□□"]} |
|
|
|
|
/>} |
|
|
|
|
<div className="skillTreeGrid"> |
|
|
|
|
<div className="skillActive" style={{ gridArea: "a1" }}><img className="skillIcon" alt="" src="./icons/class_skills/ra/Blight_Rounds.png" /><span className="skillAllocated">1/5</span><em className="skillName">Blight Rounds</em></div> |
|
|
|
|
<div className="skillMaxed" style={{ gridArea: "a2" }}><span className="skillTreeReqUnlock"> </span><img className="skillIcon" alt="" src="./icons/class_skills/ra/Blight_Rounds_Reinforce.png" /><span className="skillAllocated">1/1</span><em className="skillName">Blight Rounds Reinforce</em></div> |
|
|
|
@ -546,8 +566,7 @@ AUGMENT |
|
|
|
|
<div style={{ gridArea: "f1" }}><img className="skillIcon" alt="" src="./icons/class_skills/ra/Slow_Landing_Charge-Ranger.png" /><span className="skillAllocated">0/1</span><em className="skillName">Slow Landing Charge-Ranger</em></div> |
|
|
|
|
<div style={{ gridArea: "a5" }}><img className="skillIcon" alt="" src="./icons/class_skills/ra/Slow_Landing_Charge-Ranger.png" /><span className="skillAllocated">0/1</span><em className="skillName">Slow Landing Charge-Ranger</em></div> |
|
|
|
|
<div style={{ gridArea: "a6" }}><img className="skillIcon" alt="" src="./icons/class_skills/ra/Slow_Landing_Charge-Ranger.png" /><span className="skillAllocated">0/1</span><em className="skillName">Slow Landing Charge-Ranger</em></div> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<div className="skillPoints">Your Skill Points  6   SP    0</div> |
|
|
|
|