@@ -134,6 +141,33 @@ function RightButton(p){
return
}
+function ClassSelectorWindow(p) {
+ const [title,setTitle] = useState("Select Main Class")
+ useEffect(()=>{
+ setTitle((p.editClass)?"Select Sub Class":"Select Main Class")
+ },[p.editClass])
+ return
{
+ if (page==="Main Class") {
+ p.setEditClass(0)
+ } else {
+ p.setEditClass(1)
+ }
+ }}
+ onModalOpen={(pageSetter)=>{
+ pageSetter((p.editClass)?2:1)
+ }}
+ dataFunction={() => {
+ var dat1 = p.GetData("class")
+ return Object.keys(dat1)
+ }
+ }
+ displayFunction={(key) => {
+ return {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) }}> {p.GetData("class", key, "name")}
+ }}
+/>
+}
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):""
@@ -511,25 +545,7 @@ AUGMENT