@ -125,6 +125,19 @@ function SelectorWindow(p) {
< / P o p u p W i n d o w >
< / P o p u p W i n d o w >
}
}
function ClassSelectorWindow ( p ) {
return < SelectorWindow title = { ( p . editClass ) ? "Select Sub Class" : "Select Main Class" } modalOpen = { p . modalOpen } setModalOpen = { p . setModalOpen } GetData = { p . GetData }
dataFunction = { ( ) => {
var dat1 = p . GetData ( "class" )
return Object . keys ( dat1 )
}
}
displayFunction = { ( key ) => {
return < li className = { p . class === key ? "treeListMain" : p . subClass === key ? "treeListSub" : "" } onClick = { ( ) => { if ( p . editClass === 0 ) { p . setClassName ( key ) ; p . setSubClassName ( p . subClass === key ? p . class : p . subClass ) } else { p . setSubClassName ( key ) ; p . setClassName ( p . class === key ? p . subClass : p . class ) } ; p . setModalOpen ( false ) } } > < img alt = "" src = { DisplayIcon ( p . GetData ( "class" , key , "icon" ) ) } / > { p . GetData ( "class" , key , "name" ) } < / l i >
} }
/ >
}
function GetSpecialWeaponName ( item ) {
function GetSpecialWeaponName ( item ) {
return item [ WEAPON _EXISTENCE _DATA ] !== undefined ? ( item [ WEAPON _EXISTENCE _DATA ] . special _name ? . length > 0 ) ? item [ WEAPON _EXISTENCE _DATA ] . special _name : ( item [ WEAPON _WEAPON ] . name + " " + item [ WEAPON _WEAPONTYPE ] . name ) : ""
return item [ WEAPON _EXISTENCE _DATA ] !== undefined ? ( item [ WEAPON _EXISTENCE _DATA ] . special _name ? . length > 0 ) ? item [ WEAPON _EXISTENCE _DATA ] . special _name : ( item [ WEAPON _WEAPON ] . name + " " + item [ WEAPON _WEAPONTYPE ] . name ) : ""
}
}
@ -501,25 +514,7 @@ AUGMENT
< / d i v >
< / d i v >
< / d i v >
< / d i v >
< Modal isOpen = { classSelectWindowOpen } onRequestClose = { ( ) => { setClassSelectWindowOpen ( false ) } } shouldFocusAfterRender = { true } shouldCloseOnOverlayClick = { true } shouldCloseOnEsc = { true } className = "modal" overlayClassName = "modalOverlay" >
< ClassSelectorWindow class = { className } subClass = { subclassName } setClassName = { setClassName } editClass = { classNameSetter } setSubClassName = { setSubClassName } modalOpen = { classSelectWindowOpen } setModalOpen = { setClassSelectWindowOpen } GetData = { p . GetData } / >
< div className = "box boxModalClassSelect" >
< div className = "boxTitleBar" >
< h1 > Select Main Class < / h 1 >
< div className = "boxExit" onClick = { ( ) => { setClassSkillTreeWindowOpen ( false ) } } > < / d i v >
< / d i v >
< div className = "treeListContainer customScrollbar" >
< ul className = "treeList" >
< li > < img alt = "" src = { DisplayIcon ( "/icons/class/hu.png" ) } / > Hunter < / l i >
< li > < img alt = "" src = { DisplayIcon ( "/icons/class/fi.png" ) } / > Fighter < / l i >
< li className = "treeListMain" > < img alt = "" src = { DisplayIcon ( "/icons/class/ra.png" ) } / > Ranger < / l i >
< li > < img alt = "" src = { DisplayIcon ( "/icons/class/gu.png" ) } / > Gunner < / l i >
< li className = "treeListSub" > < img alt = "" src = { DisplayIcon ( "/icons/class/fo.png" ) } / > Force < / l i >
< li > < img alt = "" src = { DisplayIcon ( "/icons/class/te.png" ) } / > Techter < / l i >
< li > < img alt = "" src = { DisplayIcon ( "/icons/class/br.png" ) } / > Braver < / l i >
< / u l >
< / d i v >
< / d i v >
< / M o d a l >